@Override public CoordinateAxis1DTime getTimeAxisForRun(int run_index) { if (!hasTimeAxis() || hasTimeAxis1D() || runTimeAxis == null) return null; int nruns = (int) runTimeAxis.getSize(); if ((run_index < 0) || (run_index >= nruns)) throw new IllegalArgumentException("getTimeAxisForRun index out of bounds= " + run_index); if (timeAxisForRun == null) timeAxisForRun = new CoordinateAxis1DTime[nruns]; if (timeAxisForRun[run_index] == null) timeAxisForRun[run_index] = makeTimeAxisForRun(run_index); return timeAxisForRun[run_index]; }
if (gcs.hasVerticalAxis()) csElem.setAttribute("vertical", gcs.getVerticalAxis().getFullName()); if (gcs.hasTimeAxis()) csElem.setAttribute("time", cs.getTaxis().getFullName()); } else {
@Override public CoordinateAxis1DTime getTimeAxisForRun(int run_index) { if (!hasTimeAxis() || hasTimeAxis1D() || runTimeAxis == null) return null; int nruns = (int) runTimeAxis.getSize(); if ((run_index < 0) || (run_index >= nruns)) throw new IllegalArgumentException("getTimeAxisForRun index out of bounds= " + run_index); if (timeAxisForRun == null) timeAxisForRun = new CoordinateAxis1DTime[nruns]; if (timeAxisForRun[run_index] == null) timeAxisForRun[run_index] = makeTimeAxisForRun(run_index); return timeAxisForRun[run_index]; }
if (gcs.hasVerticalAxis()) csElem.setAttribute("vertical", gcs.getVerticalAxis().getFullName()); if (gcs.hasTimeAxis()) csElem.setAttribute("time", cs.getTaxis().getFullName()); } else {
/** * @deprecated doesnt work correctly for intervals */ @Override public CoordinateAxis1DTime getTimeAxisForRun(int run_index) { if (!hasTimeAxis() || hasTimeAxis1D() || runTimeAxis == null) return null; int nruns = (int) runTimeAxis.getSize(); if ((run_index < 0) || (run_index >= nruns)) throw new IllegalArgumentException("getTimeAxisForRun index out of bounds= " + run_index); if (timeAxisForRun == null) timeAxisForRun = new CoordinateAxis1DTime[nruns]; if (timeAxisForRun[run_index] == null) timeAxisForRun[run_index] = makeTimeAxisForRun(run_index); return timeAxisForRun[run_index]; }
if (gcs.hasVerticalAxis()) csElem.setAttribute("vertical", gcs.getVerticalAxis().getFullName()); if (gcs.hasTimeAxis()) csElem.setAttribute("time", cs.getTaxis().getFullName()); } else {