/** * Get the list of names, to be used for user selection. * The ith one refers to the ith coordinate. * * @return List of ucar.nc2.util.NamedObject, or empty list. */ public List<NamedObject> getNames() { int n = getDimension(0).getLength(); List<NamedObject> names = new ArrayList<>(n); for (int i = 0; i < n; i++) names.add(new ucar.nc2.util.NamedAnything(getCoordName(i), getUnitsString())); return names; }
/** * Get the list of names, to be used for user selection. * The ith one refers to the ith coordinate. * * @return List of ucar.nc2.util.NamedObject, or empty list. */ public List<NamedObject> getNames() { int n = (int) getDimension(0).getLength(); List<NamedObject> names = new ArrayList<NamedObject>(n); for (int i = 0; i < n; i++) names.add(new ucar.nc2.util.NamedAnything(getCoordName(i), getUnitsString())); return names; }
/** * Get the list of names, to be used for user selection. * The ith one refers to the ith coordinate. * * @return List of ucar.nc2.util.NamedObject, or empty list. */ public List<NamedObject> getNames() { int n = getDimension(0).getLength(); List<NamedObject> names = new ArrayList<>(n); for (int i = 0; i < n; i++) names.add(new ucar.nc2.util.NamedAnything(getCoordName(i), getShortName() + " " + getUnitsString())); return names; }
if (!rt1D.getDimension(0).equals(t.getDimension(0))) { if (sbuff != null) { sbuff.format("%s: Time axis must use RunTime dimension%n", cs.getName());
if (!rt1D.getDimension(0).equals(t.getDimension(0))) { if (sbuff != null) { sbuff.format("%s: Time axis must use RunTime dimension%n", cs.getName());
if (gcs.getVerticalAxis() != null) zDimOrgIndex = findDimension(gcs.getVerticalAxis().getDimension(0)); if (gcs.getTimeAxis() != null) { if (gcs.getTimeAxis().getRank() == 1) if (gcs.getEnsembleAxis() != null) eDimOrgIndex = findDimension(gcs.getEnsembleAxis().getDimension(0)); if (gcs.getRunTimeAxis() != null) rtDimOrgIndex = findDimension(gcs.getRunTimeAxis().getDimension(0));
if (gcs.getVerticalAxis() != null) zDimOrgIndex = findDimension(gcs.getVerticalAxis().getDimension(0)); if (gcs.getTimeAxis() != null) { if (gcs.getTimeAxis1D() != null) if (gcs.getEnsembleAxis() != null) eDimOrgIndex = findDimension(gcs.getEnsembleAxis().getDimension(0)); if (gcs.getRunTimeAxis() != null) rtDimOrgIndex = findDimension(gcs.getRunTimeAxis().getDimension(0));
if (gcs.getVerticalAxis() != null) zDimOrgIndex = findDimension(gcs.getVerticalAxis().getDimension(0)); if (gcs.getTimeAxis() != null) { if (gcs.getTimeAxis1D() != null) if (gcs.getEnsembleAxis() != null) eDimOrgIndex = findDimension(gcs.getEnsembleAxis().getDimension(0)); if (gcs.getRunTimeAxis() != null) rtDimOrgIndex = findDimension(gcs.getRunTimeAxis().getDimension(0));
if (gcs.getVerticalAxis() != null) zDimOrgIndex = findDimension(gcs.getVerticalAxis().getDimension(0)); if (gcs.getTimeAxis() != null) { if (gcs.getTimeAxis1D() != null) if (gcs.getEnsembleAxis() != null) eDimOrgIndex = findDimension(gcs.getEnsembleAxis().getDimension(0)); if (gcs.getRunTimeAxis() != null) rtDimOrgIndex = findDimension(gcs.getRunTimeAxis().getDimension(0));
if (2 != boundsVar.getRank()) return false; if (getDimension(0) != boundsVar.getDimension(0)) return false; if (2 != boundsVar.getDimension(1).getLength()) return false;
if (2 != boundsVar.getRank()) return false; if (getDimension(0) != boundsVar.getDimension(0)) return false; if (2 != boundsVar.getDimension(1).getLength()) return false;
if (2 != boundsVar.getRank()) return false; if (getDimension(0) != boundsVar.getDimension(0)) return false; if (2 != boundsVar.getDimension(1).getLength()) return false;