Re: [gdal-dev] Aggregate bands

2013-06-14 Thread Paul Meems
Hi Even, I've just tried and I get this result: Warning 1: dimension #2 (x) is not a Longitude/X dimension. Warning 1: dimension #1 (y) is not a Latitude/Y dimension. Input file size is 257, 329 ERROR 6: AAIG driver doesn't support 24 bands. Must be 1 band. So you are right, it doesn't work. I

Re: [gdal-dev] Aggregate bands

2013-06-14 Thread Siebe Bosch
Hi List, The question was originally mine. Thanks to Paul for posting it. Here's what I did (calling GDAL tools from VB.NET): 1. Warping the NetCDF-file to match my desired co-ordinate system and crop the image. outputFile = OutputDir \ Str(OrderNum).Trim _NSL_ Str(i).Trim .nc

Re: [gdal-dev] Aggregate bands

2013-06-14 Thread Frank Warmerdam
Siebe, There are many ways to aggregate. What do you want? Just one band summing each pixel stack? Best regards, On Jun 14, 2013 3:55 AM, Siebe Bosch si...@hydroconsult.nl wrote: Hi List, The question was originally mine. Thanks to Paul for posting it. Here's what I did (calling GDAL

[gdal-dev] Aggregate bands

2013-06-13 Thread Paul Meems
Hi list, I have a netCDF file with 24 bands. I want to create a new (ASCII) grid with the bands aggregated. Is this possible using the gdal tools or with an existing python script? Thanks, Paul ___ gdal-dev mailing list gdal-dev@lists.osgeo.org

Re: [gdal-dev] Aggregate bands

2013-06-13 Thread Etienne Tourigny
that should be a simple as gdal_translate -of AAIGrid in.nc out.asc On Thu, Jun 13, 2013 at 8:32 AM, Paul Meems bontepaar...@gmail.com wrote: Hi list, I have a netCDF file with 24 bands. I want to create a new (ASCII) grid with the bands aggregated. Is this possible using the gdal tools or

Re: [gdal-dev] Aggregate bands

2013-06-13 Thread Even Rouault
Le jeudi 13 juin 2013 15:54:42, Etienne Tourigny a écrit : that should be a simple as gdal_translate -of AAIGrid in.nc out.asc Except that AAIGrid only supports 1-band datasets. I can't think of a ASCII based format that supports multi-band datasets. On Thu, Jun 13, 2013 at 8:32 AM, Paul