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

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

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

origin: Unidata/thredds

@Nonnull
public CoverageCoordAxisBuilder subsetClosest(CalendarDate[] date) {
 double[] want = new double[2];
 want[0] = axis.convert(date[0]);
 want[1] = axis.convert(date[1]);
 return subsetValuesClosest(want);
}
origin: Unidata/thredds

@Nonnull
public CoverageCoordAxisBuilder subsetClosest(CalendarDate date) {
 double want = axis.convert(date);
 return subsetValuesClosest(want);
}
origin: Unidata/thredds

public Optional<CoverageCoordAxisBuilder> subset(CalendarDateRange dateRange, int stride) {
 double min = axis.convert(dateRange.getStart());
 double max = axis.convert(dateRange.getEnd());
 return subsetValues(min, max, stride);
}
origin: Unidata/thredds

public CoverageCoordAxis1D getTimeAxisForRun(CalendarDate rundate) {
 double rundateTarget = runCoord.convert(rundate);
 int run_index = new CoordAxisHelper(runCoord).findCoordElement(rundateTarget, false);  // LOOK not Bounded
 return (run_index < 0 || run_index >= runCoord.getNcoords()) ? null : getTimeAxisForRun(run_index);
}
origin: Unidata/thredds

 throw new IllegalStateException("Must have time parameter");
double wantOffset = runAxisSubset.convert(dateWanted); // forecastDate offset from refdate
double start = timeOffset.getStartValue();
double end = timeOffset.getEndValue();
origin: Unidata/thredds

@Override
public Optional<CoverageCoordAxis> subset(SubsetParams params) {
 if (params == null)
  return Optional.of(new TimeAxis2DFmrc(new CoverageCoordAxisBuilder(this)));
 CalendarDate rundate = (CalendarDate) params.get(SubsetParams.runtime);
 boolean runtimeAll = (Boolean) params.get(SubsetParams.runtimeAll);
 boolean latest = (rundate == null) && !runtimeAll; // default is latest
 int run_index = -1;
 if (latest) {
  run_index = runCoord.getNcoords() - 1;
 } else if (rundate != null){
  double rundateTarget = runCoord.convert(rundate);
  CoordAxisHelper helper = new CoordAxisHelper(runCoord);
  run_index = helper.findCoordElement(rundateTarget, true);  // LOOK Bounded
 }
 if (run_index >= 0) {
  CoverageCoordAxis1D time1D = getTimeAxisForRun(run_index);
  return time1D.subset(params);
 }
 // no subsetting needed
 return Optional.of(new TimeAxis2DFmrc(new CoverageCoordAxisBuilder(this)));
}
ucar.nc2.ft2.coverageCoverageCoordAxis1Dconvert

Popular methods of CoverageCoordAxis1D

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • startActivity (Activity)
  • setScale (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • ImageIO (javax.imageio)
  • CodeWhisperer 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