Codota Logo
GridCoordSys.makeGridCoordSys
Code IndexAdd Codota 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)

  • Common ways to obtain GridCoordSys
private void myMethod () {
GridCoordSys g =
  • Codota IconCoordinateSystem cs;new GridCoordSys(cs, null)
  • Codota IconCoordinateSystem cs;Formatter sbuff;new GridCoordSys(cs, sbuff)
  • Codota IconFormatter sbuff;CoordinateSystem cs;VariableEnhanced v;GridCoordSys.makeGridCoordSys(sbuff, cs, v)
  • Smart code suggestions by Codota
}
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

  • Finding current android device location
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • addToBackStack (FragmentTransaction)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • BoxLayout (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now