CORDEX-WRF-community / euro-cordex-cmip6

Configuration files for WRF in EURO-CORDEX-CMIP6
2 stars 0 forks source link

TAVGSFC #5

Closed jesusff closed 9 months ago

jesusff commented 9 months ago

We are planning to use the average near surface temperature to define the skin temperature for lakes. This is achieved by means of the avg_tsfc.exe tool in WPS, which computes a TAVGSFC variable consisting of the average near-surface temperature for the time period being processed in namelist.wps. This avoids setting e.g. lake temperatures in the Alps to the closest SST, which would be in the Mediterranean Sea with a much warmer temperature.

This approach however is dependent on the time period used between restarts and processed in one go in WPS. Also, this average temperature is aware of temperatures for the whole restart period, before they actually would affect the lake temperature.

To avoid this and to have flexibility in the amount of days back in time affecting surface lake temperatures, this script (tavgsfc.py) processes met_em files to add the TAVGSFC as a running average of the last 15 days. The amount of days is tunable and we can discuss its value. This will likely depend on the season and latitude, but I think it is an improvement upon the current approach of constant lake temperature for long periods.

Note that, while the 15-day buffer is filling, TAVGSFC is filled with increasing time window averages. This should not be a problem since these initial days will be part of the spin up anyway. Note also that, unlike avg_tsfc.exe, this script is applied to met_em files produced by metgrid directly, not to the intermediate files produced by ungrib.

jesusff commented 9 months ago

Merge into main after agreement to use it during meeting on Dec 1st, 2023.