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

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

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

origin: Unidata/thredds

private void addAdjustedTimeCoords(SubsetParams result, CoverageCoordAxis1D axis, int coordIdx, CalendarDate runtime) {
 // this must be adjusted to be offset from the runtime.
 // adjust = end - start
 // axisCoordOffset + axis.reftime = offset + runtime
 // offset = axisCoordOffset + axis.reftime - runtime
 // offset = axisCoordOffset + adjust
 // offset = axisCoordOffset + end - start = axisCoordOffset + axis.reftime - runtime
 // therefore: end = reftime, start = runtime
 double adjust = axis.getOffsetInTimeUnits(runtime, axis.getRefDate());
 if (axis.isInterval()) {
  double[] adjustVal = new double[] {axis.getCoordEdge1(coordIdx)+adjust, axis.getCoordEdge2(coordIdx)+adjust};
  result.setTimeOffsetIntv(adjustVal);
  double mid = (adjustVal[0]+adjustVal[1]) / 2.0;
  result.set(SubsetParams.timeOffsetUnit, axis.makeDateInTimeUnits(runtime, mid)); // validation
  result.set(SubsetParams.timeOffsetUnit, axis.getCalendarDateUnit()); // validation
 } else {
  double adjustVal = axis.getCoordMidpoint(coordIdx) + adjust;
  result.setTimeOffset(adjustVal);
  result.set(SubsetParams.timeOffsetDate, axis.makeDateInTimeUnits(runtime, adjustVal)); // validation
  result.set(SubsetParams.timeOffsetUnit, axis.getCalendarDateUnit()); // validation
 }
}
origin: Unidata/thredds

double offset = timeAxisSubset.getOffsetInTimeUnits(runAxis.getRefDate(), timeAxisSubset.getRefDate());
origin: Unidata/thredds

double offset = timeAxisSubset.getOffsetInTimeUnits(runAxis.getRefDate(), timeAxisSubset.getRefDate());
ucar.nc2.ft2.coverageCoverageCoordAxis1DgetRefDate

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 requests using okhttp
  • startActivity (Activity)
  • getApplicationContext (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • 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 PhpStorm 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