Tabnine Logo
CoverageCoordAxis1D.getValues
Code IndexAdd Tabnine to your IDE (free)

How to use
getValues
method
in
ucar.nc2.ft2.coverage.CoverageCoordAxis1D

Best Java code snippets using ucar.nc2.ft2.coverage.CoverageCoordAxis1D.getValues (Showing top 4 results out of 315)

origin: Unidata/thredds

 int search(double want) {
  if (axis.getNcoords() == 1) {
   return Misc.nearlyEquals(want, axis.getStartValue()) ? 0 : -1;
  }
  if (axis.isRegular()) {
   double fval = (want - axis.getStartValue()) / axis.getResolution();
   double ival = Math.rint(fval);
   return Misc.nearlyEquals(fval, ival) ? (int) ival : (int) -ival - 1; // LOOK
  }

  // otherwise do a binary search
  return Arrays.binarySearch(axis.getValues(), want);
 }
}
origin: Unidata/thredds

double[] values = axis.getValues();  // will be null for regular
double[] subsetValues = null;
switch (axis.getSpacing()) {
origin: Unidata/thredds

case irregularPoint:
case discontiguousInterval:
 builder.values = timeAxisSubset.getValues(); // this is a copy
 for (int i=0; i<builder.values.length; i++)
  builder.values[i] += offset;
origin: Unidata/thredds

case irregularPoint:
case discontiguousInterval:
 builder.values = timeAxisSubset.getValues(); // this is a copy
 for (int i=0; i<builder.values.length; i++)
  builder.values[i] += offset;
ucar.nc2.ft2.coverageCoverageCoordAxis1DgetValues

Popular methods of CoverageCoordAxis1D

  • getCoordMidpoint
  • getEndValue
  • getNcoords
  • getResolution
  • makeDate
  • <init>
  • getCoordEdge1
  • getCoordEdge2
  • getDependenceType
  • getSpacing
  • getStartValue
  • convert
  • getStartValue,
  • convert,
  • copy,
  • getAxisType,
  • getCalendar,
  • getCalendarDateUnit,
  • getCoordEdgeFirst,
  • getCoordEdgeLast,
  • getCoordObject,
  • getCoordsAsArray

Popular in Java

  • Making http post requests using okhttp
  • onCreateOptionsMenu (Activity)
  • startActivity (Activity)
  • onRequestPermissionsResult (Fragment)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Table (org.hibernate.mapping)
    A relational table
  • 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