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

Coordiante System Issue - Earth's Radius

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.


  • Subject: Coordiante System Issue - Earth's Radius
  • Date: Thu, 23 Feb 2006 14:50:59 -0600

All,

 

            NetcdfDataset dataSet = NetcdfDataset.openDataset("C:\\Documents and Settings\\nelsonb\\My Documents\\ArcMap\\us057g1010t03a000000000");

            NetcdfDatasetInfo info = dataSet.getInfo();

            VariableEnhanced var = (VariableEnhanced)dataSet.getVariables().get(0);

            GridCoordSys grid = info.getGridCoordSys(var);

            ProjectionImpl proj = grid.getProjection();

            LatLonRect latlon = grid.getLatLonBoundingBox();

            LatLonPointImpl point = latlon.getUpperRightPoint();

            System.out.println(point.getLatitude());

            System.out.println(point.getLongitude());

 

I have the above code, the issue is that the netcdf methods use a pre-programmed (constant) radius for the earth, which is different than the one that my data models use.  As a result, the corner points are off by a few hundredths of a degree (which translates to about 1.5km).  Do you know how I can force the projection to use a different radius?

 

 

V/r

A1C Nelson, Brandon K

Communications-Computer Systems Programmer

HQ AFWA/SCSA (402) 294-1404