Download Operation - PCRaster

Transcript
PCRaster Website: Report
Home Introduction Demo Downloads Documentation Support Courses Case studies Publications
Projects People Links
Department of Physical Geography Faculty of Geosciences
Utrecht University The Netherlands
Selective reports for map stacks in
dynamic models
Pcrcalc version of Feb 28 1998 or later allow to define at which timesteps a map must be written to the
permanent database (in other words your harddisk). This feature consists of the following extensions to
the modelling language:
● Defining a sequence of report moments in the timer section of the script by a symbolic name
reportName.
● Using that symbolic name in the report statement in the dynamic section: report(reportName).
● Definining a sequence of report moments in the report statement in the dynamic section:
report(reportMoments).
● Introduction of the keyword endtime as the symbolic name for the last timestep.
● Introduction of the keyword reportdefault as the symbolic name for the reports without an
explicit definition of the report moments.
● NOTE Selective reports only apply for map stacks, when writing to a timeseries file they are
ignored, a timeseries file will always contains data for all timesteps.
To explain this feature, we use the following minimal script
timer 1 1000 1;
initial
dynamic
report stack1_ = input.map;
report stack2_ = input.map;
The script simply copies the input.map to 2000 maps named stack1_0.001, stack2_0.002 up to
stack1_1.000 and stack2_0.001 up to stack2_1.000.
Now suppose we want to write to stack stack1_ only at step 1, 10, 900, 1000 and stack2_ at every fifth
step. We then define and use two report moment definitions in the timer sections and apply them to the
reports:
timer 1 1000 1;
rep1 = 1,10,900,endtime;
http://pcraster.geog.uu.nl/documentation/manual_updates/report.html (1 van 2) [3/2/2005 5:04:26 PM]