congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
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

  • Reactive rest calls using spring rest template
  • getApplicationContext (Context)
  • setScale (BigDecimal)
  • setRequestProperty (URLConnection)
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JFrame (javax.swing)
  • JTable (javax.swing)
  • 14 Best Plugins for Eclipse
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