Examples of addHorizCoordSys()


Examples of ucar.grid.GridIndex.addHorizCoordSys()

          break;
        }
        if (line.startsWith("--")) {
          gds = new GribGridDefRecord(sb.toString());
          sb.setLength(0); //reset it
          gridIndex.addHorizCoordSys(gds);
          continue;
        }
        int pos = line.indexOf(" = ");
        // need to convert long GDSkey to int
        if ( line.startsWith(GridDefRecord.GDS_KEY)) {
View Full Code Here

Examples of ucar.grid.GridIndex.addHorizCoordSys()

      // remove the Grib1 and Grib2 text indexes differences
      String gdsStr = sb.toString();
      if( ! gdsStr.contains( GridDefRecord.RADIUS_SPHERICAL_EARTH ))
        gdsStr = gdsStr.replace( "radius_spherical_earth", GridDefRecord.RADIUS_SPHERICAL_EARTH);
      gds = new GribGridDefRecord( gdsStr );
      gridIndex.addHorizCoordSys( gds );

      //dataIS.close();

      if (debugTiming) {
        long took = System.currentTimeMillis() - start;
View Full Code Here

Examples of ucar.grid.GridIndex.addHorizCoordSys()

          int gdsSize = dis.readInt();
          if (gdsSize == 4) { // for Grib1 records with no GDS
            int gdskey = dis.readInt();
            GribGridDefRecord ggdr = new GribGridDefRecord();
            Grib1Grid.populateGDS(ggdr, gdskey);
            gridIndex.addHorizCoordSys(ggdr);
            continue;
          }

          // read GDS as raw bytes
          byte[] gdsData = new byte[gdsSize];
View Full Code Here

Examples of ucar.grid.GridIndex.addHorizCoordSys()

              gdskey = gdsv.get80TypeGdsKey();
            } else {
              gdskey = gdsv.getGdsKey();
            }
            populateGDS1(ggdr, gdsv, gdskey);
            gridIndex.addHorizCoordSys(ggdr);
            //System.out.println("GDS length =" + gdsv.getLength());
            //System.out.println("GDS GdsKey =" + gdsv.getOldTypeGdsKey());
          } else {
            Grib2GDSVariables gdsv = new Grib2GDSVariables(gdsData);
            GribGridDefRecord ggdr = new GribGridDefRecord(gdsv);
View Full Code Here

Examples of ucar.grid.GridIndex.addHorizCoordSys()

              gdskey = gdsv.get80TypeGdsKey();
            } else {
              gdskey = gdsv.getGdsKey(); // version higher than 8.0
            }
            populateGDS2(ggdr, gdsv, gdskey);
            gridIndex.addHorizCoordSys(ggdr);
            //System.out.println("GDS length =" + gdsv.getLength());
            //System.out.println("GDS GdsKey =" + gdsv.getGdsKey());
          }

        }
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.