/** * sets description of parameter. * * @param description of parameter */ public final void setDescription(String description) { this.description = Util.cleanName(description); }
/** * sets unit of parameter. * * @param unit of parameter */ public final void setUnit(String unit) { this.unit = Util.cleanUnit(unit); }
short y = (short) (xy % 1000); String name = Util.cleanName(line.substring(8)); String units = ""; line = dataIS.readLine();
public Grib2Parameter(int discipline, int category, int number, String name, String unit, String abbrev, String desc) { this.discipline = discipline; this.category = category; this.number = number; this.name = name.trim(); this.abbrev = abbrev; this.unit = Util.cleanUnit(unit); this.desc = desc; this.fill = null; this.missing = Float.NaN; }
public Grib2Parameter(Grib2Parameter from, String name, String unit) { this.discipline = from.discipline; this.category = from.category; this.number = from.number; this.desc = from.desc; this.abbrev = from.abbrev; this.name = name.trim(); this.unit = Util.cleanUnit(unit); this.fill = null; this.missing = Float.NaN; }
name = Util.cleanName(name);
public Grib2Parameter(int discipline, int category, int number, String name, String unit, String abbrev, String desc, float fill, float missing) { this.discipline = discipline; this.category = category; this.number = number; this.name = name.trim(); this.abbrev = abbrev; this.unit = Util.cleanUnit(unit); this.desc = desc; this.fill = fill; this.missing = missing; }
int w = seq / 1000; int x = w % 100; String seqName = Util.cleanName(elem.getChildTextNormalize(elems[1])); currDesc = tableD.addDescriptor((short) x, (short) y, seqName, new ArrayList<Short>()); currSeqno = seq;
unitW = Util.cleanUnit(unit); } else { unitW = ""; // no null unit allowed
if (ce == null) continue; String name = Util.cleanName(elem.getChildTextNormalize(elems[1])); String units = cleanUnit(elem.getChildTextNormalize("BUFR_Unit")); int x = 0, y = 0, scale = 0, reference = 0, width = 0;