[5] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
---|
| 2 | <html> |
---|
| 3 | <head> |
---|
| 4 | <meta http-equiv="CONTENT-TYPE" |
---|
| 5 | content="text/html; charset=windows-1252"> |
---|
| 6 | <title>PALM chapter 4.5.3</title> |
---|
| 7 | <meta name="GENERATOR" content="StarOffice 7 (Win32)"> |
---|
| 8 | <meta name="AUTHOR" content="Siegfried Raasch"> |
---|
| 9 | <meta name="CREATED" content="20041026;14291096"> |
---|
| 10 | <meta name="CHANGED" content="20041117;11335481"> |
---|
| 11 | <meta name="KEYWORDS" content="parallel LES model"> |
---|
| 12 | <style> |
---|
| 13 | <!-- |
---|
| 14 | @page { size: 21cm 29.7cm } |
---|
| 15 | --> |
---|
| 16 | </style> |
---|
| 17 | </head> |
---|
| 18 | <body dir="ltr" lang="en-US"> |
---|
| 19 | <h4 style="line-height: 100%;"><font size="4">4.5.3 Plots of time |
---|
| 20 | series |
---|
| 21 | with profil</font></h4> |
---|
| 22 | <p style="line-height: 100%;">Output of time series is enabled |
---|
| 23 | by providing a value for the run parameter <a |
---|
| 24 | href="chapter_4.2.html#dt_dots">dt_dots</a>, |
---|
| 25 | which specifies the temporal interval at which time series data is |
---|
| 26 | output. Output times cannot be defined |
---|
| 27 | directly but only via the output time interval, starting from the |
---|
| 28 | beginning of the initial 3d run (t=0, but no data is output at that |
---|
| 29 | time). The time series data |
---|
| 30 | represent sums, averages or extreme values which by default refer to |
---|
| 31 | the total model domain. |
---|
| 32 | Output of time series for user-defined subdomains is possible with the |
---|
| 33 | help of the initialization parameter |
---|
| 34 | <a href="chapter_4.1.html#statistic_regions">statistic_regions</a>. |
---|
| 35 | </p> |
---|
| 36 | <p style="line-height: 100%;">Time series are output into the local |
---|
| 37 | file <a href="chapter_3.4.html#PLOTTS_DATA">PLOTTS_DATA</a>. |
---|
| 38 | This file must be linked with a permanent file via a file connection |
---|
| 39 | statement in the <b>mrun</b> configuration file (see e.g. <a |
---|
| 40 | href="chapter_3.2.html">Chapter |
---|
| 41 | 3.2</a>). At the end of the run the local file is copied to this |
---|
| 42 | file. Such a statement can look like this: </p> |
---|
| 43 | <ul> |
---|
| 44 | <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font |
---|
| 45 | style="font-size: 10pt;" size="2">PLOTTS_DATA out:loc:tr ts ~/PLOT/$fname _ts_in</font></pre> |
---|
| 46 | </ul> |
---|
| 47 | <p style="line-height: 100%;">If the respective <b>mrun</b> call is |
---|
| 48 | like<br> |
---|
| 49 | </p> |
---|
| 50 | <ul> |
---|
| 51 | <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font |
---|
| 52 | style="font-size: 10pt;" size="2">mrun -d test -r ts
</font></pre> |
---|
| 53 | </ul> |
---|
| 54 | <p style="line-height: 100%;">then the local file <tt><font |
---|
| 55 | style="font-size: 10pt;" size="2">PLOTTS_DATA</font></tt> |
---|
| 56 | is copied to the permanent file <tt><font style="font-size: 10pt;" |
---|
| 57 | size="2">~/PLOT/test/test_ts_in</font> |
---|
| 58 | </tt><font face="Thorndale, serif">.</font> However, the character |
---|
| 59 | string <font style="font-size: 10pt;" size="2"></font><tt><font |
---|
| 60 | style="font-size: 10pt;" size="2">ts</font></tt><font |
---|
| 61 | style="font-size: 10pt;" size="2"></font> |
---|
| 62 | activating the file connection staement (see third column of the |
---|
| 63 | statement) must be given in the <b>mrun</b> call as argument of the |
---|
| 64 | option -r (and/or -o)<b>. </b>If this is |
---|
| 65 | forgotten by mistake, the model outputs the data to the local file, but |
---|
| 66 | this is |
---|
| 67 | not copied to the permanent file and thus the data are not available |
---|
| 68 | for the user after the run has finished. </p> |
---|
| 69 | <p style="line-height: 100%;">The time series data file always |
---|
| 70 | contains all time series available. Which time series are |
---|
| 71 | actually plotted can be specified via the parameter <a |
---|
| 72 | href="chapter_4.2.html#data_output_ts">data_output_ts</a>.<br> |
---|
| 73 | </p> |
---|
| 74 | <p style="line-height: 100%;">The created data file can be directly |
---|
| 75 | used as input file for the plot |
---|
| 76 | routine <b>profil</b>. Beside the data file, <b>profil</b> |
---|
| 77 | needs another file, the |
---|
| 78 | so-called parameter file, which specifies the plot layout. This file is |
---|
| 79 | created by PALM under the local |
---|
| 80 | name <a href="chapter_3.4.html#PLOTTS_PAR">PLOTTS_PAR</a> |
---|
| 81 | and also needs a file connection statement, e.g.: </p> |
---|
| 82 | <ul> |
---|
| 83 | <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font |
---|
| 84 | style="font-size: 10pt;" size="2">PLOTTS_PAR out:loc:tr ts ~/PLOT/$fname _ts_par</font></pre> |
---|
| 85 | </ul> |
---|
| 86 | <p style="line-height: 100%;">If you are in the directory |
---|
| 87 | <tt><font style="font-size: 10pt;" size="2">~/PLOT/test</font>,</tt>the |
---|
| 88 | data can be plotted by entering </p> |
---|
| 89 | <ul> |
---|
| 90 | <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font |
---|
| 91 | style="font-size: 10pt;" size="2">profil -d test_ts_in -p test_ts_par</font></pre> |
---|
| 92 | </ul> |
---|
| 93 | <p style="line-height: 100%;">Which time series are actually plotted |
---|
| 94 | can be determined with the parameter <a href="chapter_4.2.html#data_output_ts">data_output_ts</a>. |
---|
| 95 | </p> |
---|
| 96 | <p style="line-height: 100%;">By default plot layout as specified in |
---|
| 97 | the parameter file is as follows: the individual time series are |
---|
| 98 | plotted |
---|
| 99 | into individual coordinate systems (panels) which are arranged one upon |
---|
| 100 | the other. Typically several time |
---|
| 101 | series are plotted |
---|
| 102 | together into one panel. The grouping is fixed PALM-internally (it can |
---|
| 103 | be changed by editing the parameter input file). The parameter <b>data_output_ts</b> |
---|
| 104 | determines which time series are actually to be plotted. If none of the |
---|
| 105 | time series |
---|
| 106 | which are assigned to a certain panel is plotted, |
---|
| 107 | then this panel is completely omitted in the plot. </p> |
---|
| 108 | <p style="line-height: 100%;">The time series are always plotted |
---|
| 109 | one page only. or identification, each plot is |
---|
| 110 | provided with a title, which contains the model version number, the |
---|
| 111 | run identifier (base file name + number of the restart run), the name |
---|
| 112 | of the host where the run was executed, the date and time of the |
---|
| 113 | beginning |
---|
| 114 | of the run as well as the averaging domain (by default: <span |
---|
| 115 | style="font-style: italic;">'total |
---|
| 116 | domain'</span>). |
---|
| 117 | The x axes of the panels have the label <i>time |
---|
| 118 | in s</i>, the y axes have no label. The |
---|
| 119 | run parameters <a href="chapter_4.2.html#cross_ts_uymin">cross_ts_uymin</a> |
---|
| 120 | and <a href="chapter_4.2.html#cross_ts_uymax">cross_ts_uymax</a> |
---|
| 121 | can be used to assign the range of values of the y axis individually |
---|
| 122 | for |
---|
| 123 | each panel. By default, the range of values is calculated |
---|
| 124 | from the minimum and maximum values of the time series. Each system |
---|
| 125 | has a legend which contains an entry for each time serias. The legend |
---|
| 126 | string is taken from file PLOTTS_DATA where the time |
---|
| 127 | series contained are noted in the comment lines at the |
---|
| 128 | beginning of the file. If a panel contains more than one time series |
---|
| 129 | then they are marked by different |
---|
| 130 | colors and types of lines. </p> |
---|
| 131 | <p style="line-height: 100%;">If a simulation needs restart runs, then |
---|
| 132 | one usually would like to have the time series of the complete |
---|
| 133 | simulation in one plot. Using the file connection statements shown |
---|
| 134 | above, a new cycle of time series data file and of the parameter file |
---|
| 135 | is created for each run and thus the time series could only be plotted |
---|
| 136 | in pieces. If one wants to have the complete time series in one |
---|
| 137 | plot, the configuration file must be changed such that for |
---|
| 138 | restart runs the time series data are appended to already existing |
---|
| 139 | data (thus all data are output into one file). Then the configuration |
---|
| 140 | file has two entries for PLOTTS_DATA: |
---|
| 141 | </p> |
---|
| 142 | <ul> |
---|
| 143 | <pre style="line-height: 100%;"><font style="font-size: 10pt;" |
---|
| 144 | size="2">PLOTTS_DATA out:loc:tr ts# ~/PLOT/$fname _ts_in</font><br><font |
---|
| 145 | style="font-size: 10pt;" size="2">PLOTTS_DATA out:loc:tra tsf ~/PLOT/$fname _ts_in.</font></pre> |
---|
| 146 | </ul> |
---|
| 147 | <p style="line-height: 100%;">The first run of the job chain is now </p> |
---|
| 148 | <ul> |
---|
| 149 | <pre style="margin-bottom: 0.5cm; line-height: 100%;"><font |
---|
| 150 | style="font-size: 10pt;" size="2">mrun -d test -r ts#
</font></pre> |
---|
| 151 | </ul> |
---|
| 152 | <p style="line-height: 100%;">For the restart runs, the "#" in the <span |
---|
| 153 | style="font-weight: bold;">mrun</span> |
---|
| 154 | call is automatically replaced by an "f". At the end of the job chain |
---|
| 155 | there will only be one data file containing the complete time series |
---|
| 156 | data. The file connection staement for the parameter file PLOTTS_PAR |
---|
| 157 | has not changed, thus a new cycle of the respective permanent file is |
---|
| 158 | created for each run. The highest |
---|
| 159 | cycle of this file can be used as parameter file in order to plot the |
---|
| 160 | complete time series. </p> |
---|
| 161 | <p style="line-height: 100%;">The default layout of the plots of time |
---|
| 162 | series described can be changed by editing the |
---|
| 163 | parameter file. For a detailed description of the <span |
---|
| 164 | style="font-weight: bold;">profil</span> parameters see the |
---|
| 165 | <a |
---|
| 166 | href="http://www.muk.uni-hannover.de/institut/software/profil_beschreibung.html">profil</a> |
---|
| 167 | manual (only in German). <br> |
---|
| 168 | </p> |
---|
| 169 | <hr> |
---|
| 170 | <p style="line-height: 100%;"><br> |
---|
| 171 | <font color="#000080"><font color="#000080"><a href="chapter_4.5.2.html"><font |
---|
| 172 | color="#000080"><img src="left.gif" name="Grafik1" align="bottom" |
---|
| 173 | border="2" height="32" width="32"></font></a><a href="index.html"><font |
---|
| 174 | color="#000080"><img src="up.gif" name="Grafik2" align="bottom" |
---|
| 175 | border="2" height="32" width="32"></font></a><a |
---|
| 176 | href="chapter_4.5.4.html"><font color="#000080"><img src="right.gif" |
---|
| 177 | name="Grafik3" align="bottom" border="2" height="32" width="32"></font></a></font></font></p> |
---|
| 178 | <p style="line-height: 100%;"> <span style="font-style: italic;">Last |
---|
| 179 | change:</span> 19/04/05 (SR)<br> |
---|
| 180 | </p> |
---|
| 181 | </body> |
---|
| 182 | </html> |
---|