|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.agmodel.physical.GeneralSequenceImpl
|
+--net.agmodel.weatherData.GeneralMetSequenceImpl
|
+--net.agmodel.weatherData.WetDryImpl
Represents humidity using a pair of wet and dry bulb temperature sequences Note that only point measurements of wet and dry bulb temperatures should be used hence there is no "putxxxBulbTempOverInterval()" method. However, it is OK to extract average values of the point measurements using getxxxBulbTempOverInterval()
| Field Summary |
| Fields inherited from class net.agmodel.weatherData.GeneralMetSequenceImpl |
rb |
| Fields inherited from class net.agmodel.physical.GeneralSequenceImpl |
dateRange, maximumTemporalInterpolation, summaryHistory |
| Constructor Summary | |
WetDryImpl(Interval dateRange,
SummaryHistory composition)
Creates a wet and dry bulb sequence. |
|
| Method Summary | |
RHImpl |
average(Duration newResolution)
Creates a new sequence containing calculated humidities averaged to a lower resolution. |
Object |
clone()
|
JigsawQuantity |
getAverage(Interval interval)
Returns the average humidity over the interval. |
JigsawQuantity |
getAverageDewpoint(Interval interval)
Returns the average dewpoint temperature over the interval. |
JigsawQuantity |
getAverageDryBulbTemp(Interval interval)
Returns the average dry bulb temperature over the interval. |
JigsawQuantity |
getAverageVPD(Interval interval)
Returns the average vapour pressure deficit over the interval. |
JigsawQuantity |
getAverageWetBulbTemp(Interval interval)
Returns the average wet bulb temperature over the interval. |
String |
getContentsAsString(Date time,
String delimiter)
Returns the measurement associated with a particular time as a string. |
float[] |
getCoverage(int index)
Indicates which array elements returned by getData(int) are missing.
|
double[] |
getData(int index)
Creates a one-dimensional array containing one subcomponent of the data. |
static double |
getDewpoint(double drybulb,
double wetbulb)
Estimates the dew point temperature from wet and dry bulb temperatures assuming pressure is 1013 mb,and From Weather Algorithms Index |
JigsawQuantity |
getInstant(Date time)
Returns the instantaneous humidity at a particular point in time. |
JigsawQuantity |
getInstantDewpoint(Date time)
Returns the instantaneous dewpoint temperature at a particular point in time. |
JigsawQuantity |
getInstantDryBulbTemp(Date time)
Returns the instantaneous dry bulb temperature at a particular point in time. |
JigsawQuantity |
getInstantVPD(Date time)
Returns the instantaneous vapour pressure deficit at a particular point in time. |
JigsawQuantity |
getInstantWetBulbTemp(Date time)
Returns the instantaneous wet bulb temperature at a particular point in time. |
JigsawQuantity |
getMaximum(Interval interval)
Returns the maximum humidity over the interval. |
JigsawQuantity |
getMinimum(Interval interval)
Returns the minimum humidity over the interval. |
int |
getNumberOfSubComponents()
Get the number of sub-components in the sequence. |
String |
getSubHeading(int index)
Gets a brief description of the data stored in a Sequence subcomponent in the language of the default locale. |
void |
putInstantDryBulbTemp(Date time,
float value)
Records the instantaneous temperature at a particular time |
void |
putInstantWetBulbTemp(Date time,
float value)
Records the instantaneous temperature at a particular time |
static double |
relHumFromWetDry(double tdry,
double twet)
|
void |
setSubHeading(int index,
String aHeading)
Does nothing |
MetSequence |
summarize(Duration longerResolution)
Creates a lower resolution sequence which summarizes this sequence |
| Methods inherited from class net.agmodel.weatherData.GeneralMetSequenceImpl |
getColumnHeading, getName, getSequenceElement, getSequenceHeading, getUnitsHeading, setColumnHeading, setName, setSequenceHeading, setUnitsHeading |
| Methods inherited from class net.agmodel.physical.GeneralSequenceImpl |
cancelTemporalInterpolation, dumpSequence, getAllCoverage, getAllData, getCurrentResolution, getDateRange, getMaximumTemporalInterpolation, getResolution, getSubHeading, getSummaryHistory, getSummaryKind, getTemporalInterpolation, getUnitsHeading, setTemporalInterpolation |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.agmodel.weatherData.MetSequence |
getSequenceElement |
| Methods inherited from interface net.agmodel.physical.CompoundSequence |
cancelTemporalInterpolation, getAllCoverage, getAllData, getMaximumTemporalInterpolation, getTemporalInterpolation, getUnitsHeading, setSequenceHeading, setTemporalInterpolation, setUnitsHeading |
| Methods inherited from interface net.agmodel.physical.Sequence |
dumpSequence, getColumnHeading, getCurrentResolution, getDateRange, getName, getResolution, getSequenceHeading, getSubHeading, getSummaryKind, getUnitsHeading, setColumnHeading, setName |
| Constructor Detail |
public WetDryImpl(Interval dateRange,
SummaryHistory composition)
dateRange - the interval over which wet and dry bulb temperatures can be storedcomposition - a record of how raw temperature data has been summarised to make the sequence.| Method Detail |
public static double getDewpoint(double drybulb,
double wetbulb)
drybulb - the temperature in Celsiuswetbulb - the wetbulbu temperature in Celsius
public static double relHumFromWetDry(double tdry,
double twet)
public JigsawQuantity getAverage(Interval interval)
Humidity
getAverage in interface Humiditypublic JigsawQuantity getInstant(Date time)
Humidity
getInstant in interface Humiditypublic JigsawQuantity getAverageVPD(Interval interval)
public JigsawQuantity getInstantVPD(Date time)
public JigsawQuantity getAverageDewpoint(Interval interval)
Humidity
getAverageDewpoint in interface Humiditypublic JigsawQuantity getInstantDewpoint(Date time)
Humidity
getInstantDewpoint in interface Humidity
public void putInstantDryBulbTemp(Date time,
float value)
time - the point in timevalue - the dry bulb temperature at that time
IllegalArgumentException - if the time is outside the interval that the period is intended to storepublic JigsawQuantity getInstantDryBulbTemp(Date time)
public JigsawQuantity getAverageDryBulbTemp(Interval interval)
public void putInstantWetBulbTemp(Date time,
float value)
time - the point in timevalue - the wet bulb temperature at that time
IllegalArgumentException - if the time is outside the interval that the period is intended to storepublic JigsawQuantity getInstantWetBulbTemp(Date time)
public JigsawQuantity getAverageWetBulbTemp(Interval interval)
public JigsawQuantity getMinimum(Interval interval)
Humidity
getMinimum in interface Humiditypublic JigsawQuantity getMaximum(Interval interval)
Humidity
getMaximum in interface Humidity
public String getContentsAsString(Date time,
String delimiter)
Sequence
getContentsAsString in interface SequencegetContentsAsString in class GeneralSequenceImpltime - the time of interest.delimiter - a string to use between values if required.public RHImpl average(Duration newResolution)
newResolution - the target resolution required.
public MetSequence summarize(Duration longerResolution)
MetSequence
summarize in interface MetSequencelongerResolution - the new resolution to summarize to
public int getNumberOfSubComponents()
Sequence
getNumberOfSubComponents in interface SequencegetNumberOfSubComponents in class GeneralMetSequenceImplSequence.getSequenceHeading(String)public String getSubHeading(int index)
CompoundSequence
getSubHeading in interface CompoundSequencegetSubHeading in class GeneralMetSequenceImplSequence.getNumberOfSubComponents(),
Sequence.getSequenceHeading(String)
public void setSubHeading(int index,
String aHeading)
setSubHeading in interface CompoundSequencesetSubHeading in class GeneralMetSequenceImplaHeading - the new headingindex - the zero-based index of the headingSequence.getNumberOfSubComponents(),
Sequence.getSequenceHeading(String)public double[] getData(int index)
CompoundSequenceCompoundSequence.getCoverage(int) to test for missing values
(at present these are returned as Double.NaN but don't rely on this).
getData in interface CompoundSequencegetData in class GeneralSequenceImplindex - the zero-based index of the subcomponent
Sequence.getNumberOfSubComponents()public float[] getCoverage(int index)
CompoundSequenceCompoundSequence.getData(int) are missing.
Coverage values are in the range JigsawQuantity.DEVOID to JigsawQuantity.COMPLETE.
getCoverage in interface CompoundSequencegetCoverage in class GeneralSequenceImplindex - the zero-based index of the subcomponent
public Object clone()
clone in interface Sequenceclone in class GeneralSequenceImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||