[Gdal-dev] NetCDF.. the world turned upside-down

Christopher Condit condit at sdsc.edu
Mon Apr 10 22:42:36 EDT 2006


Hi Matt,
FYI - This happens to me, also, when I'm converting from OpenDap/DODS
data with gdal_translate.  The data ends up flipped around the x axis.
I've starting converting it to ASCII Grids and inverting it back with a
perl script I wrote.  Somewhat inconvenient but it works.

-Chris

-----Original Message-----
From: gdal-dev-bounces at lists.maptools.org
[mailto:gdal-dev-bounces at lists.maptools.org] On Behalf Of Matthew Perry
Sent: Monday, April 10, 2006 11:17 AM
To: denis.nadeau at gmail.com
Cc: Gdal-Dev
Subject: Re: [Gdal-dev] NetCDF.. the world turned upside-down

On 4/10/06, Frank Warmerdam <warmerdam at pobox.com> wrote:
> Matthew Perry wrote:
> > Hey folks,
> >
> >  I ran into an issue using GDAL to access a NetCDF file;  The lower
> > lattitude of the dataset is further north than the upper lattitude!
> > ...
> > gdal_translating the image yields an upside-down image as a result.
> > ...
> > Is there a way to get gdal utilities to recognize the upside-down
> > nature of the image and "flip" it accordingly without
> > warping/resampling it?? Or does this call for using the GDAL API?
>
> I can't think of any mechanism to deal with this as a user other than
> GCPs or perhaps writing out a VRT file and manually editing the
> geotransform.
>
> If you can supply the file to Denis Nadeau (denis.nadeau at gmail.com)
> he can work on improving the driver to handle it out of the box.
>


The upside-down NetCDF in question is available at
http://www.coastwx.fish-tools.homelinux.org/coastwx/wrf-plots/sstnc.nc

--
Matt Perry
perrygeo at gmail.com
http://www.perrygeo.net

_______________________________________________
Gdal-dev mailing list
Gdal-dev at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/gdal-dev




More information about the Gdal-dev mailing list