<div dir="ltr"><div><div><div><div><div>Hi Even,<br><br></div>I've just tried and I get this result:<br>Warning 1: dimension #2 (x) is not a Longitude/X dimension.<br>Warning 1: dimension #1 (y) is not a Latitude/Y dimension.<br>
Input file size is 257, 329<br>ERROR 6: AAIG driver doesn't support 24 bands. Must be 1 band.<br><br></div>So you are right, it doesn't work.<br><br></div>I don't need an ASCII grid, a different format is also OK. But I do need all bands combined/aggregated.<br>
</div>Do you have a different suggestion?<br><br></div>Or should I read (using Python or similar) each band/pixel and manual aggregate them?<br><br><div><div><div class="gmail_extra">Thanks,<div><br>
<br>
Paul<br>
<br>
<div style="font-size:13.3px;font-family:Verdana,Arial,Helvetica,sans-serif"><div style="border:1px solid #e5e5e5;background-color:#f8f8f8;padding:0.8em 0.8em 0.3em 0.8em"><div style="margin:0 0 8px 0"><p style="margin:0">
<span><b><img style="float:left;margin-left:5px;margin-right:5px" src="http://www.bontepaarden.nl/bontepaarden/images/newButton.png" alt="" height="120" width="160">Paul Meems </b><br><span>Release manager, configuration manager</span><br>
<span>and forum moderator of MapWindow GIS.</span><br><a href="http://www.mapwindow.org/" target="_blank"><span>www.mapwindow.org</span></a><br><br><span>Owner of MapWindow.nl - Support for</span><br><span>Dutch speaking users.</span><br>
<a href="http://www.mapwindow.nl/" target="_blank"><span>www.mapwindow.nl</span></a><br></span></p>
<p style="margin:0"><b><br></b></p></div></div><img src="http://p1.wisestamp.com/pixel.png?p=mozilla&v=3.9.12&t=1322134056890&u=482737fd0c4ca423" height="1" width="1"></div>
</div>
<br><br><div class="gmail_quote">2013/6/13 Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@mines-paris.org" target="_blank">even.rouault@mines-paris.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Le jeudi 13 juin 2013 15:54:42, Etienne Tourigny a écrit :<br>
<div class="im">> that should be a simple as<br>
><br>
> gdal_translate -of AAIGrid <a href="http://in.nc" target="_blank">in.nc</a> out.asc<br>
<br>
</div>Except that AAIGrid only supports 1-band datasets. I can't think of a ASCII<br>
based format that supports multi-band datasets.<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> On Thu, Jun 13, 2013 at 8:32 AM, Paul Meems <<a href="mailto:bontepaarden@gmail.com">bontepaarden@gmail.com</a>> wrote:<br>
> > Hi list,<br>
> ><br>
> > I have a netCDF file with 24 bands.<br>
> > I want to create a new (ASCII) grid with the bands aggregated.<br>
> > Is this possible using the gdal tools or with an existing python script?<br>
> ><br>
> > Thanks,<br>
> ><br>
> > Paul<br>
> ><br>
> > _______________________________________________<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>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Geospatial professional services<br>
<a href="http://even.rouault.free.fr/services.html" target="_blank">http://even.rouault.free.fr/services.html</a><br>
</font></span></blockquote></div><br></div></div></div></div>