Tabnine Logo
GridCoordSys.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
ucar.nc2.dt.grid.GridCoordSys
constructor

Best Java code snippets using ucar.nc2.dt.grid.GridCoordSys.<init> (Showing top 12 results out of 315)

origin: edu.ucar/netcdf

public GridCoordSys getGridCoordSys(VariableEnhanced ve) {
 List<CoordinateSystem> csList = ve.getCoordinateSystems();
 for (CoordinateSystem cs : csList) {
  if (GridCoordSys.isGridCoordSys(null, cs, ve)) {
   return new GridCoordSys(cs, null);
  }
 }
 return null;
}
origin: edu.ucar/cdm

public GridCoordSys getGridCoordSys(VariableEnhanced ve) {
 List<CoordinateSystem> csList = ve.getCoordinateSystems();
 for (CoordinateSystem cs : csList) {
  if (GridCoordSys.isGridCoordSys(null, cs, ve)) {
   return new GridCoordSys(cs, null);
  }
 }
 return null;
}
origin: Unidata/thredds

public GridCoordSys getGridCoordSys(VariableEnhanced ve) {
 List<CoordinateSystem> csList = ve.getCoordinateSystems();
 for (CoordinateSystem cs : csList) {
  if (GridCoordSys.isGridCoordSys(null, cs, ve)) {
   return new GridCoordSys(cs, null);
  }
 }
 return null;
}
origin: edu.ucar/cdm

/**
 * Determine if the CoordinateSystem cs can be made into a GridCoordSys for the Variable v.
 *
 * @param sbuff put debug information into this StringBuffer; may be null.
 * @param cs    CoordinateSystem to check.
 * @param v     Variable to check.
 * @return the GridCoordSys made from cs, else null.
 */
public static GridCoordSys makeGridCoordSys(Formatter sbuff, CoordinateSystem cs, VariableEnhanced v) {
 if (sbuff != null) {
  sbuff.format(" ");
  v.getNameAndDimensions(sbuff, false, true);
  sbuff.format(" check CS %s: ", cs.getName());
 }
 if (isGridCoordSys(sbuff, cs, v)) {
  GridCoordSys gcs = new GridCoordSys(cs, sbuff);
  if (sbuff != null) sbuff.format(" OK%n");
  return gcs;
 }
 return null;
}
origin: edu.ucar/netcdf

/**
 * Determine if the CoordinateSystem cs can be made into a GridCoordSys for the Variable v.
 *
 * @param sbuff put debug information into this StringBuffer; may be null.
 * @param cs    CoordinateSystem to check.
 * @param v     Variable to check.
 * @return the GridCoordSys made from cs, else null.
 */
public static GridCoordSys makeGridCoordSys(Formatter sbuff, CoordinateSystem cs, VariableEnhanced v) {
 if (sbuff != null) {
  sbuff.format(" ");
  v.getNameAndDimensions(sbuff, false, true);
  sbuff.format(" check CS %s: ", cs.getName());
 }
 if (isGridCoordSys(sbuff, cs, v)) {
  GridCoordSys gcs = new GridCoordSys(cs, sbuff);
  if (sbuff != null) sbuff.format(" OK\n");
  return gcs;
 }
 return null;
}
origin: Unidata/thredds

/**
 * Determine if the CoordinateSystem cs can be made into a GridCoordSys for the Variable v.
 *
 * @param sbuff put debug information into this StringBuffer; may be null.
 * @param cs    CoordinateSystem to check.
 * @param v     Variable to check.
 * @return the GridCoordSys made from cs, else null.
 */
public static GridCoordSys makeGridCoordSys(Formatter sbuff, CoordinateSystem cs, VariableEnhanced v) {
 if (sbuff != null) {
  sbuff.format(" ");
  v.getNameAndDimensions(sbuff, false, true);
  sbuff.format(" check CS %s: ", cs.getName());
 }
 if (isGridCoordSys(sbuff, cs, v)) {
  GridCoordSys gcs = new GridCoordSys(cs, sbuff);
  if (sbuff != null) sbuff.format(" OK%n");
  return gcs;
 }
 return null;
}
origin: Unidata/thredds

public GridDatatype makeSubset(Range rt_range, Range e_range, Range t_range, Range z_range, Range y_range, Range x_range) throws InvalidRangeException {
 // get the ranges list
 int rank = getRank();
 Range[] ranges = new Range[rank];
 if (null != getXDimension())
  ranges[xDimOrgIndex] = x_range;
 if (null != getYDimension())
  ranges[yDimOrgIndex] = y_range;
 if (null != getZDimension())
  ranges[zDimOrgIndex] = z_range;
 if (null != getTimeDimension())
  ranges[tDimOrgIndex] = t_range;
 if (null != getRunTimeDimension())
  ranges[rtDimOrgIndex] = rt_range;
 if (null != getEnsembleDimension())
  ranges[eDimOrgIndex] = e_range;
 List<Range> rangesList = Arrays.asList(ranges);
 // subset the variable
 VariableDS v_section = (VariableDS) vs.section( new Section(rangesList));
 List<Dimension> dims = v_section.getDimensions();
 for (Dimension dim : dims) {
  dim.setShared(true); // make them shared (section will make them unshared)
 }
 // subset the axes in the GridCoordSys
 GridCoordSys gcs_section = new GridCoordSys(gcs, rt_range, e_range, t_range, z_range, y_range, x_range);
 // now we can make the geogrid
 return new GeoGrid(dataset, v_section, gcs_section);
}
origin: edu.ucar/cdm

public GridDatatype makeSubset(Range rt_range, Range e_range, Range t_range, Range z_range, Range y_range, Range x_range) throws InvalidRangeException {
 // get the ranges list
 int rank = getRank();
 Range[] ranges = new Range[rank];
 if (null != getXDimension())
  ranges[xDimOrgIndex] = x_range;
 if (null != getYDimension())
  ranges[yDimOrgIndex] = y_range;
 if (null != getZDimension())
  ranges[zDimOrgIndex] = z_range;
 if (null != getTimeDimension())
  ranges[tDimOrgIndex] = t_range;
 if (null != getRunTimeDimension())
  ranges[rtDimOrgIndex] = rt_range;
 if (null != getEnsembleDimension())
  ranges[eDimOrgIndex] = e_range;
 List<Range> rangesList = Arrays.asList(ranges);
 // subset the variable
 VariableDS v_section = (VariableDS) vs.section( new Section(rangesList));
 List<Dimension> dims = v_section.getDimensions();
 for (Dimension dim : dims) {
  dim.setShared(true); // make them shared (section will make them unshared)
 }
 // subset the axes in the GridCoordSys
 GridCoordSys gcs_section = new GridCoordSys(gcs, rt_range, e_range, t_range, z_range, y_range, x_range);
 // now we can make the geogrid
 return new GeoGrid(dataset, v_section, gcs_section);
}
origin: edu.ucar/netcdf

public GridDatatype makeSubset(Range rt_range, Range e_range, Range t_range, Range z_range, Range y_range, Range x_range) throws InvalidRangeException {
 // get the ranges list
 int rank = getRank();
 Range[] ranges = new Range[rank];
 if (null != getXDimension())
  ranges[xDimOrgIndex] = x_range;
 if (null != getYDimension())
  ranges[yDimOrgIndex] = y_range;
 if (null != getZDimension())
  ranges[zDimOrgIndex] = z_range;
 if (null != getTimeDimension())
  ranges[tDimOrgIndex] = t_range;
 if (null != getRunTimeDimension())
  ranges[rtDimOrgIndex] = rt_range;
 if (null != getEnsembleDimension())
  ranges[eDimOrgIndex] = e_range;
 List<Range> rangesList = Arrays.asList(ranges);
 // subset the variable
 VariableDS v_section = (VariableDS) vs.section( new Section(rangesList));
 List<Dimension> dims = v_section.getDimensions();
 for (Dimension dim : dims) {
  dim.setShared(true); // make them shared (section will make them unshared)
 }
 // subset the axes in the GridCoordSys
 GridCoordSys gcs_section = new GridCoordSys(gcs, rt_range, e_range, t_range, z_range, y_range, x_range);
 // now we can make the geogrid
 return new GeoGrid(dataset, v_section, gcs_section);
}
origin: edu.ucar/netcdf

Element csElem;
if (GridCoordSys.isGridCoordSys(null, cs, null)) {
 GridCoordSys gcs = new GridCoordSys(cs, null);
 csElem = new Element("gridCoordSystem");
 csElem.setAttribute("name", cs.getName());
origin: Unidata/thredds

Element csElem;
if (GridCoordSys.isGridCoordSys(null, cs, null)) {
 GridCoordSys gcs = new GridCoordSys(cs, null);
 csElem = new Element("gridCoordSystem");
 csElem.setAttribute("name", cs.getName());
origin: edu.ucar/cdm

Element csElem;
if (GridCoordSys.isGridCoordSys(null, cs, null)) {
 GridCoordSys gcs = new GridCoordSys(cs, null);
 csElem = new Element("gridCoordSystem");
 csElem.setAttribute("name", cs.getName());
ucar.nc2.dt.gridGridCoordSys<init>

Javadoc

Create a GridCoordSys from an existing Coordinate System. This will choose which axes are the XHoriz, YHoriz, Vertical, Time, RunTIme, Ensemble. If theres a Projection, it will set its map area

Popular methods of GridCoordSys

  • hasVerticalAxis
  • 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
  • getLevels
    Get the list of level names, to be used for user selection. The ith one refers to the ith level coor
  • getLatLonBoundingBox,
  • getLevels,
  • getMinOrMaxLon,
  • getName,
  • getProjection,
  • getRangesFromLatLonRect,
  • getRunTimeAxis,
  • getTimeAxis,
  • getTimeAxis1D

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSupportFragmentManager (FragmentActivity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Top Sublime Text plugins
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