Package hec.io
Class TimeSeriesContainerVertDatum
java.lang.Object
hec.io.DataContainer
hec.io.TimeSeriesContainer
hec.io.TimeSeriesContainerVertDatum
- All Implemented Interfaces:
IVerticalDatumOperations<TimeSeriesContainer,,mil.army.usace.hec.metadata.VerticalDatumException> Serializable,Cloneable,mil.army.usace.hec.metadata.VerticalDatum
public class TimeSeriesContainerVertDatum
extends TimeSeriesContainer
implements mil.army.usace.hec.metadata.VerticalDatum
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class hec.io.DataContainer
DataContainer.VERTICAL_DATUM, DataContainer.VERTICAL_UNITS -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected mil.army.usace.hec.metadata.VerticalDatumContainerFields inherited from class hec.io.TimeSeriesContainer
cnotes, endHecTime, endTime, inotes, interval, julianBaseDate, numberDepths, numberValues, parameter, precision, profileDepths, profileLabel, profileValues, quality, quality7, retrieveAllTimes, sizeEachNote, sizeEachQuality7, startHecTime, startTime, subLocation, subParameter, timeGranularitySeconds, times, timeZoneID, timeZoneRawOffset, type, units, unitsProfileDepths, unitsProfileValues, valuesFields inherited from class hec.io.DataContainer
coordinateID, coordinateSystem, CURRENT_VERTICAL_DATUM_HEADER, CURRENT_VERTICAL_DATUM_KEY, dataType, fileLastWriteTimeMillis, fileName, fullName, horizontalDatum, horizontalUnits, lastWriteTimeMillis, location, locationTimezone, modified, otherInfo, storedAsdoubles, subVersion, supplementalInfo, version, VERTICAL_DATUM_INFO_HEADER, VERTICAL_DATUM_INFO_KEY, verticalDatum, verticalUnits, watershed, xOrdinate, yOrdinate, zOrdinate -
Constructor Summary
ConstructorsConstructorDescriptionPublic constructorPublic constructorTimeSeriesContainerVertDatum(TimeSeriesContainer tsc, mil.army.usace.hec.metadata.VerticalDatumContainer vdc) Public constructorTimeSeriesContainerVertDatum(mil.army.usace.hec.metadata.VerticalDatumContainer vdc) Public constructor -
Method Summary
Modifier and TypeMethodDescriptionclone()clone the TimeSerieContainervoidclone(TimeSeriesContainer tsc) clone this TimeSeriesContainer into tscvoidconvertVerticalDatumUnits(String strUnit) mil.army.usace.hec.metadata.VerticalDatumContainerExtracts any verticalDatumInfo string in the supplementalInfo to a VerticalDatumContainer and removes the string from the supplementalInfo.booleanforceVerticalDatum(String datum) doubledoublegetCurrentOffset(String unit) doubledoublegetNAVD88Offset(String unit) doubledoublegetNGVD29Offset(String unit) mil.army.usace.hec.metadata.VerticalDatumContainerReturns the Vertical Datum Containerfinal Optional<mil.army.usace.hec.metadata.VerticalDatum>voidinsertVerticalDatum(mil.army.usace.hec.metadata.VerticalDatumContainer vdc) Inserts the text representation a VerticalDatumContainer into the supplementalInfo field of a DataContainer object, replacing any existing vertical datum information in the fieldstatic booleanbooleanbooleanbooleanvoidsetVerticalDatumContainer(mil.army.usace.hec.metadata.VerticalDatumContainer vdc) Sets the VerticalDatumContainer member of this object from the specified VerticalDatumContainervoidsetVerticalDatumInfo(String xmlStr) booleanbooleantoNAVD88()booleantoNGVD29()booleantoVerticalDatum(String datum) Methods inherited from class hec.io.TimeSeriesContainer
allMissing, collapseVerticalDatum, compressData, convertTimeZone, convertTimeZone, expandVerticalDatum, getAsString, getAsXML, getCharacterNotes, getDataSetStats, getEndTime, getFullVersionedName, getHecTime, getJulianBaseDate, getJulianDateAndTimeGranularity, getLocationName, getMinutes, getMinutesLong, getMinutesLong, getNumberValues, getParameterName, getProfileDepths, getProfileDepthsUnits, getProfileLabel, getProfileNumberDepths, getProfileValues, getProfileValuesUnits, getQuality, getQuality7, getQualitySize, getShortName, getStartTime, getTimeGranularitySeconds, getTimeInterval, getTimeIntervalSeconds, getTimes, getTimeZoneID, getType, getUnits, getValue, getValue, getValues, getVersionDate, getVersionName, hasValidProfileData, makeAscending, maximumValue, maxmimumValue, mean, minimumValue, printToConsole, printToConsole, removeAllMissing, set, set, set, set, setCharacterNotes, setCompressData, setEndTime, setJulianBaseDate, setProfile, setProfileDepthsUnits, setProfileLabel, setProfileValuesUnits, setQuality, setQuality7, setStartTime, setTimeGranularitySeconds, setTimes, setTimeZoneID, setType, setUnits, setValues, setVersionDate, trimToTime, trimToTime, usesExtendedDatesMethods inherited from class hec.io.DataContainer
clone, getFullName, getHorizontalDatum, getLatLong, getName, getStoreAsDoubles, getSupplementalInfo, getVerticalDatum, getVerticalUnits, setFullName, setHorizontalDatum, setLatLong, setName, setStoreAsDoubles, setSupplementalInfo, setVerticalDatum, setVerticalDatum, setVerticalUnits, setVerticalUnits, toString
-
Field Details
-
vdc
protected mil.army.usace.hec.metadata.VerticalDatumContainer vdc
-
-
Constructor Details
-
TimeSeriesContainerVertDatum
public TimeSeriesContainerVertDatum()Public constructor -
TimeSeriesContainerVertDatum
Public constructor- Parameters:
tsc- A TimeSeriesContainer object to initialize from
-
TimeSeriesContainerVertDatum
public TimeSeriesContainerVertDatum(TimeSeriesContainer tsc, mil.army.usace.hec.metadata.VerticalDatumContainer vdc) throws mil.army.usace.hec.metadata.VerticalDatumException Public constructor- Parameters:
tsc- A TimeSeriesContainer object to initialize fromvdc- A VerticalDatumContainer object to initialize from- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
TimeSeriesContainerVertDatum
public TimeSeriesContainerVertDatum(mil.army.usace.hec.metadata.VerticalDatumContainer vdc) throws mil.army.usace.hec.metadata.VerticalDatumException Public constructor- Parameters:
vdc- A VerticalDatumContainer object to initialize from- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
-
Method Details
-
clone
Description copied from class:TimeSeriesContainerclone the TimeSerieContainer- Overrides:
clonein classTimeSeriesContainer- Returns:
- a copy of the TimeSeriesContainer
-
clone
Description copied from class:TimeSeriesContainerclone this TimeSeriesContainer into tsc- Overrides:
clonein classTimeSeriesContainer- Parameters:
tsc- the filled in TimeSeriesContainer
-
getNativeVerticalDatum
- Specified by:
getNativeVerticalDatumin interfacemil.army.usace.hec.metadata.VerticalDatum- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
getCurrentVerticalDatum
- Specified by:
getCurrentVerticalDatumin interfacemil.army.usace.hec.metadata.VerticalDatum- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
isCurrentVerticalDatumEstimated
public boolean isCurrentVerticalDatumEstimated() throws mil.army.usace.hec.metadata.VerticalDatumException- Specified by:
isCurrentVerticalDatumEstimatedin interfacemil.army.usace.hec.metadata.VerticalDatum- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
toNativeVerticalDatum
public boolean toNativeVerticalDatum() throws mil.army.usace.hec.metadata.VerticalDatumException- Specified by:
toNativeVerticalDatumin interfacemil.army.usace.hec.metadata.VerticalDatum- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
toNGVD29
public boolean toNGVD29() throws mil.army.usace.hec.metadata.VerticalDatumException- Specified by:
toNGVD29in interfacemil.army.usace.hec.metadata.VerticalDatum- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
toNAVD88
public boolean toNAVD88() throws mil.army.usace.hec.metadata.VerticalDatumException- Specified by:
toNAVD88in interfacemil.army.usace.hec.metadata.VerticalDatum- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
toVerticalDatum
public boolean toVerticalDatum(String datum) throws mil.army.usace.hec.metadata.VerticalDatumException - Specified by:
toVerticalDatumin interfacemil.army.usace.hec.metadata.VerticalDatum- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
forceVerticalDatum
public boolean forceVerticalDatum(String datum) throws mil.army.usace.hec.metadata.VerticalDatumException - Specified by:
forceVerticalDatumin interfacemil.army.usace.hec.metadata.VerticalDatum- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
getCurrentOffset
public double getCurrentOffset() throws mil.army.usace.hec.metadata.VerticalDatumException- Specified by:
getCurrentOffsetin interfacemil.army.usace.hec.metadata.VerticalDatum- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
getCurrentOffset
public double getCurrentOffset(String unit) throws mil.army.usace.hec.metadata.VerticalDatumException - Specified by:
getCurrentOffsetin interfacemil.army.usace.hec.metadata.VerticalDatum- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
getNGVD29Offset
public double getNGVD29Offset() throws mil.army.usace.hec.metadata.VerticalDatumException- Specified by:
getNGVD29Offsetin interfacemil.army.usace.hec.metadata.VerticalDatum- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
getNGVD29Offset
public double getNGVD29Offset(String unit) throws mil.army.usace.hec.metadata.VerticalDatumException - Specified by:
getNGVD29Offsetin interfacemil.army.usace.hec.metadata.VerticalDatum- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
getNAVD88Offset
public double getNAVD88Offset() throws mil.army.usace.hec.metadata.VerticalDatumException- Specified by:
getNAVD88Offsetin interfacemil.army.usace.hec.metadata.VerticalDatum- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
getNAVD88Offset
public double getNAVD88Offset(String unit) throws mil.army.usace.hec.metadata.VerticalDatumException - Specified by:
getNAVD88Offsetin interfacemil.army.usace.hec.metadata.VerticalDatum- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
isNGVD29OffsetEstimated
public boolean isNGVD29OffsetEstimated() throws mil.army.usace.hec.metadata.VerticalDatumException- Specified by:
isNGVD29OffsetEstimatedin interfacemil.army.usace.hec.metadata.VerticalDatum- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
isNAVD88OffsetEstimated
public boolean isNAVD88OffsetEstimated() throws mil.army.usace.hec.metadata.VerticalDatumException- Specified by:
isNAVD88OffsetEstimatedin interfacemil.army.usace.hec.metadata.VerticalDatum- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
getVerticalDatumInfo
- Specified by:
getVerticalDatumInfoin interfacemil.army.usace.hec.metadata.VerticalDatum- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
setVerticalDatumInfo
public void setVerticalDatumInfo(String xmlStr) throws mil.army.usace.hec.metadata.VerticalDatumException - Specified by:
setVerticalDatumInfoin interfacemil.army.usace.hec.metadata.VerticalDatum- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
setVerticalDatumContainer
public void setVerticalDatumContainer(mil.army.usace.hec.metadata.VerticalDatumContainer vdc) throws mil.army.usace.hec.metadata.VerticalDatumException Sets the VerticalDatumContainer member of this object from the specified VerticalDatumContainer- Parameters:
vdc- the VerticalDatumContainer to set this object from- Throws:
mil.army.usace.hec.metadata.VerticalDatumException
-
convertVerticalDatumUnits
-
isCorrectParameter
-
extractVerticalDatum
public mil.army.usace.hec.metadata.VerticalDatumContainer extractVerticalDatum() throws mil.army.usace.hec.metadata.VerticalDatumException, IOExceptionDescription copied from class:DataContainerExtracts any verticalDatumInfo string in the supplementalInfo to a VerticalDatumContainer and removes the string from the supplementalInfo.- Overrides:
extractVerticalDatumin classDataContainer- Returns:
- The VerticalDatumContainer
- Throws:
mil.army.usace.hec.metadata.VerticalDatumExceptionIOException
-
insertVerticalDatum
public void insertVerticalDatum(mil.army.usace.hec.metadata.VerticalDatumContainer vdc) throws IOException Description copied from class:DataContainerInserts the text representation a VerticalDatumContainer into the supplementalInfo field of a DataContainer object, replacing any existing vertical datum information in the field- Overrides:
insertVerticalDatumin classDataContainer- Parameters:
vdc- The VerticalDatumContainer- Throws:
IOException
-
getVerticalDatumContainer
public mil.army.usace.hec.metadata.VerticalDatumContainer getVerticalDatumContainer()Returns the Vertical Datum Container- Specified by:
getVerticalDatumContainerin interfacemil.army.usace.hec.metadata.VerticalDatum- Returns:
-
getVerticalDatumMetadata
- Overrides:
getVerticalDatumMetadatain classTimeSeriesContainer
-