NSF Unidata

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDFJava #HMB-497600]: Reading NDFD Files

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.



Hi Rob,

You have to use the projection Lambert Conformal for NDFD files to convert the 
projection coordinates to the lat/lon coordinates. 

After you get the grid, get the GridCoordSystem: getCoordinateSystem()
http://www.unidata.ucar.edu/software/netcdf-java/v4.0/javadocAll/ucar/nc2/dt/GridDatatype.html

Now get the projection: getProjection() 
http://www.unidata.ucar.edu/software/netcdf-java/v4.0/javadocAll/ucar/nc2/dt/GridCoordSystem.html

Now you have the Lambert Conformal project
http://www.unidata.ucar.edu/software/netcdf-java/v4.0/javadocAll/ucar/unidata/geoloc/projection/LambertConformal.html

Use projToLatLon()  to convert the projection coordinates to lat/lon 
coordinates. In a previous email, there was code to get the GeoX and GeoY 
projection data. 

I'll ask the another developer if there is a better way to convert projection 
coordinates.

RObb...

Ticket Details
===================
Ticket ID: HMB-497600
Department: Support netCDF Java
Priority: High
Status: Open