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

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

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

origin: Unidata/thredds

/**
 * Given a point in x,y coordinate space, find the x,y index in the coordinate system.
 *
 * @deprecated use findXYindexFromCoord
 */
public int[] findXYCoordElement(double x_coord, double y_coord, int[] result) {
 return findXYindexFromCoord(x_coord, y_coord, result);
}
origin: edu.ucar/netcdf

/**
 * Given a point in x,y coordinate space, find the x,y index in the coordinate system.
 *
 * @deprecated use findXYindexFromCoord
 */
public int[] findXYCoordElement(double x_coord, double y_coord, int[] result) {
 return findXYindexFromCoord(x_coord, y_coord, result);
}
origin: edu.ucar/cdm

/**
 * Given a point in x,y coordinate space, find the x,y index in the coordinate system.
 *
 * @deprecated use findXYindexFromCoord
 */
public int[] findXYCoordElement(double x_coord, double y_coord, int[] result) {
 return findXYindexFromCoord(x_coord, y_coord, result);
}
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/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);
}
ucar.nc2.dt.gridGridCoordSysfindXYindexFromCoord

Javadoc

Given a point in x,y coordinate space, find the x,y index in the coordinate system.

Popular methods of GridCoordSys

  • hasVerticalAxis
  • <init>
    Create a GridCoordSys as a section of an existing GridCoordSys. This will create sections of the cor
  • convertUnits
  • 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

  • Creating JSON documents from java classes using gson
  • findViewById (Activity)
  • onCreateOptionsMenu (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JFileChooser (javax.swing)
  • Github Copilot alternatives
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