⇐ ⇒

[CF-metadata] CF-1 Grid Mappings to/from OGC WKT(GDAL): dealing with attribs like 'longitude_of_central_meridian' and 'longitude_of_projection_origin'?

From: Hedley, Mark <mark.hedley>
Date: Fri, 30 Sep 2011 15:45:51 +0100

Hello Patrick

Phil Bentley has recently commented on the benefits of using OGC WKT within the CF data representation.

I believe he is preparing a proposal to this effect, which would address the issue you have highlighted, I think, and a range of other similar issues relating to the definition of coordinate reference systems.

Ref: Bentley, Philip Re: [CF-metadata] Question on metadata for coordinate reference systems Mon 26/09/2011 13:22

I am happy to act as ticket moderator once a ticket has been raised for this issue

mark





-----Original Message-----
From: cf-metadata-bounces at cgd.ucar.edu on behalf of Patrick Sunter
Sent: Wed 28/09/2011 03:27
To: cf-metadata at cgd.ucar.edu
Cc: Etienne Tourigny
Subject: [CF-metadata] CF-1 Grid Mappings to/from OGC WKT(GDAL): dealing with attribs like 'longitude_of_central_meridian' and 'longitude_of_projection_origin'?
 
Hello,

I'm doing some work on updating the GDAL NetCDF driver to be able to
properly export to and import from CF-1 compliant files encoded with
map projection (Grid Mapping) information (see
http://trac.osgeo.org/gdal/ticket/2893 for background).

The driver as it stands doesn't export properly to NetCDF (eg from
GeoTiff) for many projections: the issue is that GDAL stores
projection information internally in OGC WKT form, and the driver has
to 'map' these to appropriate CF-1 attributes when exporting - and
several of these mappings aren't correct currently (eg Lambert
Conformal Conic and Transverse Mercator were ok, but Albers Equal
Area, Azimuthal Equidistant and others weren't working).

The main issue seems to be that for many projections, where OGC WKT
uses an attribute like 'latitude_of_center', the CF-1 closest
corresponding attribute seems to be 'latitude_of_projection_origin'.
For a projection such as Albers Equal Area, do these mean exactly the
same thing?

Testing the resultant translated file in IDV once I've added the above
attribute mapping suggested the reprojected file is displaying with
the correct coordinates. I'm not a geodsy or projections expert, but
looking at the remotesensing.org and other pages suggested these
parameters may be equivalent.

Also with regard to longitude paramaters: it seems for some CF-1
projections such as Albers Equal Area, the 'longitude_of_center'
attrib in WKT needs to map to 'longitude_of_central_meridian' in CF-1,
whereas in others such as Lambert azimuthal equal area,
'longitude_of_center' needs to map to
'longitude_of_projection_origin'?
(http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.5/apf.html)

Would appreciate any comments, or even ways to improve testing
strategy used. I'm aware of the CF-1 compliance checkers, and possibly
should try the NetCDF Java API to check that points correspond.

cheers, Patrick.
_______________________________________________
CF-metadata mailing list
CF-metadata at cgd.ucar.edu
http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata
Received on Fri Sep 30 2011 - 08:45:51 BST

This archive was generated by hypermail 2.3.0 : Tue Sep 13 2022 - 23:02:41 BST

⇐ ⇒