private double findAttributeDouble(NetcdfDataset ds, String attname) { Attribute att = ds.findGlobalAttributeIgnoreCase(attname); if (att == null) { parseInfo.format("ERROR cant find attribute= %s\n", attname); return Double.NaN; } return att.getNumericValue().doubleValue(); }
private double findAttributeDouble(NetcdfDataset ds, String attname, double defValue) { Attribute att = ds.findGlobalAttributeIgnoreCase(attname); if (att == null) return defValue; return att.getNumericValue().doubleValue(); }
public float getRangeToFirstGate() { Attribute firstGate = ds.findGlobalAttributeIgnoreCase("RangeToFirstGate"); double gateStart = firstGate.getNumericValue().doubleValue(); return (float) gateStart; }
private double findAttributeDouble(NetcdfDataset ds, String attname) { Attribute att = ds.findGlobalAttributeIgnoreCase(attname); if (att == null) return Double.NaN; return att.getNumericValue().doubleValue(); }
public float getRangeToFirstGate() { Attribute firstGate = ds.findGlobalAttributeIgnoreCase("RangeToFirstGate"); double gateStart = firstGate.getNumericValue().doubleValue(); return (float)gateStart; }
public float getRangeToFirstGate() { Attribute firstGate = ds.findGlobalAttributeIgnoreCase("RangeToFirstGate"); double gateStart = firstGate.getNumericValue().doubleValue(); return (float)gateStart; }
private double findAttributeDouble(NetcdfDataset ds, String attname) { Attribute att = ds.findGlobalAttributeIgnoreCase(attname); if (att == null) return Double.NaN; return att.getNumericValue().doubleValue(); }
private double findAttributeDouble(NetcdfDataset ds, String attname) { Attribute att = ds.findGlobalAttributeIgnoreCase(attname); if (att == null) return Double.NaN; return att.getNumericValue().doubleValue(); }
private double findAttributeDouble(NetcdfDataset ds, String attname) { Attribute att = ds.findGlobalAttributeIgnoreCase(attname); if ((att == null) || (att.isString())) return Double.NaN; return att.getNumericValue().doubleValue(); }
private double findAttributeDouble(NetcdfDataset ds, String attname) { Attribute att = ds.findGlobalAttributeIgnoreCase(attname); if ((att == null) || (att.isString())) return Double.NaN; return att.getNumericValue().doubleValue(); }
private double findAttributeDouble(NetcdfDataset ds, String attname) { Attribute att = ds.findGlobalAttributeIgnoreCase(attname); if ((att == null) || (att.isString())) return Double.NaN; return att.getNumericValue().doubleValue(); }
static private double getAttAsDouble( NetcdfDataset ds, String attname) { Attribute att = ds.findGlobalAttributeIgnoreCase(attname); if (null == att) throw new IllegalArgumentException("Must have a "+attname+" global attribute"); if (att.getDataType() == DataType.STRING) { return Double.parseDouble( att.getStringValue()); } else { return att.getNumericValue().doubleValue(); } }
static private double getAttAsDouble( NetcdfDataset ds, String attname) { Attribute att = ds.findGlobalAttributeIgnoreCase(attname); if (null == att) throw new IllegalArgumentException("Must have a "+attname+" global attribute"); if (att.getDataType() == DataType.STRING) { return Double.parseDouble( att.getStringValue()); } else { return att.getNumericValue().doubleValue(); } }
static private double getAttAsDouble( NetcdfDataset ds, String attname) { Attribute att = ds.findGlobalAttributeIgnoreCase(attname); if (null == att) throw new IllegalArgumentException("Must have a "+attname+" global attribute"); if (att.getDataType() == DataType.STRING) { return Double.parseDouble( att.getStringValue()); } else { return att.getNumericValue().doubleValue(); } }
static private double getAttAsDouble( NetcdfDataset ds, String attname) { Attribute att = ds.findGlobalAttributeIgnoreCase(attname); if (null == att) throw new IllegalArgumentException("Must have a "+attname+" global attribute"); if (att.getDataType() == DataType.STRING) { return Double.parseDouble( att.getStringValue()); } else { return att.getNumericValue().doubleValue(); } }
static private double getAttAsDouble( NetcdfDataset ds, String attname) { Attribute att = ds.findGlobalAttributeIgnoreCase(attname); if (null == att) throw new IllegalArgumentException("Must have a "+attname+" global attribute"); if (att.getDataType() == DataType.STRING) { return Double.parseDouble( att.getStringValue()); } else { return att.getNumericValue().doubleValue(); } }
static public Date getEndDate(NetcdfDataset ds) { Attribute att = ds.findGlobalAttributeIgnoreCase("time_coverage_end"); if (null == att) throw new IllegalArgumentException("Must have a time_coverage_end global attribute"); Date result; if (att.getDataType() == DataType.STRING) { result = DateUnit.getStandardOrISO( att.getStringValue()); } else { throw new IllegalArgumentException("time_coverage_end must be a ISO or udunit date string"); } return result; }
static public Date getStartDate(NetcdfDataset ds) { Attribute att = ds.findGlobalAttributeIgnoreCase("time_coverage_start"); if (null == att) throw new IllegalArgumentException("Must have a time_coverage_start global attribute"); if (att.getDataType() == DataType.STRING) { return DateUnit.getStandardOrISO( att.getStringValue()); } else { throw new IllegalArgumentException("time_coverage_start must be a ISO or udunit date string"); } }
static public Date getStartDate(NetcdfDataset ds) { Attribute att = ds.findGlobalAttributeIgnoreCase("time_coverage_start"); if (null == att) throw new IllegalArgumentException("Must have a time_coverage_start global attribute"); if (att.getDataType() == DataType.STRING) { return DateUnit.getStandardOrISO( att.getStringValue()); } else { throw new IllegalArgumentException("time_coverage_start must be a ISO or udunit date string"); } }
static public Date getStartDate(NetcdfDataset ds) { Attribute att = ds.findGlobalAttributeIgnoreCase("time_coverage_start"); if (null == att) throw new IllegalArgumentException("Must have a time_coverage_start global attribute"); if (att.getDataType() == DataType.STRING) { return DateUnit.getStandardOrISO( att.getStringValue()); } else { throw new IllegalArgumentException("time_coverage_start must be a ISO or udunit date string"); } }