/** * get the standardized description, or null if none. */ public String getDescription() { return vs.getDescription(); }
/** * get the standardized description */ public String getDescription() { return vs.getDescription(); }
/** * get the standardized description, or null if none. */ public String getDescription() { return vs.getDescription(); }
/** * get the standardized description, or null if none. */ @Override public String getDescription() { return vs.getDescription(); }
String description = variableDS.getDescription(); if (description == null) { description = variableDS.getShortName();
/** * Remove coordinate system info. */ public void clearCoordinateSystems() { this.enhanceProxy = new EnhancementsImpl( this, getUnitsString(), getDescription()); }
/** * Remove coordinate system info. */ @Override public void clearCoordinateSystems() { this.enhanceProxy = new EnhancementsImpl(this, getUnitsString(), getDescription()); }
/** * Remove coordinate system info. */ public void clearCoordinateSystems() { this.enhanceProxy = new EnhancementsImpl( this, getUnitsString(), getDescription()); }
/** * */ private void initRange() { // set the rank rank = variableDS.getRank(); width = variableDS.getDimension(rank - UnidataUtilities.X_DIMENSION).getLength(); height = variableDS.getDimension(rank - UnidataUtilities.Y_DIMENSION).getLength(); numBands = rank > 2 ? variableDS.getDimension(2).getLength() : 1; final int bufferType = UnidataUtilities.getRawDataType(variableDS); sampleModel = new BandedSampleModel(bufferType, width, height, 1); // range type String description = variableDS.getDescription(); final StringBuilder sb = new StringBuilder(); final Set<SampleDimension> sampleDims = new HashSet<SampleDimension>(); sampleDims.add(new GridSampleDimension(description + ":sd", (Category[]) null, null)); InternationalString desc = null; if (description != null && !description.isEmpty()) { desc = new SimpleInternationalString(description); } final FieldType fieldType = new DefaultFieldType(new NameImpl(getName()), desc, sampleDims); sb.append(description != null ? description.toString() + "," : ""); final RangeType range = new DefaultRangeType(getName(), description, fieldType); this.setRangeType(range); }
String description = variableDS.getDescription(); if (description == null) { description = variableDS.getShortName();
/** * 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.calendar = getCalendarFromAttribute(); 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()); //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); } }