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 don't need an ASCII grid, a different format is also OK. But I do need
all bands combined/aggregated.
Do you have a different suggestion?

Or should I read (using Python or similar) each band/pixel and manual
aggregate them?

Thanks,


Paul

 *Paul Meems *
Release manager, configuration manager
and forum moderator of MapWindow GIS.
www.mapwindow.org

Owner of MapWindow.nl - Support for
Dutch speaking users.
www.mapwindow.nl

*
*


2013/6/13 Even Rouault <[email protected]>

> 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 Meems <[email protected]>
> 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 with an existing python
> script?
> > >
> > > Thanks,
> > >
> > > Paul
> > >
> > > _______________________________________________
> > > gdal-dev mailing list
> > > [email protected]
> > > http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
> --
> Geospatial professional services
> http://even.rouault.free.fr/services.html
>
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to