public class SeasonalPairedValues extends PairedValuesExt implements AsciiSerializable
INTERP_CUBIC, INTERP_CUBIC_ID, INTERP_LINEAR, INTERP_LINEAR_ID, INTERP_STEP, INTERP_STEP_ID, INTERP_STRINGS| Constructor and Description |
|---|
SeasonalPairedValues() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearValues()
empty data arrays ( but not _dataVector
|
SeasonalPairedValues |
clone()
Creates a new object of the same class as this object.
|
int |
findTimeInterval(int rundate)
find interval time for interpolation
|
static java.lang.String |
getDateString(int minutes)
Convert a julian time ( minutes ) into a string of
DDMMM
|
java.lang.Object |
getFieldObject(java.lang.reflect.Field fld)
required AsciiSerialized method.
|
int |
getGmtOffset()
Returns the time zone that this data is defined for.
|
static int |
getJulianMinute(java.lang.String dateStr) |
static int |
getJulianMinute(java.lang.String dateStr,
int startYear) |
PairedValues |
getPairedValues()
Return a PairedValues object developed from the first SeasonalPairedValues curve
|
int |
getTime(int id)
returns the time at the specified array location
|
int[] |
getTimeArray() |
int |
getTimeInterpolationType() |
int |
getYears()
get the length of the seasonal record (years)
|
boolean |
hasSeasonalVariation() |
void |
init()
initialize the PairedValueExt object.
|
double |
interpolate(HecTime htime,
double xval)
Interpolate in time and function x-value
|
double |
interpolate(int interpTime,
double xval)
Interpolate in time and function x-value
|
double |
interpolate(RunTime runtime,
double xval)
Interpolate in time and function x-value
|
double |
interpolate(RunTimeStep runtime,
double xval)
Interpolate in time and function x-value
|
static void |
main(java.lang.String[] args) |
boolean |
resetWaterYearStart(java.lang.String waterYearStart) |
void |
scaleValues(double scl) |
void |
setArrays(double[] xArray,
double[][] yArrays,
int[] timeArray)
set xvalues, single or multiple yvalue curves, and times (as int julian minutes)
|
boolean |
setData(PairedDataContainer pdc)
set x-ordinates and multiple yvalue curves.
|
void |
setData(PairedValues pv,
java.lang.String startDate)
Develop a one curve SeasonalPairedValues object from a PairedValues object
|
void |
setData(SeasonalRecord sr)
Develop a SeasonalPairedValues object from a SeasonalRecord
|
boolean |
setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
required AsciiSerialized method.
|
void |
setGmtOffset(int offset) |
void |
setHasSeasonalVariation(boolean tf)
Set use seasonal variation.
|
void |
setTimeInterpolationType(int type)
set type of interpolation in time
|
addPair, addPair, canInterpX, debugString, findInterval, findInterval, getCurve, getCurveLabels, getCurveLabelValues, getData, getDataVector, getDssIdentifier, getInterpolationType, getLargestValue, getNumberCurves, getNumY, getPairedDataContainer, getParametersId, getParametersIds, getParamXId, getParamXString, getParamXUnitsString, getParamYId, getParamYString, getParamYUnitsString, getParamZId, getParamZString, getParamZUnitsString, getUnitSystem, getXArray, getXValue, getXValue, getXValue, getYArray, getYArray, getYData, getYValue, getYValue, getYValue, getYValue, getYValue, getYValue, hasCurveLabels, insertCurve, interpolate, interpolate, interpolate, interpolateStepValue, interpolateStepValue, interpolateValue, interpolateValue, interpolateValueCubicSpline, interpolateValueCubicSpline, interpolateY, interpolateY, interpolateY, isXValueOutOfRange, isZValueOutOfRange, removeCurve, removePair, setArrays, setArrays, setArrays, setCurveLabels, setData, setDssIdentifier, setInterpolationType, setNumY, setParamXId, setParamYId, setParamZId, setUnitSystem, size, toString, toTableFormpublic void setGmtOffset(int offset)
public int getGmtOffset()
public void scaleValues(double scl)
public SeasonalPairedValues clone()
clone in class PairedValuesExtpublic void init()
PairedValuesExtinit in class PairedValuesExtpublic void setTimeInterpolationType(int type)
public int getTimeInterpolationType()
public boolean setData(PairedDataContainer pdc)
setData in class PairedValuesExtpdc - the PairedDataContainer to copy the data frompublic void setData(SeasonalRecord sr)
public void setData(PairedValues pv, java.lang.String startDate)
public PairedValues getPairedValues()
public int[] getTimeArray()
public void setArrays(double[] xArray,
double[][] yArrays,
int[] timeArray)
public void clearValues()
clearValues in class PairedValuesExtpublic void setHasSeasonalVariation(boolean tf)
public boolean hasSeasonalVariation()
public double interpolate(RunTimeStep runtime, double xval)
public double interpolate(HecTime htime, double xval)
public double interpolate(RunTime runtime, double xval)
public double interpolate(int interpTime,
double xval)
public int findTimeInterval(int rundate)
public boolean resetWaterYearStart(java.lang.String waterYearStart)
public static java.lang.String getDateString(int minutes)
public static int getJulianMinute(java.lang.String dateStr)
public static int getJulianMinute(java.lang.String dateStr,
int startYear)
public static void main(java.lang.String[] args)
public int getTime(int id)
public int getYears()
public java.lang.Object getFieldObject(java.lang.reflect.Field fld)
PairedValuesExtgetFieldObject in interface FieldAccessorgetFieldObject in class PairedValuesExtfld - The field to get.public boolean setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
PairedValuesExtsetFieldObject in interface FieldAccessorsetFieldObject in class PairedValuesExtfld - The java field object representing the member field to be setfobj - The data to set in that field