Tabnine Logo
GridCoordSys.makeGridCoordSys
Code IndexAdd Tabnine to your IDE (free)

How to use
makeGridCoordSys
method
in
ucar.nc2.dt.grid.GridCoordSys

Best Java code snippets using ucar.nc2.dt.grid.GridCoordSys.makeGridCoordSys (Showing top 3 results out of 315)

origin: edu.ucar/cdm

private void constructCoordinateSystems(NetcdfDataset ds, VariableEnhanced v, Formatter parseInfo) {
 if (v instanceof StructureDS) {
  StructureDS s = (StructureDS) v;
  List<Variable> members = s.getVariables();
  for (Variable nested : members) {
   // LOOK flatten here ??
   constructCoordinateSystems(ds, (VariableEnhanced) nested, parseInfo);
  }
 } else {
  // see if it has a GridCS
  // LOOK: should add geogrid it multiple times if there are multiple geoCS ??
  GridCoordSys gcs = null;
  List<CoordinateSystem> csys = v.getCoordinateSystems();
  for (CoordinateSystem cs : csys) {
   GridCoordSys gcsTry = GridCoordSys.makeGridCoordSys(parseInfo, cs, v);
   if (gcsTry != null) {
    gcs = gcsTry;
    if (gcsTry.isProductSet()) break;
   }
  }
  if (gcs != null)
   addGeoGrid((VariableDS) v, gcs, parseInfo);
 }
}
origin: edu.ucar/netcdf

private void constructCoordinateSystems(NetcdfDataset ds, VariableEnhanced v, Formatter parseInfo) {
 if (v instanceof StructureDS) {
  StructureDS s = (StructureDS) v;
  List<Variable> members = s.getVariables();
  for (Variable nested : members) {
   // LOOK flatten here ??
   constructCoordinateSystems(ds, (VariableEnhanced) nested, parseInfo);
  }
 } else {
  // see if it has a GridCS
  // LOOK: should add geogrid it multiple times if there are multiple geoCS ??
  GridCoordSys gcs = null;
  List<CoordinateSystem> csys = v.getCoordinateSystems();
  for (CoordinateSystem cs : csys) {
   GridCoordSys gcsTry = GridCoordSys.makeGridCoordSys(parseInfo, cs, v);
   if (gcsTry != null) {
    gcs = gcsTry;
    if (gcsTry.isProductSet()) break;
   }
  }
  if (gcs != null)
   addGeoGrid((VariableDS) v, gcs, parseInfo);
 }
}
origin: Unidata/thredds

private void constructCoordinateSystems(NetcdfDataset ds, VariableEnhanced v, Formatter parseInfo) {
 if (v instanceof StructureDS) {
  StructureDS s = (StructureDS) v;
  List<Variable> members = s.getVariables();
  for (Variable nested : members) {
   // LOOK flatten here ??
   constructCoordinateSystems(ds, (VariableEnhanced) nested, parseInfo);
  }
 } else {
  // see if it has a GridCS
  // LOOK: should add geogrid it multiple times if there are multiple geoCS ??
  GridCoordSys gcs = null;
  List<CoordinateSystem> csys = v.getCoordinateSystems();
  for (CoordinateSystem cs : csys) {
   GridCoordSys gcsTry = GridCoordSys.makeGridCoordSys(parseInfo, cs, v);
   if (gcsTry != null) {
    gcs = gcsTry;
    if (gcsTry.isProductSet()) break;
   }
  }
  if (gcs != null)
   addGeoGrid((VariableDS) v, gcs, parseInfo);
 }
}
ucar.nc2.dt.gridGridCoordSysmakeGridCoordSys

Javadoc

Determine if the CoordinateSystem cs can be made into a GridCoordSys for the Variable v.

Popular methods of GridCoordSys

  • hasVerticalAxis
  • <init>
    Create a GridCoordSys as a section of an existing GridCoordSys. This will create sections of the cor
  • convertUnits
  • findXYindexFromCoord
    Given a point in x,y coordinate space, find the x,y index in the coordinate system.
  • findXYindexFromCoordBounded
    Given a point in x,y coordinate space, find the x,y index in the coordinate system. If outside the r
  • getBoundingBox
    Get the x,y bounding box in projection coordinates.
  • getCalendarDates
  • getCoordinateTransforms
  • getEnsembleAxis
    get the Ensemble axis, else null
  • getHorizStaggerType
  • getLatLon
    Get the Lat/Lon coordinates of the midpoint of a grid cell, using the x,y indices
  • getLatLonBoundingBox
  • getLatLon,
  • getLatLonBoundingBox,
  • getLevels,
  • getMinOrMaxLon,
  • getName,
  • getProjection,
  • getRangesFromLatLonRect,
  • getRunTimeAxis,
  • getTimeAxis,
  • getTimeAxis1D

Popular in Java

  • Start an intent from android
  • requestLocationUpdates (LocationManager)
  • getResourceAsStream (ClassLoader)
  • getApplicationContext (Context)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Collectors (java.util.stream)
  • Notification (javax.management)
  • Option (scala)
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now