baseDate = runDates[0]; runtimes = Arrays.asList(runDates); runtimeDimName = runtimeCoord.getDimension(0).getShortName(); coordSet.add(runtimeCoord.getFullName());
tAxis = timeTaxis = (t_range == null) ? taxis1D : taxis1D.section(t_range); coordAxes.add(timeTaxis); timeDim = timeTaxis.getDimension(0); } else { if ((rt_range == null) && (t_range == null)) if (rtaxis != null) { if (taxis1D != null) { Dimension tDim = taxis1D.getDimension(0); Dimension rtDim = rtaxis.getDimension(0); if (tDim.getShortName().equals(rtDim.getShortName())) { // must usetime subset range if dims match - FMRC 1D has this a lot runTimeAxis = (t_range == null) ? rtaxis : rtaxis.section(t_range);
tAxis = timeTaxis = (t_range == null) ? taxis1D : (CoordinateAxis1DTime) taxis1D.section(t_range); coordAxes.add(timeTaxis); timeDim = timeTaxis.getDimension(0); } else { if ((rt_range == null) && (t_range == null)) if (rtaxis != null) { if (taxis1D != null) { Dimension tDim = taxis1D.getDimension(0); Dimension rtDim = rtaxis.getDimension(0); if (tDim.getShortName().equals(rtDim.getShortName())) { // must usetime subset range if dims match - FMRC 1D has this a lot runTimeAxis = (t_range == null) ? rtaxis : (CoordinateAxis1DTime) rtaxis.section(t_range);
tAxis = timeTaxis = (t_range == null) ? taxis1D : taxis1D.section(t_range); coordAxes.add(timeTaxis); timeDim = timeTaxis.getDimension(0); } else { if ((rt_range == null) && (t_range == null)) if (rtaxis != null) { if (taxis1D != null) { Dimension tDim = taxis1D.getDimension(0); Dimension rtDim = rtaxis.getDimension(0); if (rtDim != null && tDim.getShortName().equals(rtDim.getShortName())) { // must use time subset range if dims match - FMRC 1D has this a lot runTimeAxis = (t_range == null) ? rtaxis : rtaxis.section(t_range);
if (gcs.getTimeAxis() != null) { if (gcs.getTimeAxis1D() != null) tDimOrgIndex = findDimension(gcs.getTimeAxis1D().getDimension(0)); else tDimOrgIndex = findDimension(gcs.getTimeAxis().getDimension(1)); if (gcs.getRunTimeAxis() != null) rtDimOrgIndex = findDimension(gcs.getRunTimeAxis().getDimension(0));
if (rtAxis != null && rtAxis.getRank() == 1) { if (!rtAxis.getDimension(0).equals(t.getDimension(0))) { if (errlog != null) errlog.format("%s: 2D Time axis first dimension must be runtime%n", cs.getName()); return;
if (gcs.getTimeAxis() != null) { if (gcs.getTimeAxis1D() != null) tDimOrgIndex = findDimension(gcs.getTimeAxis1D().getDimension(0)); else tDimOrgIndex = findDimension(gcs.getTimeAxis().getDimension(1)); if (gcs.getRunTimeAxis() != null) rtDimOrgIndex = findDimension(gcs.getRunTimeAxis().getDimension(0));
if (gcs.getTimeAxis() != null) { if (gcs.getTimeAxis1D() != null) tDimOrgIndex = findDimension(gcs.getTimeAxis1D().getDimension(0)); else tDimOrgIndex = findDimension(gcs.getTimeAxis().getDimension(1)); if (gcs.getRunTimeAxis() != null) rtDimOrgIndex = findDimension(gcs.getRunTimeAxis().getDimension(0));
if (gcs.getRunTimeAxis() != null) rtDimOrgIndex = findDimension(gcs.getRunTimeAxis().getDimension(0));