Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
apps:datastudio:comparescenarioscriptdetails [2022/01/11 10:24] freddiapps:datastudio:comparescenarioscriptdetails [2022/01/11 10:52] freddi
Line 97: Line 97:
 Now the timespteps match again. Otherwise you would compare different timesteps. Now the timespteps match again. Otherwise you would compare different timesteps.
  
 +=== Advanced Settings ===
 +
 +There is the option to compare maximum or minimum values instead of the mean values. To do so, change lines 133 - 139 (in current script version) as follows:
 +== Mean vallues (default) ==
 +<code python>
 +#vals1 = (np.nanmin(data1, axis=1), "Min.")
 +#vals1 = (np.nanmax(data1, axis=1), "Max.")
 +vals1 = (np.nanmean(data1, axis=1), "Mean")
 +
 +#vals2 = (np.nanmin(data2, axis=1), "Min.")
 +#vals2 = (np.nanmax(data2, axis=1), "Max.")
 +vals2 = (np.nanmean(data2, axis=1), "Mean")
 +</code>
 +
 +== Maximum values ==
 +<code python>
 +#vals1 = (np.nanmin(data1, axis=1), "Min.")
 +vals1 = (np.nanmax(data1, axis=1), "Max.")
 +#vals1 = (np.nanmean(data1, axis=1), "Mean")
 +
 +#vals2 = (np.nanmin(data2, axis=1), "Min.")
 +vals2 = (np.nanmax(data2, axis=1), "Max.")
 +#vals2 = (np.nanmean(data2, axis=1), "Mean")
 +</code>
 +
 +== Minimum values == 
 +<code python>
 +vals1 = (np.nanmin(data1, axis=1), "Min.")
 +#vals1 = (np.nanmax(data1, axis=1), "Max.")
 +#vals1 = (np.nanmean(data1, axis=1), "Mean")
 +
 +vals2 = (np.nanmin(data2, axis=1), "Min.")
 +#vals2 = (np.nanmax(data2, axis=1), "Max.")
 +#vals2 = (np.nanmean(data2, axis=1), "Mean")
 +</code>
  
 === 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 output should look like this:
  
-{{:apps:datastudio:compscenoutput.png}}+{{:apps:datastudio:compscenoutput_atm.png}} 
 + 
 +If you would like to analyse pollutant-data instead, an output for e.g. NO2-concentration could look like this: 
 + 
 +{{:apps:datastudio:compscenoutput_polu.png}} 
 + 
 +==== 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.