Tabnine Logo
CalendarDateRange.getEnd
Code IndexAdd Tabnine to your IDE (free)

How to use
getEnd
method
in
ucar.nc2.time.CalendarDateRange

Best Java code snippets using ucar.nc2.time.CalendarDateRange.getEnd (Showing top 20 results out of 315)

origin: Unidata/thredds

@Override
public CalendarDate getCalendarDateEnd() {
 return calendarDateRange == null ? null : calendarDateRange.getEnd();
}
origin: edu.ucar/netcdf

@Override
public CalendarDate getCalendarDateEnd() {
 return (dateRange == null) ? null : dateRange.getEnd();
}
origin: edu.ucar/cdm

@Override
public CalendarDate getCalendarDateEnd() {
 return (dateRange == null) ? null : dateRange.getEnd();
}
origin: Unidata/thredds

@Override
public CalendarDate getCalendarDateEnd() {
 return (dateRange == null) ? null : dateRange.getEnd();
}
origin: edu.ucar/netcdf

@Override
public CalendarDate getCalendarDateEnd() {
 if (dateRangeMax == null) makeRanges();
 return (dateRangeMax == null) ? null : dateRangeMax.getEnd();
}
origin: edu.ucar/cdm

@Override
public CalendarDate getCalendarDateEnd() {
 if (dateRangeMax == null) makeRanges();
 return (dateRangeMax == null) ? null : dateRangeMax.getEnd();
}
origin: Unidata/thredds

public CalendarDate getCalendarDateEnd() {
 if (dateRangeMax == null) makeRanges();
 return (dateRangeMax == null) ? null : dateRangeMax.getEnd();
}
origin: Unidata/thredds

public CalendarDate getCalendarDateEnd() {
 if (dateRangeMax == null) makeTimeRanges();
 return (dateRangeMax == null) ? null : dateRangeMax.getEnd();
}
origin: edu.ucar/netcdf

public CalendarDate getCalendarDateEnd() {
 if (dateRangeMax == null) makeRanges();
 return (dateRangeMax == null) ? null : dateRangeMax.getEnd();
}
origin: edu.ucar/cdm

public CalendarDate getCalendarDateEnd() {
 if (dateRangeMax == null) makeRanges();
 return (dateRangeMax == null) ? null : dateRangeMax.getEnd();
}
origin: edu.ucar/netcdf

public CalendarDateRange intersect(CalendarDateRange clip) {
 DateTime cs = clip.getStart().getDateTime();
 DateTime s = startDt.isBefore(cs) ? cs : startDt;  // later one
 DateTime ce = clip.getEnd().getDateTime();
 DateTime e = endDt.isBefore(ce) ? endDt : ce;  // earlier one
 return CalendarDateRange.of(CalendarDate.of(cal, s), CalendarDate.of(cal, e));
}
origin: Unidata/thredds

public CalendarDateRange intersect(CalendarDateRange clip) {
 DateTime cs = clip.getStart().getDateTime();
 DateTime s = startDt.isBefore(cs) ? cs : startDt;  // later one
 DateTime ce = clip.getEnd().getDateTime();
 DateTime e = endDt.isBefore(ce) ? endDt : ce;  // earlier one
 return CalendarDateRange.of(CalendarDate.of(cal, s), CalendarDate.of(cal, e));
}
origin: Unidata/thredds

public CalendarDateRange extend(CalendarDateRange other)  {
 DateTime cs = other.getStart().getDateTime();
 DateTime s = startDt.isBefore(cs) ? startDt : cs; // earlier one
 DateTime ce = other.getEnd().getDateTime();
 DateTime e = endDt.isBefore(ce) ? ce : endDt;  // later one
 return CalendarDateRange.of(CalendarDate.of(cal, s), CalendarDate.of(cal, e));
}
origin: edu.ucar/netcdf

public CalendarDateRange extend(CalendarDateRange other)  {
 DateTime cs = other.getStart().getDateTime();
 DateTime s = startDt.isBefore(cs) ? startDt : cs; // earlier one
 DateTime ce = other.getEnd().getDateTime();
 DateTime e = endDt.isBefore(ce) ? ce : endDt;  // later one
 return CalendarDateRange.of(CalendarDate.of(cal, s), CalendarDate.of(cal, e));
}
origin: edu.ucar/cdm

public CalendarDateRange intersect(CalendarDateRange clip) {
 DateTime cs = clip.getStart().getDateTime();
 DateTime s = startDt.isBefore(cs) ? cs : startDt;  // later one
 DateTime ce = clip.getEnd().getDateTime();
 DateTime e = endDt.isBefore(ce) ? endDt : ce;  // earlier one
 return CalendarDateRange.of(CalendarDate.of(cal, s), CalendarDate.of(cal, e));
}
origin: edu.ucar/cdm

public CalendarDateRange extend(CalendarDateRange other)  {
 DateTime cs = other.getStart().getDateTime();
 DateTime s = startDt.isBefore(cs) ? startDt : cs; // earlier one
 DateTime ce = other.getEnd().getDateTime();
 DateTime e = endDt.isBefore(ce) ? ce : endDt;  // later one
 return CalendarDateRange.of(CalendarDate.of(cal, s), CalendarDate.of(cal, e));
}
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: edu.ucar/netcdf

private Range makeTimeRange(CalendarDateRange dateRange, CoordinateAxis1DTime timeAxis, int stride_time) throws InvalidRangeException {
  Range timeRange = null;
  if ((dateRange != null) && (timeAxis != null)) {
    int startIndex = timeAxis.findTimeIndexFromCalendarDate(dateRange.getStart());
    int endIndex = timeAxis.findTimeIndexFromCalendarDate(dateRange.getEnd());
    if (startIndex < 0)
      throw new InvalidRangeException("start time=" + dateRange.getStart() + " must be >= " + timeAxis.getCalendarDate(0));
    if (endIndex < 0)
      throw new InvalidRangeException("end time=" + dateRange.getEnd() + " must be >= " + timeAxis.getCalendarDate(0));
    if (stride_time <= 1) stride_time = 1;
    timeRange = new Range(startIndex, endIndex, stride_time);
  }
  return timeRange;
}
origin: Unidata/thredds

@Override
public CalendarDateRange makeCalendarDateRange(ucar.nc2.time.Calendar cal) {
 CoordinateTimeAbstract firstCoord = getTimeCoordinate(0);
 CoordinateTimeAbstract lastCoord = getTimeCoordinate(nruns-1);
 CalendarDateRange firstRange = firstCoord.makeCalendarDateRange(cal);
 CalendarDateRange lastRange = lastCoord.makeCalendarDateRange(cal);
 return CalendarDateRange.of(firstRange.getStart(), lastRange.getEnd());
}
origin: Unidata/thredds

CdmrFeatureProto.CalendarDateRange.Builder encodeDateRange(CalendarDateRange dateRange) {
 CdmrFeatureProto.CalendarDateRange.Builder builder = CdmrFeatureProto.CalendarDateRange.newBuilder();
 builder.setStart(dateRange.getStart().getMillis());
 builder.setEnd(dateRange.getEnd().getMillis());
 Calendar cal = dateRange.getStart().getCalendar();
 builder.setCalendar(convertCalendar(cal));
 return builder;
}
ucar.nc2.timeCalendarDateRangegetEnd

Popular methods of CalendarDateRange

  • of
    Does not handle non-standard calendars
  • extend
  • getStart
  • getDurationInSecs
  • getResolution
  • includes
  • intersects
  • toDateRange
    Does not handle non-standard calendars
  • <init>
  • getDuration
  • intersect
  • equals
  • intersect,
  • equals,
  • hashCode,
  • isPoint

Popular in Java

  • Creating JSON documents from java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onCreateOptionsMenu (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Top Sublime Text 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