gdal mdim concat: support globs and more than one target array#13228
gdal mdim concat: support globs and more than one target array#13228rouault merged 10 commits intoOSGeo:masterfrom
Conversation
ee92660 to
c9653b0
Compare
|
Wildcard inputs appear to work only if input is a positional argument. With a keyword argument I get I don't see this issue with |
are you sure about that? I get the same behavior: I'm not sure how that could be fixed because the wildcard expansion is done here by the shell (here Bash), and not by GDAL. So GDAL receives something like "gdal xxx mosaic --input file1 file2 --output out", which is not consistent with what it expects A way of avoiding Bash expension is to put the pattern between single quotes: which uncovered a bug fixed per 5dee635 |
|
I compared this with vs (The message from I poked at I also notice that |
I think so... EDIT: I see now that adding |
|
After rechunking my inputs to 256x256, |
you might want to try adding "--co ARRAY:IF(DIM=2):BLOCKSIZE=x,y" so that the block size of the target array (assuming it is 2D, otherwise adapt) is consistent with your input dataset. It feels like the program should try to do that automatically if the user doesn't |
I had only so far thought of this in terms of VRT. This is already a rechunking engine 🤯. There's so many benefits to GDAL as a foundation, it already delivers such solid results in so many ways. (Another I've noticed is very polite net-citizenry, pooling of file connections - I gather - and minimal requests on Thredds. xarray regularly times out for requests that need dozens of chunks from one file, but GDAL never has. Outside of GDAL and xarray, I tested raw async byte range requests for the same chunk, at 10x the Thredds server delivers, at 20x it's a 104, which matches the xarray fails, compared to other dispersed-across-files patterns where xarray-read succeeds) 💯👌 |
|
Both array order and source array block size preservation now implemented |
…s well as the @list.txt syntax Fixes OSGeo#13219
Fixes #13218
Fixes #13219
CC @dbaston @mdsumner