public CoordinateAxisTimeHelper getCoordinateAxisTimeHelper() { return new CoordinateAxisTimeHelper(getCalendarFromAttribute(), getUnitsString()); }
public CoordinateAxisTimeHelper getCoordinateAxisTimeHelper() { return new CoordinateAxisTimeHelper(getCalendarFromAttribute(), getUnitsString()); }
this.helper= new CoordinateAxisTimeHelper(getCalendarFromAttribute(), getUnitsString());
this.helper= new CoordinateAxisTimeHelper(getCalendarFromAttribute(), getUnitsString());
/** * Constructor for CHAR or STRING variables. * Must be ISO dates. * * @param ncd the containing dataset * @param org the underlying Variable * @param errMessages put error messages here; may be null * @param dims list of dimensions * @throws IOException on read error * @throws IllegalArgumentException if cant convert coordinate values to a Date */ private CoordinateAxis1DTime(NetcdfDataset ncd, VariableDS org, Formatter errMessages, String dims) throws IOException { super(ncd, org.getParentGroup(), org.getShortName(), DataType.STRING, dims, org.getUnitsString(), org.getDescription()); //Gotta set the original var. Otherwise it would be unable to read the values this.orgVar = org; this.orgName = org.orgName; this.helper = new CoordinateAxisTimeHelper(getCalendarFromAttribute(), null); if (org.getDataType() == DataType.CHAR) cdates = makeTimesFromChar(org, errMessages); else cdates = makeTimesFromStrings(org, errMessages); List<Attribute> atts = org.getAttributes(); for (Attribute att : atts) { addAttribute(att); } }
/** * Constructor for CHAR or STRING variables. * Must be ISO dates. * * @param ncd the containing dataset * @param org the underlying Variable * @param errMessages put error messages here; may be null * @param dims list of dimensions * @throws IOException on read error * @throws IllegalArgumentException if cant convert coordinate values to a Date */ private CoordinateAxis1DTime(NetcdfDataset ncd, VariableDS org, Formatter errMessages, String dims) throws IOException { super(ncd, org.getParentGroup(), org.getShortName(), DataType.STRING, dims, org.getUnitsString(), org.getDescription()); this.ncd = ncd; //Gotta set the original var. Otherwise it would be unable to read the values this.orgVar = org; this.orgName = org.orgName; this.helper = new CoordinateAxisTimeHelper(getCalendarFromAttribute(), null); if (org.getDataType() == DataType.CHAR) cdates = makeTimesFromChar(org, errMessages); else cdates = makeTimesFromStrings(org, errMessages); List<Attribute> atts = org.getAttributes(); for (Attribute att : atts) { addAttribute(att); } }
new CoordinateAxisTimeHelper(cal, tca.findAttributeIgnoreCase("units").getStringValue()); CalendarDate date = coordAxisTimeHelper.makeCalendarDateFromOffset(times.getInt(0));
new CoordinateAxisTimeHelper(cal, tca.findAttributeIgnoreCase("units").getStringValue()); CalendarDate date = coordAxisTimeHelper.makeCalendarDateFromOffset(times.getInt(0));