congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
GridCoordSys.findXYindexFromCoordBounded
Code IndexAdd Tabnine to your IDE (free)

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

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

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.
 * 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);
}
ucar.nc2.dt.gridGridCoordSysfindXYindexFromCoordBounded

Javadoc

Given a point in x,y coordinate space, find the x,y index in the coordinate system. If outside the range, the closest point is returned, eg, 0 or n-1 depending on if the coordinate is too small or too large.

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

  • Start an intent from android
  • notifyDataSetChanged (ArrayAdapter)
  • getContentResolver (Context)
  • getApplicationContext (Context)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • 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