John/Robb-
I'm trying to track down an issue with the projections in the
McIDAS Grid IOSP. The Lambert Conformal grids seem to be
okay, but the PolarStereoGraphic and Mercator projections in
the same file are not correct in the IDV or ToolsUI GridViewer.
So, it's either a bad definition or a problem with the CoordSysBuilder.
I'm comparing the 49x35 PS grids in testdata/grid/mcidas/GRID5510 with
the NAM Alaska 95 km grid (e.g.:
dods://motherlode.ucar.edu:8080/thredds/dodsC/model/NCEP/NAM/Alaska_95km/NAM_Alaska_95km_20090618_1200.grib1
The projection varaibles seem to have the same parameters that are used in
GridHorizCoordSys, although the McIDAS projection has more info (La2,
Lo2, Latin1, Latin2, etc), but that is not used in GridHorizCoordSys.makePS:
GRID5510:
char PS_X:49_Y:35;
:grid_mapping_name = "polar_stereographic";
:longitude_of_projection_origin = -150.0; // double
:straight_vertical_longitude_from_pole = -150.0; // double
:scale_factor_at_projection_origin = 0.933; // double
:latitude_of_projection_origin = 90.0; // double
:earth_shape = "Spherical";
:GDS_param_Dx = 95250.0; // double
:GDS_param_Dy = 95250.0; // double
:GDS_param_GDSkey = "PS X:49 Y:35";
:GDS_param_La1 = 42.07661981300264; // double
:GDS_param_La2 = 63.970746163829524; // double
:GDS_param_Latin1 = 60.0; // double
:GDS_param_Latin2 = 60.0; // double
:GDS_param_Lo1 = -175.6410058243053; // double
:GDS_param_Lo2 = -93.69006752597979; // double
:GDS_param_LoV = -150.0; // double
:GDS_param_Nx = 49; // int
:GDS_param_Ny = 35; // int
:GDS_param_Proj = 2; // int
:GDS_param_ProjFlag = "PS";
:_CoordinateTransformType = "Projection";
:_CoordinateAxisTypes = "GeoX GeoY";
Alaska 95 km:
String Polar_Stereographic_projection_Grid;
:grid_mapping_name = "polar_stereographic";
:longitude_of_projection_origin = -150.0; // double
:straight_vertical_longitude_from_pole = -150.0; // double
:scale_factor_at_projection_origin = 0.933; // double
:latitude_of_projection_origin = 90.0; // double
:earth_shape = "spherical";
:GRIB_param_Dx = 95250.0; // double
:GRIB_param_Dy = 95250.0; // double
:GRIB_param_GDSkey = 464455425; // int
:GRIB_param_La1 = 42.085; // double
:GRIB_param_Lo1 = -175.641; // double
:GRIB_param_LoV = -150.0; // double
:GRIB_param_NpProj = "true";
:GRIB_param_Nx = 49; // int
:GRIB_param_Ny = 35; // int
:GRIB_param_ProjFlag = 0; // int
:GRIB_param_ResCompFlag = 8; // int
:GRIB_param_Winds = "Relative";
:GRIB_param_grid_name = "Polar Stereographic projection Grid";
:GRIB_param_grid_radius_spherical_earth = 6367.47; // double
:GRIB_param_grid_shape = "spherical";
:GRIB_param_grid_shape_code = 0; // int
:GRIB_param_grid_type = 5; // int
:GRIB_param_grid_units = "m";
:_CoordinateTransformType = "Projection";
:_CoordinateAxisTypes = "GeoX GeoY";
The big difference is that the McIDAS grid has groups.
Don
*************************************************************
Don Murray UCAR Unidata Program
dmurray@xxxxxxxxxxxxxxxx P.O. Box 3000
(303) 497-8628 Boulder, CO 80307
http://www.unidata.ucar.edu/staff/donm
*************************************************************