Tabnine Logo
GridCoordSys.getRunTimeAxis
Code IndexAdd Tabnine to your IDE (free)

How to use
getRunTimeAxis
method
in
ucar.nc2.dt.grid.GridCoordSys

Best Java code snippets using ucar.nc2.dt.grid.GridCoordSys.getRunTimeAxis (Showing top 18 results out of 315)

origin: Unidata/thredds

@Override
public List<CalendarDate> getCalendarDates() {
 if (timeTaxis != null)
  return timeTaxis.getCalendarDates();
 else if (getRunTimeAxis() != null)
  return makeCalendarDates2D();
 else
  return new ArrayList<>();
}
origin: edu.ucar/netcdf

@Override
public CalendarDateRange getCalendarDateRange() {
 if (timeTaxis != null)
  return timeTaxis.getCalendarDateRange();
 else if (getRunTimeAxis() != null) {
  List<CalendarDate>  cd = makeCalendarDates2D();
  int last = cd.size();
  return (last > 0) ? CalendarDateRange.of(cd.get(0), cd.get(last-1)) : null;
 } else
  return null;
}
origin: edu.ucar/cdm

@Override
public CalendarDateRange getCalendarDateRange() {
 if (timeTaxis != null)
  return timeTaxis.getCalendarDateRange();
 else if (getRunTimeAxis() != null) {
  List<CalendarDate>  cd = makeCalendarDates2D();
  int last = cd.size();
  return (last > 0) ? CalendarDateRange.of(cd.get(0), cd.get(last-1)) : null;
 } else
  return null;
}
origin: Unidata/thredds

private List<CalendarDate> makeCalendarDates2D() {
 Set<CalendarDate> dates = new HashSet<>();
 CoordinateAxis1DTime rtaxis = getRunTimeAxis();
 List<CalendarDate> runtimes = rtaxis.getCalendarDates();
 for (int i = 0; i < runtimes.size(); i++) {
  CoordinateAxis1DTime taxis = getTimeAxisForRun(i);
  if (taxis == null) throw new IllegalStateException();
  List<CalendarDate> times = taxis.getCalendarDates();
  for (CalendarDate time : times) dates.add(time);
 }
 // sorted list
 int n = dates.size();
 CalendarDate[] dd = dates.toArray(new CalendarDate[n]);
 List<CalendarDate> dateList = Arrays.asList(dd);
 Collections.sort(dateList);
 return dateList;
}
origin: edu.ucar/cdm

@Override
public List<CalendarDate> getCalendarDates() {
 if (timeTaxis != null)
  return timeTaxis.getCalendarDates();
 else if (getRunTimeAxis() != null)
  return makeCalendarDates2D();
 else
  return new ArrayList<>();
}
origin: edu.ucar/netcdf

private List<CalendarDate> makeCalendarDates2D() {
 Set<CalendarDate> dates = new HashSet<CalendarDate>();
 CoordinateAxis1DTime rtaxis = getRunTimeAxis();
 List<CalendarDate> runtimes = rtaxis.getCalendarDates();
 for (int i = 0; i < runtimes.size(); i++) {
  CoordinateAxis1DTime taxis = getTimeAxisForRun(i);
  List<CalendarDate> times = taxis.getCalendarDates();
  for (int j = 0; j < times.size(); j++)
   dates.add(times.get(j));
 }
 // sorted list
 int n = dates.size();
 CalendarDate[] dd = dates.toArray(new CalendarDate[n]);
 List<CalendarDate> dateList = Arrays.asList(dd);
 Collections.sort(dateList);
 return dateList;
}
origin: edu.ucar/netcdf

@Override
public List<CalendarDate> getCalendarDates() {
 if (timeTaxis != null)
  return timeTaxis.getCalendarDates();
 else if (getRunTimeAxis() != null)
  return makeCalendarDates2D();
 else
  return null;
}
origin: Unidata/thredds

@Override
public CalendarDateRange getCalendarDateRange() {
 if (timeTaxis != null)
  return timeTaxis.getCalendarDateRange();
 else if (getRunTimeAxis() != null) {
  List<CalendarDate>  cd = makeCalendarDates2D();
  int last = cd.size();
  return (last > 0) ? CalendarDateRange.of(cd.get(0), cd.get(last-1)) : null;
 } else
  return null;
}
origin: edu.ucar/cdm

private List<CalendarDate> makeCalendarDates2D() {
 Set<CalendarDate> dates = new HashSet<>();
 CoordinateAxis1DTime rtaxis = getRunTimeAxis();
 List<CalendarDate> runtimes = rtaxis.getCalendarDates();
 for (int i = 0; i < runtimes.size(); i++) {
  CoordinateAxis1DTime taxis = getTimeAxisForRun(i);
  if (taxis == null) throw new IllegalStateException();
  List<CalendarDate> times = taxis.getCalendarDates();
  for (CalendarDate time : times) dates.add(time);
 }
 // sorted list
 int n = dates.size();
 CalendarDate[] dd = dates.toArray(new CalendarDate[n]);
 List<CalendarDate> dateList = Arrays.asList(dd);
 Collections.sort(dateList);
 return dateList;
}
origin: edu.ucar/netcdf

f.format("Coordinate System (%s)%n%n", getName());
if (getRunTimeAxis() != null) {
 f.format("rt=%s (%s)", runTimeAxis.getFullName(), runTimeAxis.getClass().getName());
 if (showCoords) showCoords(runTimeAxis, f);
origin: Unidata/thredds

f.format("Coordinate System (%s)%n", getName());
if (getRunTimeAxis() != null) {
 f.format(" rt=%s (%s)", runTimeAxis.getNameAndDimensions(), runTimeAxis.getClass().getName());
 if (showCoords) showCoords(runTimeAxis, f);
origin: edu.ucar/cdm

f.format("Coordinate System (%s)%n%n", getName());
if (getRunTimeAxis() != null) {
 f.format("rt=%s (%s)", runTimeAxis.getFullName(), runTimeAxis.getClass().getName());
 if (showCoords) showCoords(runTimeAxis, f);
origin: Unidata/thredds

if (gcs.getRunTimeAxis() != null) rtDimOrgIndex = findDimension(gcs.getRunTimeAxis().getDimension(0));
origin: edu.ucar/cdm

CoordinateAxis1DTime rtaxis = from.getRunTimeAxis();
if (rtaxis != null) {
 if (taxis1D != null) {
origin: edu.ucar/netcdf

CoordinateAxis1DTime rtaxis = from.getRunTimeAxis();
if (rtaxis != null) {
 if (taxis1D != null) {
origin: Unidata/thredds

CoordinateAxis1DTime rtaxis = from.getRunTimeAxis();
if (rtaxis != null) {
 if (taxis1D != null) {
origin: edu.ucar/cdm

if (gcs.getRunTimeAxis() != null) rtDimOrgIndex = findDimension(gcs.getRunTimeAxis().getDimension(0));
origin: edu.ucar/netcdf

if (gcs.getRunTimeAxis() != null) rtDimOrgIndex = findDimension(gcs.getRunTimeAxis().getDimension(0));
ucar.nc2.dt.gridGridCoordSysgetRunTimeAxis

Javadoc

get the RunTime axis, else null

Popular methods of GridCoordSys

  • hasVerticalAxis
  • <init>
    Create a GridCoordSys as a section of an existing GridCoordSys. This will create sections of the cor
  • convertUnits
  • findXYindexFromCoord
    Given a point in x,y coordinate space, find the x,y index in the coordinate system.
  • findXYindexFromCoordBounded
    Given a point in x,y coordinate space, find the x,y index in the coordinate system. If outside the r
  • getBoundingBox
    Get the x,y bounding box in projection coordinates.
  • getCalendarDates
  • getCoordinateTransforms
  • getEnsembleAxis
    get the Ensemble axis, else null
  • getHorizStaggerType
  • getLatLon
    Get the Lat/Lon coordinates of the midpoint of a grid cell, using the x,y indices
  • getLatLonBoundingBox
  • getLatLon,
  • getLatLonBoundingBox,
  • getLevels,
  • getMinOrMaxLon,
  • getName,
  • getProjection,
  • getRangesFromLatLonRect,
  • getTimeAxis,
  • getTimeAxis1D

Popular in Java

  • Running tasks concurrently on multiple threads
  • onRequestPermissionsResult (Fragment)
  • compareTo (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Notification (javax.management)
  • JOptionPane (javax.swing)
  • 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