Examples of GridDatatype


Examples of ucar.nc2.dt.GridDatatype

  public void checkGridCoordSystem_findXYindexFromLatLonBounded()
          throws IOException
  {
    GridDataset gd = GridDataset.open( datasetLocation );

    GridDatatype hsGrid = gd.findGridDatatype( "hs" );
    GridCoordSystem coordSys = hsGrid.getCoordinateSystem();
    Date date = coordSys.getTimeAxis1D().getTimeDate( 0 );

    int[] xy = coordSys.findXYindexFromLatLonBounded( lat, lon, null );
    assertEquals( i, xy[0] );
    assertEquals( j, xy[1] );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.