Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
apps:datastudio:compareatmospherescriptdetails [2022/01/29 13:00] – freddi | apps:datastudio:compareatmospherescriptdetails [2022/01/29 13:23] (current) – freddi | ||
---|---|---|---|
Line 4: | Line 4: | ||
==== Description ==== | ==== Description ==== | ||
- | The " | + | The " |
=== General advice == | === General advice == | ||
Line 18: | Line 18: | ||
The Potential Air Temperture is saved in the atmosphere output folder. Hence, we need to set the Datafile 1 to a random .EDX-file in the atmosphere output folder of our simulation. Datafile 2 keeps empty. | The Potential Air Temperture is saved in the atmosphere output folder. Hence, we need to set the Datafile 1 to a random .EDX-file in the atmosphere output folder of our simulation. Datafile 2 keeps empty. | ||
- | In addition you can also define a diagram-title which will be used in the output figure. Anyway, if you leave the Diagram Title field empty the script generates | + | In addition you can also define a diagram-title which will be used in the output figure. Anyway, if you leave the Diagram Title field empty the script generates |
Now click on the script and click "Copy to Python Console" | Now click on the script and click "Copy to Python Console" | ||
+ | |||
+ | {{: | ||
=== Model Area === | === Model Area === | ||
- | The locations we would like to compare are displayed | + | The locations we would like to compare are displayed in the following image. Every grid cell inside each cuboid will be taken into account for the corresponding location. |
To set these areas in the script, change the following lines accordingly: | To set these areas in the script, change the following lines accordingly: | ||
<code python> | <code python> | ||
Line 47: | Line 49: | ||
You can use Spaces or Leonardo to look up the x, y and z values of your area of interest. | You can use Spaces or Leonardo to look up the x, y and z values of your area of interest. | ||
- | == Location A == | + | == Location A and B == |
Location A is a parking lot behind a building row. | Location A is a parking lot behind a building row. | ||
- | |||
- | == Location B == | ||
Location B is located at the crossroad in front of buildings. | Location B is located at the crossroad in front of buildings. | ||
+ | {{: | ||
== Data index == | == Data index == | ||
Line 82: | Line 83: | ||
=== Output === | === Output === | ||
- | If all settings are done, the script is ready to get executed. The output should look like this: | + | If all settings are done, the script is ready to get executed. The second plot is shown when the first plot is closed. The output should look like this: |
+ | |||
+ | {{: | ||
+ | |||
+ | {{: | ||
If you would like to analyse pollutant-data instead, an output for e.g. NO2-concentration could look like this: | If you would like to analyse pollutant-data instead, an output for e.g. NO2-concentration could look like this: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | {{: | ||
==== Technical Note ==== | ==== Technical Note ==== | ||
Note that the execution-time of the script may be unexpected high, especially when you compare longer time periods or large areas. This is caused by limited implementation options caused by the Delphi-Python-interface. During execution, the GUI might not be reactive. | Note that the execution-time of the script may be unexpected high, especially when you compare longer time periods or large areas. This is caused by limited implementation options caused by the Delphi-Python-interface. During execution, the GUI might not be reactive. |