/** * Constructor when theres no underlying variable. You better set the values too! * * @param ds the containing NetcdfDataset. * @param group the containing group; if null, use rootGroup * @param parentStructure parent Structure, may be null * @param shortName variable shortName, must be unique within the Group * @param dims list of dimension names, space delimited * @param units unit string (may be null) * @param desc description (may be null) */ public StructureDS(NetcdfDataset ds, Group group, Structure parentStructure, String shortName, String dims, String units, String desc) { super(ds, group, parentStructure, shortName); setDimensions(dims); this.proxy = new EnhancementsImpl(this, units, desc); if (units != null) addAttribute(new Attribute(CDM.UNITS, units)); if (desc != null) addAttribute(new Attribute(CDM.LONG_NAME, desc)); }
/** * Constructor when theres no underlying variable. You better set the values too! * * @param ds the containing NetcdfDataset. * @param group the containing group; if null, use rootGroup * @param parentStructure parent Structure, may be null * @param shortName variable shortName, must be unique within the Group * @param dims list of dimension names, space delimited * @param units unit string (may be null) * @param desc description (may be null) */ public StructureDS(NetcdfDataset ds, Group group, Structure parentStructure, String shortName, String dims, String units, String desc) { super(ds, group, parentStructure, shortName); setDimensions(dims); this.proxy = new EnhancementsImpl(this, units, desc); if (units != null) addAttribute(new Attribute(CDM.UNITS, units)); if (desc != null) addAttribute(new Attribute(CDM.LONG_NAME, desc)); }
/** * Constructor when theres no underlying variable. You better set the values too! * * @param ds the containing NetcdfDataset. * @param group the containing group; if null, use rootGroup * @param parentStructure parent Structure, may be null * @param shortName variable shortName, must be unique within the Group * @param dims list of dimension names, space delimited * @param units unit string (may be null) * @param desc description (may be null) */ public StructureDS(NetcdfDataset ds, Group group, Structure parentStructure, String shortName, String dims, String units, String desc) { super(ds, group, parentStructure, shortName); setDimensions(dims); this.proxy = new EnhancementsImpl(this, units, desc); if (units != null) addAttribute(new Attribute(CDM.UNITS, units)); if (desc != null) addAttribute(new Attribute(CDM.LONG_NAME, desc)); }