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

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

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

origin: Unidata/thredds

private void trackDateRange(CalendarDateRange cdr) {
 if (dateRange == null) dateRange = cdr;
 else dateRange = dateRange.extend(cdr);
}
origin: Unidata/thredds

public CalendarDateRange makeCalendarDateRange() {
 CalendarDateRange result = null;
 for (Coordinate coord : coords) {
  switch (coord.getType()) {
   case time:
   case timeIntv:
   case time2D:
    CoordinateTimeAbstract time = (CoordinateTimeAbstract) coord;
    CalendarDateRange range = time.makeCalendarDateRange(null);
    if (result == null) result = range;
    else result = result.extend(range);
  }
 }
 return result;
}
origin: Unidata/thredds

public FeatureDatasetCoverage(String location, AttributeContainer gatts, Closeable closer, List<CoverageCollection> covCollections) {
 this.location = location;
 this.gatts = gatts;
 this.closer = closer;
 this.covCollections = covCollections;
 CalendarDateRange cdr = null;
 FeatureType ft = null;
 for (CoverageCollection cc : covCollections) {
  FeatureType ftCheck = cc.getCoverageType();
  if (ft == null) ft = ftCheck;
  else if (ftCheck != ft) ft = FeatureType.COVERAGE;
  CalendarDateRange cdrCheck = cc.getCalendarDateRange();
  if (cdr == null) cdr = cdrCheck;
  else if (cdrCheck != null) cdr = cdr.extend( cdrCheck);
 }
 this.featureType = ft;
 this.calendarDateRange = cdr;
}
origin: Unidata/thredds

public CalendarDateRange getCalendarDateRange() {
 if (dateRange == null) {
  CalendarDateRange result = null;
  for (Coordinate coord : coords) {
   switch (coord.getType()) {
    case time:
    case timeIntv:
    case time2D:
     CoordinateTimeAbstract time = (CoordinateTimeAbstract) coord;
     CalendarDateRange range = time.makeCalendarDateRange(null);
     if (result == null) result = range;
     else result = result.extend(range);
   }
  }
  dateRange = result;
 }
 return dateRange;
}
origin: Unidata/thredds

private void makeTimeRanges() {
 for (Gridset gset : getGridsets()) {
  DtCoverageCS gcs = gset.getGeoCoordSystem();
  CalendarDateRange dateRange = gcs.getCalendarDateRange();
  if (dateRange != null) {
   if (dateRangeMax == null)
    dateRangeMax = dateRange;
   else
    dateRangeMax = dateRangeMax.extend(dateRange);
  }
 }
}
origin: Unidata/thredds

CalendarDateRange calendarDateRange = ((CoordinateTimeAbstract) coord).makeCalendarDateRange(null);
if (calendarDateRangeAll == null) calendarDateRangeAll = calendarDateRange;
else calendarDateRangeAll = calendarDateRangeAll.extend(calendarDateRange);
origin: Unidata/thredds

CalendarDateRange calendarDateRange = ((CoordinateTimeAbstract) coord).makeCalendarDateRange(null);
if (calendarDateRangeAll == null) calendarDateRangeAll = calendarDateRange;
else calendarDateRangeAll = calendarDateRangeAll.extend(calendarDateRange);
origin: edu.ucar/netcdf

private void makeRanges() {
 for (CoverageSet cset : getCoverageSets()) {
  CoverageCS ccs = cset.getCoverageCS();
  LatLonRect llbb = ccs.getLatLonBoundingBox();
  if (llbbMax == null)
   llbbMax = llbb;
  else
   llbbMax.extend(llbb);
  CalendarDateRange dateRange = ccs.getCalendarDateRange();
  if (dateRange != null) {
   if (dateRangeMax == null)
    dateRangeMax = dateRange;
   else
    dateRangeMax.extend(dateRange);
  }
 }
}
origin: edu.ucar/netcdf

private void makeRanges() {
 for (ucar.nc2.dt.GridDataset.Gridset gset : getGridsets()) {
  GridCoordSystem gcs = gset.getGeoCoordSystem();
  LatLonRect llbb = gcs.getLatLonBoundingBox();
  if (llbbMax == null)
   llbbMax = llbb;
  else
   llbbMax.extend(llbb);
  CalendarDateRange dateRange = gcs.getCalendarDateRange();
  if (dateRange != null) {
   if (dateRangeMax == null)
    dateRangeMax = dateRange;
   else
    dateRangeMax.extend(dateRange);
  }
 }
}
origin: edu.ucar/cdm

private void makeRanges() {
 for (ucar.nc2.dt.GridDataset.Gridset gset : getGridsets()) {
  GridCoordSystem gcs = gset.getGeoCoordSystem();
  LatLonRect llbb = gcs.getLatLonBoundingBox();
  if (llbbMax == null)
   llbbMax = llbb;
  else
   llbbMax.extend(llbb);
  CalendarDateRange dateRange = gcs.getCalendarDateRange();
  if (dateRange != null) {
   if (dateRangeMax == null)
    dateRangeMax = dateRange;
   else
    dateRangeMax.extend(dateRange);
  }
 }
}
origin: edu.ucar/cdm

private void makeRanges() {
 for (CoverageSet cset : getCoverageSets()) {
  CoverageCS ccs = cset.getCoverageCS();
  LatLonRect llbb = ccs.getLatLonBoundingBox();
  if (llbbMax == null)
   llbbMax = llbb;
  else
   llbbMax.extend(llbb);
  CalendarDateRange dateRange = ccs.getCalendarDateRange();
  if (dateRange != null) {
   if (dateRangeMax == null)
    dateRangeMax = dateRange;
   else
    dateRangeMax.extend(dateRange);
  }
 }
}
origin: Unidata/thredds

private void makeRanges() {
 for (ucar.nc2.dt.GridDataset.Gridset gset : getGridsets()) {
  GridCoordSystem gcs = gset.getGeoCoordSystem();
  ProjectionRect bb = gcs.getBoundingBox();
  if (projBB == null)
   projBB = bb;
  else
   projBB.add(bb);
  LatLonRect llbb = gcs.getLatLonBoundingBox();
  if (llbbMax == null)
   llbbMax = llbb;
  else
   llbbMax.extend(llbb);
  CalendarDateRange dateRange = gcs.getCalendarDateRange();
  if (dateRange != null) {
   if (dateRangeMax == null)
    dateRangeMax = dateRange;
   else
    dateRangeMax = dateRangeMax.extend(dateRange);
  }
 }
}
origin: Unidata/thredds

else dateRangeAll = dateRangeAll.extend(gc.dateRange);
origin: edu.ucar/netcdf

 dates = pfc.getCalendarDateRange();
else
 dates.extend(pfc.getCalendarDateRange());
 dates = pfc.getCalendarDateRange();
else
 dates.extend(pfc.getCalendarDateRange());
origin: edu.ucar/cdm

 dates = pfc.getCalendarDateRange();
else
 dates.extend(pfc.getCalendarDateRange());
  dates = pfc.getCalendarDateRange();
 else
  dates.extend(pfc.getCalendarDateRange());
origin: Unidata/thredds

else if (!rangeOverlaps) {
 rangeOverlaps = dateRangeAll.intersects(gc.dateRange);
 dateRangeAll = dateRangeAll.extend(gc.dateRange);
origin: Unidata/thredds

static public CalendarDateRange extractCalendarDateRange(GridDataset gridDataset) {
 CalendarDateRange maxDateRange = null;
 for (GridDataset.Gridset gridset : gridDataset.getGridsets()) {
  GridCoordSystem gsys = gridset.getGeoCoordSystem();
  CalendarDateRange dateRange;
  CoordinateAxis1DTime time1D = gsys.getTimeAxis1D();
  if (time1D != null) {
   dateRange = time1D.getCalendarDateRange();
  } else {
   CoordinateAxis time = gsys.getTimeAxis();
   if (time == null)
    continue;
   
   try {
    DateUnit du = new DateUnit( time.getUnitsString());
    Date minDate = du.makeDate(time.getMinValue());
    Date maxDate = du.makeDate(time.getMaxValue());
    dateRange = CalendarDateRange.of( minDate, maxDate);
   } catch (Exception e) {
    logger.warn("Illegal Date Unit "+time.getUnitsString());
    continue;
   }
  }
  if (maxDateRange == null)
   maxDateRange = dateRange;
  else
   maxDateRange = maxDateRange.extend( dateRange);
 }
 return maxDateRange;
}
origin: edu.ucar/cdm

static public CalendarDateRange extractCalendarDateRange(GridDataset gridDataset) {
 CalendarDateRange maxDateRange = null;
 for (GridDataset.Gridset gridset : gridDataset.getGridsets()) {
  GridCoordSystem gsys = gridset.getGeoCoordSystem();
  CalendarDateRange dateRange;
  CoordinateAxis1DTime time1D = gsys.getTimeAxis1D();
  if (time1D != null) {
   dateRange = time1D.getCalendarDateRange();
  } else {
   CoordinateAxis time = gsys.getTimeAxis();
   if (time == null)
    continue;
   
   try {
    DateUnit du = new DateUnit( time.getUnitsString());
    Date minDate = du.makeDate(time.getMinValue());
    Date maxDate = du.makeDate(time.getMaxValue());
    dateRange = CalendarDateRange.of( minDate, maxDate);
   } catch (Exception e) {
    logger.warn("Illegal Date Unit "+time.getUnitsString());
    continue;
   }
  }
  if (maxDateRange == null)
   maxDateRange = dateRange;
  else
   maxDateRange.extend( dateRange);
 }
 return maxDateRange;
}
origin: edu.ucar/netcdf

static public CalendarDateRange extractCalendarDateRange(GridDataset gridDataset) {
 CalendarDateRange maxDateRange = null;
 for (GridDataset.Gridset gridset : gridDataset.getGridsets()) {
  GridCoordSystem gsys = gridset.getGeoCoordSystem();
  CalendarDateRange dateRange;
  CoordinateAxis1DTime time1D = gsys.getTimeAxis1D();
  if (time1D != null) {
   dateRange = time1D.getCalendarDateRange();
  } else {
   CoordinateAxis time = gsys.getTimeAxis();
   if (time == null)
    continue;
   
   try {
    DateUnit du = new DateUnit( time.getUnitsString());
    Date minDate = du.makeDate(time.getMinValue());
    Date maxDate = du.makeDate(time.getMaxValue());
    dateRange = CalendarDateRange.of( minDate, maxDate);
   } catch (Exception e) {
    logger.warn("Illegal Date Unit "+time.getUnitsString());
    continue;
   }
  }
  if (maxDateRange == null)
   maxDateRange = dateRange;
  else
   maxDateRange.extend( dateRange);
 }
 return maxDateRange;
}
origin: Unidata/thredds

 maxDateRange = dateRange;
else
 maxDateRange = maxDateRange.extend(dateRange);
ucar.nc2.timeCalendarDateRangeextend

Popular methods of CalendarDateRange

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

Popular in Java

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setScale (BigDecimal)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Notification (javax.management)
  • JTextField (javax.swing)
  • Top plugins for Android Studio
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