Intland's free requirements, development and test management hosting.
This server hosts 90.500 users on the cloud!
2.2 M1#8482/v1
more
Tags:  not added yet

2.2 M1[MST-8482]

Tracker: Milestones Priority: NormalNormal Submitted by: odavid Oct 03, 2008 09:43
Description

Features

OMS now checks if a parameter has not been set from an external parameter file (*.csp). This might be OK if the default parameter value should be used. If the Parameter is required to be set from a csp file, this information might help troubleshooting. To allow OMS to check parameter settings, a Model attribute has to be checked as a parameter using its property dialog.

Example output, where 'params.csp' does not contain the setting of the model param 'soilMoistStorCap'. The default value of '35.0' will be used.

Executing : java -Druntime.props="C:\od\oms\oms2.1\nb5\thornthwaite\nb ...

  Loading File :C:\od\oms\oms2.1\nb5\thornthwaite\data\params.csp
  Output folder :C:\od\oms\oms2.1\nb5\thornthwaite\output\ThornthwaiteExampleSim\0016

 Unset Parameter :
  soilMoistStorCap:35.0
  
Starting ...

Done.

Luca

Additional Luca Properties to be put into a CSP file and add this file to the set of parameter files:

e.g. efcarson_luca.csp:

@Properties, Parameter
 created by, od

@Properties, Luca
 created by, od

# Obs data set (static) 
@Property, obs_file,    "${prj.dir}/data/efcarson.csv"
@Property, obs_table,   "efcarson"
@Property, obs_column,  "runoff"

# simulated data set (dynamic)
@Property, sim_file,    "${sim.output}/Luca/efc.csv"
@Property, sim_table,   "Output"
@Property, sim_column,  "basin_cfs"

- Luca Simulation gets saved before entering the last step.

Variable outputs

We used to write:

 @Property, outAttrFile, "animas_xyz_files.csp"
  mpath, /@outAttrFile
 @Property, attrSet,     "set1"
  mpath, /@attrSet

 @Properties, "set1"

 @Property, date
 @Property, basin_tmin
 @Property, basin_tmax
 @Property, basin_ppt
 @Property, basin_pweqv
 @Property, basin_cfs
 @Property, basin_gwflow
 @Property, basin_ssflow
 @Property, basin_sroff
 @Property, basin_stflow
 @Property, runoff, 0

This can be changed the the code so that there is a simpler listing of the variables to print out:

 
 @Property, attrSet,    "date; basin_tmin; basin_tmax; basin_ppt; basin_pweqv; 
                         basin_cfs; basin_gwflow; basin_ssflow; basin_sroff;
                         basin_stflow;runoff(0)"
  mpath, /@attrSet

Notes:

  • no 'outAttrFile' needed anymore, it is gone in NewOutput.java and the csp file.
  • only attrSet is needed.
  • No separate '@Properties' for output
  • all variables to output listed in order, separated by ';' (no comma!!!)
  • array elements can be multidimensional: 'abc(1,2)'
  • the whole thing should be put in quotes if there are
  • any multidimesional arrays (because of this file being CSV).

See PRMS repository for NewOutput.java

Known issues

  • The sim/obs variable selection in the Luca Step 10 does not work yet.
Details
Comments & Attachments (0)
Associations (0)
Children (0)
References (0)
SCM Commits (0)
All (0)

with status and due   Customize
Nothing found to display.