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

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

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

origin: edu.ucar/cdm

/**
 * get the Projection.
 */
public ProjectionImpl getProjection() {
 return gcs.getProjection();
}
origin: Unidata/thredds

/**
 * get the Projection.
 */
public ProjectionImpl getProjection() {
 return gcs.getProjection();
}
origin: edu.ucar/netcdf

/**
 * get the Projection.
 */
public ProjectionImpl getProjection() {
 return gcs.getProjection();
}
origin: Unidata/thredds

public LatLonPoint getLatLon(double xcoord, double ycoord) {
 Projection dataProjection = getProjection();
 return dataProjection.projToLatLon(new ProjectionPointImpl(xcoord, ycoord), new LatLonPointImpl());
}
origin: edu.ucar/netcdf

public LatLonPoint getLatLon(double xcoord, double ycoord) {
 Projection dataProjection = getProjection();
 return dataProjection.projToLatLon(new ProjectionPointImpl(xcoord, ycoord), new LatLonPointImpl());
}
origin: edu.ucar/cdm

public LatLonPoint getLatLon(double xcoord, double ycoord) {
 Projection dataProjection = getProjection();
 return dataProjection.projToLatLon(new ProjectionPointImpl(xcoord, ycoord), new LatLonPointImpl());
}
origin: edu.ucar/cdm

/**
 * Given a lat,lon point, find the x,y index in the coordinate system.
 *
 * @param lat    latitude position.
 * @param lon    longitude position.
 * @param result put result in here, may be null
 * @return int[2], 0=x,1=y indices in the coordinate system of the point. These will be -1 if out of range.
 */
@Override
public int[] findXYindexFromLatLon(double lat, double lon, int[] result) {
 Projection dataProjection = getProjection();
 ProjectionPoint pp = dataProjection.latLonToProj(new LatLonPointImpl(lat, lon), new ProjectionPointImpl());
 return findXYindexFromCoord(pp.getX(), pp.getY(), result);
}
origin: edu.ucar/cdm

/**
 * Given a lat,lon point, find the x,y index in the coordinate system.
 * If outside the range, the closest point is returned
 *
 * @param lat    latitude position.
 * @param lon    longitude position.
 * @param result put result in here, may be null
 * @return int[2], 0=x,1=y indices in the coordinate system of the point.
 */
@Override
public int[] findXYindexFromLatLonBounded(double lat, double lon, int[] result) {
 Projection dataProjection = getProjection();
 ProjectionPoint pp = dataProjection.latLonToProj(new LatLonPointImpl(lat, lon), new ProjectionPointImpl());
 return findXYindexFromCoordBounded(pp.getX(), pp.getY(), result);
}
origin: edu.ucar/netcdf

/**
 * Given a lat,lon point, find the x,y index in the coordinate system.
 *
 * @param lat    latitude position.
 * @param lon    longitude position.
 * @param result put result in here, may be null
 * @return int[2], 0=x,1=y indices in the coordinate system of the point. These will be -1 if out of range.
 */
@Override
public int[] findXYindexFromLatLon(double lat, double lon, int[] result) {
 Projection dataProjection = getProjection();
 ProjectionPoint pp = dataProjection.latLonToProj(new LatLonPointImpl(lat, lon), new ProjectionPointImpl());
 return findXYindexFromCoord(pp.getX(), pp.getY(), result);
}
origin: Unidata/thredds

/**
 * Given a lat,lon point, find the x,y index in the coordinate system.
 *
 * @param lat    latitude position.
 * @param lon    longitude position.
 * @param result put result in here, may be null
 * @return int[2], 0=x,1=y indices in the coordinate system of the point. These will be -1 if out of range.
 */
@Override
public int[] findXYindexFromLatLon(double lat, double lon, int[] result) {
 Projection dataProjection = getProjection();
 ProjectionPoint pp = dataProjection.latLonToProj(new LatLonPointImpl(lat, lon), new ProjectionPointImpl());
 return findXYindexFromCoord(pp.getX(), pp.getY(), result);
}
origin: edu.ucar/netcdf

/**
 * Given a lat,lon point, find the x,y index in the coordinate system.
 * If outside the range, the closest point is returned
 *
 * @param lat    latitude position.
 * @param lon    longitude position.
 * @param result put result in here, may be null
 * @return int[2], 0=x,1=y indices in the coordinate system of the point.
 */
@Override
public int[] findXYindexFromLatLonBounded(double lat, double lon, int[] result) {
 Projection dataProjection = getProjection();
 ProjectionPoint pp = dataProjection.latLonToProj(new LatLonPointImpl(lat, lon), new ProjectionPointImpl());
 return findXYindexFromCoordBounded(pp.getX(), pp.getY(), result);
}
origin: Unidata/thredds

/**
 * Given a lat,lon point, find the x,y index in the coordinate system.
 * If outside the range, the closest point is returned
 *
 * @param lat    latitude position.
 * @param lon    longitude position.
 * @param result put result in here, may be null
 * @return int[2], 0=x,1=y indices in the coordinate system of the point.
 */
@Override
public int[] findXYindexFromLatLonBounded(double lat, double lon, int[] result) {
 Projection dataProjection = getProjection();
 ProjectionPoint pp = dataProjection.latLonToProj(new LatLonPointImpl(lat, lon), new ProjectionPointImpl());
 return findXYindexFromCoordBounded(pp.getX(), pp.getY(), result);
}
origin: edu.ucar/netcdf

double minx, maxx, miny, maxy;
ProjectionImpl proj = getProjection();
if (proj != null && !(proj instanceof VerticalPerspectiveView) && !(proj instanceof MSGnavigation)) { // LOOK kludge - how to do this generrally ??
 ProjectionRect prect = getProjection().latLonToProjBB(rect); // allow VerticalPerspectiveView to override
 minx = prect.getMinPoint().getX();
 miny = prect.getMinPoint().getY();
origin: edu.ucar/cdm

double minx, maxx, miny, maxy;
ProjectionImpl proj = getProjection();
if (proj != null && !(proj instanceof VerticalPerspectiveView) && !(proj instanceof MSGnavigation)
   && !(proj instanceof Geostationary)) { // LOOK kludge - how to do this generrally ??
 ProjectionRect prect = getProjection().latLonToProjBB(rect); // allow projection to override
 minx = prect.getMinPoint().getX();
 miny = prect.getMinPoint().getY();
origin: Unidata/thredds

double minx, maxx, miny, maxy;
ProjectionImpl proj = getProjection();
if (proj != null && !(proj instanceof VerticalPerspectiveView) && !(proj instanceof MSGnavigation)
   && !(proj instanceof Geostationary)) { // LOOK kludge - how to do this generrally ??
 ProjectionRect prect = getProjection().latLonToProjBB(rect); // allow projection to override
 minx = prect.getMinPoint().getX();
 miny = prect.getMinPoint().getY();
origin: edu.ucar/cdm

ProjectionImpl projOrig = from.getProjection();
if (projOrig != null) {
 proj = projOrig.constructCopy();
origin: edu.ucar/netcdf

ProjectionImpl projOrig = from.getProjection();
if (projOrig != null) {
 proj = projOrig.constructCopy();
origin: Unidata/thredds

ProjectionImpl dataProjection = getProjection();
ProjectionRect bb = getBoundingBox();
llbb = dataProjection.projToLatLonBB(bb);
origin: edu.ucar/cdm

ProjectionImpl dataProjection = getProjection();
ProjectionRect bb = getBoundingBox();
llbb = dataProjection.projToLatLonBB(bb);
origin: edu.ucar/netcdf

Projection dataProjection = getProjection();
ProjectionRect bb = getBoundingBox();
ucar.nc2.dt.gridGridCoordSysgetProjection

Javadoc

get the projection

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,
  • getRangesFromLatLonRect,
  • getRunTimeAxis,
  • getTimeAxis,
  • getTimeAxis1D

Popular in Java

  • Parsing JSON documents to java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setScale (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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