[gdal-dev] gdal_merge.py doesn't find input files.
Frank Warmerdam
warmerdam at pobox.com
Fri Mar 5 14:25:02 EST 2010
Luca Fasano wrote:
> Hi list,
> I'm trying to use gdal_merge.py of GDAL 1.6.3 version.
> I encountered some problem merging datasets represented in GDAL
> subdataset format (i.e. DRIVERNAME:FILENAME://SUBDATASETS). In
> particular I'm trying to merge two HDF5 subdatasets.
> In this case the script crashes returning strange message:
>
> File not found: <dataset1>
> File not found: <dataset2>
> No input files selected.
>
> I searching for something useful in code and I found, starting from row
> 336:
>
> # Expand any possible wildcards from command line arguments
> f = glob.glob( arg )
> if len(f) == 0:
> print 'File not found: "%s"' % (str( arg ))
> names += f # append 1 or more files
>
>
> that seems to check if inputs are present in file system.
> But of course something like HDF5:filename://S01/SBI is never a valid
> path.
>
> Did you know this behaviour?
Luca,
I concur that the globbing is inappropriate for this script. I have reopened
the ticket for which it was implemented.
http://trac.osgeo.org/gdal/ticket/2783
In the meantime, I imagine you can just comment out the globbing.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the gdal-dev
mailing list