}
CoordinateAxis1D xaxis = (CoordinateAxis1D) gsys.getXHorizAxis();
CoordinateAxis1D yaxis = (CoordinateAxis1D) gsys.getYHorizAxis();
p.projToLatLon(xaxis.getCoordValue(0), yaxis.getCoordValue(0) );
LatLonPointImpl start1 = p.projToLatLon(xaxis.getCoordValue(0), yaxis.getCoordValue(0));
LatLonPointImpl start2 = p.projToLatLon(xaxis.getCoordValue((int)xaxis.getSize()-1), yaxis.getCoordValue((int)yaxis.getSize()-1));
System.out.printf( "start = %f %f%n", start1.getLatitude(), start1.getLongitude());
System.out.printf( "end = %f %f%n", start2.getLatitude(), start2.getLongitude());
/*
wgrib2 /data/laps/lapsprd/gr2/102711000.gr2 -ijlat 358 353 -d 1
1:0:(358,353),lon=270.784605,lat=41.527360,val=216.094
wgrib2 /data/laps/lapsprd/gr2/102711000.gr2 -grid -d 11:0:grid_template=20:
polar stereographic grid: (358 x 353) input WE|EW:SN output WE:SN res 8
North pole lat1 26.023346 lon1 251.023136 latD 34.183360 lonV 259.280944 dx 5000.000000 m dy 5000.000000 m
*/
assert TestAll.closeEnough(start1.getLatitude(), 26.023346) : TestAll.howClose(start1.getLatitude(), 26.023346);
assert TestAll.closeEnough(start1.getLongitude(), 251.023136 - 360.0) : TestAll.howClose(start1.getLongitude(), 251.023136- 360.0);
assert TestAll.closeEnough(start2.getLatitude(), 41.527360, 2.0E-4) : TestAll.howClose(start2.getLatitude(), 41.527360);
assert TestAll.closeEnough(start2.getLongitude(), 270.784605 - 360.0, 2.0E-4) : TestAll.howClose(start2.getLongitude(), 270.784605- 360.0);
ncd.close();
}