Package net.simplace.sim.transformers
Klasse NetRadiationFromAnyTransformer
java.lang.Object
net.simplace.sim.io.FWSimIOAdapter
net.simplace.sim.io.resources.FWSimInputAdapter
net.simplace.sim.io.resources.FWSimResourceTransformer
net.simplace.sim.transformers.NetRadiationFromAnyTransformer
- Alle implementierten Schnittstellen:
net.simplace.sim.util.FWSimFieldContainer
public class NetRadiationFromAnyTransformer
extends net.simplace.sim.io.resources.FWSimResourceTransformer
Calculates net radiation from either global radiation or, if no global radiation available, from sun hours using (FAO 56) methods.
Extra-terrestrial as well as solar radiation (in case of sun hours input) are also calculated.
Chosen method depends on input availability, preferential order as below.
- From solar radiation.
- From sun hours.
Note: If data is missing in weather inputs, calculation method may change without throwing an error. This may be desired when dealing with an incomplete dataset, but undesired when missing data unintendedly changes the calculation method. An INFO message is written to log when the method changes.
For documentation of the formulas please check the original reference (FAO 56)
Configuration
requested structure of configuration element:
| <transform id="weather_transform" resource="weather" frequence="DAILY" class="net.simplace.sim.transformers.NetRadiationFromAny"> | <header> | <res id="StationID" datatype="CHAR"/> | <res id="MESS_DATUM" datatype="DATE" key="CURRENT.DATE" /> | <res id="SolarRadiationJ" unit="J*m**-2" datatype="DOUBLE"/> | <res id="SolarRadiationKJ" unit="KJ*m**-2" datatype="DOUBLE"/> | <res id="SolarRadiationMJ" unit="MJ*m**-2" datatype="DOUBLE"/> | <res id="ExtraterrestrialRadiation" unit="KJ*m**-2" datatype="DOUBLE"/> | <res id="NetSolarRadiationJ" unit="J*m**-2" datatype="DOUBLE"/> | <res id="NetSolarRadiationKJ" unit="KJ*m**-2" datatype="DOUBLE"/> | <res id="NetSolarRadiationMJ" unit="MJ*m**-2" datatype="DOUBLE"/> | <res id="NetOutgoingLWRadiation" unit="KJ*m**-2" datatype="DOUBLE"/> | <res id="NetRadiationJ" unit="J*m**-2" datatype="DOUBLE"/> | <res id="NetRadiationKJ" unit="KJ*m**-2" datatype="DOUBLE"/> | <res id="NetRadiationMJ" unit="MJ*m**-2" datatype="DOUBLE"/> | </header> | <input id="cLatitude" source="vLatitude"/> | <input id="cAltitude" source="vAltitude"/> | <input id="cAngstromRegressionConstant" source="vAngstromRegressionConstant"/> | <input id="cAngstromRegressionSlope" source="vAngstromRegressionSlope"/> | <input id="cUseAnstroemVariables">true</input> | <input id="cMaxTempName">AirTemperatureMax</input> | <input id="cMinTempName">AirTemperatureMin</input> | <input id="cSunHoursName">SunHours</input> | <input id="cSolarRadiationName">SolarRadiation</input> | <input id="cActualVapourPressureName">VapourPressure</input> | </transform>
References
- Autor:
- Andreas Enders, Gunther Krauss, gk@uni-bonn.de
Component Variables
| Content Type | Name | Description | Data Type | Unit | Min Value | Max Value | Default Value |
|---|---|---|---|---|---|---|---|
| constant | cAltitude | elevation above sea level | DOUBLE | m | - | - | 0.0 |
| constant | cAngstromRegressionConstant | Angstrom equation regression constant | DOUBLE | 1 | - | - | 0.25 |
| constant | cAngstromRegressionSlope | Angstrom equation regression slope | DOUBLE | 1 | - | - | 0.5 |
| constant | cLatitude | latitude | DOUBLE | ° | -90.0 | 90.0 | 0.0 |
| constant | cUseAngstromVariables | use measured Angstrom variables if true, else use default ones | BOOLEAN | - | - | false | |
| input | cActualVapourPressureName | Name of variable | CHAR | - | - | ActualVapourPressure | |
| input | cDateName | Name of variable | CHAR | - | - | Date | |
| input | cMaxTempName | Name of variable | CHAR | - | - | AirTemperatureMax | |
| input | cMinTempName | Name of variable | CHAR | - | - | AirTemperatureMin | |
| input | cSolarRadiationName | Name of variable | CHAR | - | - | SolarRadiation | |
| input | cSunHoursName | Name of variable | CHAR | - | - | SunshineDuration |
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen net.simplace.sim.io.FWSimIOAdapter
net.simplace.sim.io.FWSimIOAdapter.FREQUENCE -
Feldübersicht
Von Klasse geerbte Felder net.simplace.sim.io.resources.FWSimResourceTransformer
iFieldMap, iIntColumnMap, iLastInputValuesMap, iLastProjectID, iLastUniqueID, iPoolName, iSourceNameVon Klasse geerbte Felder net.simplace.sim.io.resources.FWSimInputAdapter
iJexlScript, iShouldCacheToDBVon Klasse geerbte Felder net.simplace.sim.io.FWSimIOAdapter
iArrayMode, iFieldcount, iFrequence, iHeaderVariables, iInterface, iJexlRule, iKeyMap, iName, iOrderNumber, iProcessTime, iResourceElement, iSession, iSourceKey -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungused for ClassForNameNetRadiationFromAnyTransformer(net.simplace.sim.FWSimSession aSession, Integer aOrderNumber) NetRadiationFromAnyTransformer(net.simplace.sim.FWSimSession aSession, org.jdom2.Element aResourceElement, Integer aOrderNumber) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungnet.simplace.sim.io.resources.FWSimResourceCachegetData(net.simplace.sim.util.FWSimVarMap aVarMap) standard method from outsidenet.simplace.sim.io.resources.FWSimResourceCachegetData(net.simplace.sim.util.FWSimVarMap aVarMap, net.simplace.sim.io.resources.FWSimResourceCache aResourceCache) used by test casesvoidupdateFields(net.simplace.core.FWObservable aObservable) Von Klasse geerbte Methoden net.simplace.sim.io.resources.FWSimResourceTransformer
addVariable, createFormFields, createResourceTransformer, createResourceTransformer, createResourceTransformer, createSimTransformer, fillVarMap, getCreateFormXML, getEditFormXML, getSourceResourceCache, getVariable, isUpdated, toDocXML, toXMLVon Klasse geerbte Methoden net.simplace.sim.io.resources.FWSimInputAdapter
getContentType, getInputVariables, getJexlScript, getOutputVariables, getVarMap, isTransformer, shouldCacheToDB, toHTMLTablestringVon Klasse geerbte Methoden net.simplace.sim.io.FWSimIOAdapter
addProcessTime, checkCondition, createFormFields, finalize, getFieldMap, getFrequence, getHeaderVariables, getHeaderXML, getInterface, getJexlRule, getKeyMap, getName, getOrderNumber, isArrayMode, isConditionCheck, removeVariable, setInterface, setOrderNumber, toString, writeHeaderList
-
Konstruktordetails
-
NetRadiationFromAnyTransformer
public NetRadiationFromAnyTransformer(net.simplace.sim.FWSimSession aSession, org.jdom2.Element aResourceElement, Integer aOrderNumber) - Parameter:
aSession-aResourceElement-aOrderNumber-
-
NetRadiationFromAnyTransformer
- Parameter:
aSession-aOrderNumber-
-
NetRadiationFromAnyTransformer
public NetRadiationFromAnyTransformer()used for ClassForName
-
-
Methodendetails
-
createVariables
- Angegeben von:
createVariablesin Schnittstellenet.simplace.sim.util.FWSimFieldContainer- Setzt außer Kraft:
createVariablesin Klassenet.simplace.sim.io.FWSimIOAdapter
-
getData
public net.simplace.sim.io.resources.FWSimResourceCache getData(net.simplace.sim.util.FWSimVarMap aVarMap) throws net.simplace.sim.exceptions.MissingSimResourceException standard method from outside- Angegeben von:
getDatain Klassenet.simplace.sim.io.resources.FWSimInputAdapter- Löst aus:
net.simplace.sim.exceptions.MissingSimResourceException- Siehe auch:
-
getData
public net.simplace.sim.io.resources.FWSimResourceCache getData(net.simplace.sim.util.FWSimVarMap aVarMap, net.simplace.sim.io.resources.FWSimResourceCache aResourceCache) throws net.simplace.sim.exceptions.MissingSimResourceException used by test cases- Parameter:
aVarMap- variable mapaResourceCache- Cached resources (soil data)- Gibt zurück:
- delivered new data from transformer
- Löst aus:
net.simplace.sim.exceptions.MissingSimResourceException
-
updateFields
public void updateFields(net.simplace.core.FWObservable aObservable) - Angegeben von:
updateFieldsin Klassenet.simplace.sim.io.resources.FWSimResourceTransformer
-