Re: [gdal-dev] split netCDF

2010-08-06 Thread Ivan Lucena
Martin, If you are running it on Windows you can use "for" (type "help for" on Command Prompt), ex: C:\Data> for /l %i in (1,1,300) do gdal_translate -b %i input_file output_%i.tif > ---Original Message--- > From: Matin80 > To: gdal-dev@lists.osgeo.

Re: [gdal-dev] split netCDF

2010-08-06 Thread Chaitanya kumar CH
Martin, Use the gdal_translate utility (http://www.gdal.org/gdal_translate.html) with the -b option. You will have to run the command once for each band. A simple shell script should do it. On Fri, Aug 6, 2010 at 4:26 PM, Matin80 wrote: > > Hi everyone, > > I have a netCDF-file containing over

[gdal-dev] split netCDF

2010-08-06 Thread Matin80
Hi everyone, I have a netCDF-file containing over 300 bands. is it possible to split up the file and get the same number of GeoTiffs with GDAL in a single command line? All i found to this topic ended in merging the bands to a single output file... kind regards, Martin -- View this message