you can always convert the files to netcdf using the command-line tool cdo (climate data operators), although that would increase processing time and disk space.<div><br></div><div><a href="https://code.zmaw.de/projects/cdo">https://code.zmaw.de/projects/cdo</a></div>
<div><br></div><div>Etienne<br><br><div class="gmail_quote">On Mon, Jun 17, 2013 at 8:16 PM, Paolo Corti <span dir="ltr"><<a href="mailto:pcorti@gmail.com" target="_blank">pcorti@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tue, Jun 18, 2013 at 12:46 AM, Even Rouault<br>
<<a href="mailto:even.rouault@mines-paris.org">even.rouault@mines-paris.org</a>> wrote:<br>
><br>
> From gdal_translate man page:<br>
><br>
>        -b band:<br>
>            Select an input band band for output. Bands are numbered from 1.<br>
> Multiple -b switches may be used to select a set of input bands to write to<br>
> the output file, or<br>
>            to reorder bands. Starting with GDAL 1.8.0, band can also be set to<br>
> 'mask,1' (or just 'mask') to mean the mask band of the first band of the input<br>
> dataset.<br>
<br>
</div>Hey Even<br>
<br>
thanks for the reply.<br>
<br>
I am well aware of the -b option, the problem here is that each raster<br>
has not the same bands order.<br>
Therefore, as I had to make some work on just one single band<br>
representing the same variable in all of the datasets, I ended up to<br>
write a script, iterate the datasets, then iterate the bands, read the<br>
metadata, and when found the correct band ran the process on it.<br>
<br>
thanks a lot in any case<br>
cheers<br>
<div class="im HOEnZb">p<br>
<br>
--<br>
Paolo Corti<br>
Geospatial software developer<br>
web: <a href="http://www.paolocorti.net" target="_blank">http://www.paolocorti.net</a><br>
twitter: @capooti<br>
skype: capooti<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</div></div></blockquote></div><br></div>