Package ucar.grid

Examples of ucar.grid.GridDefRecord


  /**
   * check for Sigma Pressure Levels
   */

  boolean checkForPressureLevels( List<GridRecord> records, GridHorizCoordSys hcs ) {
      GridDefRecord gdr = hcs.getGds();
      Grib1GDSVariables g1dr = (Grib1GDSVariables) gdr.getGdsv();
      if( g1dr == null || ! g1dr.hasVerticalPressureLevels() )
        return false;

      // add hybrid numbers
      coordValues = new double[ levels.size()];
View Full Code Here


    // Coordinate systems
    List<GridDefRecord> hcsB = giB.getHorizCoordSys();
    List<GridDefRecord> hcsT = giT.getHorizCoordSys();

    for (int i = 0; i < hcsB.size(); i++) {
      GridDefRecord gdrB = hcsB.get(i);
      GridDefRecord gdrT = hcsT.get(i);

      java.util.Set<String> keysB = gdrB.getKeys();
      for (String key : keysB) {
        if (key.equals("grid_units") || key.equals("created") || key.equals("location")
            || key.equals("VectorComponentFlag") || key.equals("GDSkey")
            || key.equals("grid_name") || key.equals("scanning_mode")
            || key.equals("grid_shape") )
          continue;
        String valueB = gdrB.getParam(key);
        String valueT = gdrT.getParam(key);
        if (!valueB.equals(valueT))
          System.out.println("hcs " + key + " differ for Binary and Text  " + valueB + " " + valueT);
        assert( valueB.equals(valueT) );
      }
      java.util.Set<String> keysT = gdrT.getKeys();
      for (String key : keysT) {
        if (key.equals("grid_units") || key.equals("created") || key.equals("location")
            || key.equals("VectorComponentFlag") || key.equals("GDSkey")
            || key.equals("grid_name") || key.equals("ScanningMode")
            || key.equals("grid_shape") )
          continue;
        String valueB = gdrB.getParam(key);
        String valueT = gdrT.getParam(key);
        if (!valueT.equals(valueB))
          System.out.println("hcs " + key + " differ for Text and Binary " + valueT + " " + valueB);
        assert( valueB.equals(valueT) );
      }
    }
View Full Code Here

TOP

Related Classes of ucar.grid.GridDefRecord

Copyright © 2018 www.massapicom. 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.