Ticket #2654 (closed defect: fixed)
[PATCH] Fix flipped latitude with NetCDF CF-1 files
| Reported by: | ekato | Owned by: | warmerdam |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | GDAL_Raster | Version: | 1.6.2 |
| Severity: | major | Keywords: | netcdf |
| Cc: | neteler, dnadeau, mdsumner, kyle |
Description
Maybe related to JoseM's comment in #2584, I've experienced getting upside-down image with NetCDF driver. So I've created a simple patch to flip latitude for CF-1.0 files.
In netCDFDataset::SetProjection?(), I assume the files with following attributes as CF-1.0 files.
- have valid nVarDimXID and nVarDimYID
- poDS->papszDimName[poDS->nDimYid] starts with "lat"
- pdfYCoord[0] < pdfYCoord[ydim-1]
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

