Introduction

In this document I will explore how to create the first part of the evaluation system I proposed. The working title of this is the “Forecast-Hour Evaluation.” The idea here is that we are looking at the performance of the model by looking at how it performed with different start times (using the most recent 00-hr forecast as input).

## Warning in rgl.init(initValue, onlyNULL): RGL: unable to open X11 display
## Warning: 'rgl.init' failed, running with 'rgl.useNULL = TRUE'.

Read Model and Observation Data

Read WRF Data

For this evaluation system we need to look at three different output folders. Here we use the folders named, forecast_day_minus_0, forecast_day_minus_1, forecast_day_minus_2. The contents of each of these folders will be similar: wrfout files for 86 forecast hours and time-series data for different locations of interest. Here we will first read the forecast data.

Read the OBS Data

Now we will read the observation data from the ASOS stations. The script that downloads the data is in ./obs_station_day_minus_0/dl_ny_asos.py. The lines for the dates to download need to be changed before running it. Once the files are download, the lines below reads the data and adds column names.

Unit Conversion

Model and observation data do not share the same units for the same variable. For temperature, WRF is in Kelvin and ASOS is in degreesF. For winds, WRF is in m/s and ASOS is in knots. The formulas used to convert the numbers to a common system is shown here. For temperature I will use Kelvin, and m/s for wind speeds.

Combined Data Frames

Now we have one data frame for all the observations, and three (3) data frames of the WRF data (one data frame per forecast init time). The lines below provide a visual of the data frames.

##             Date.Time year mon day hour min     sec Temperature Mixing.Ratio
## 1 2020-05-14 00:00:05 2020   5  14    0   0  5.0004    283.5710      0.00663
## 2 2020-05-14 00:00:10 2020   5  14    0   0 10.0008    283.7147      0.00663
## 3 2020-05-14 00:00:15 2020   5  14    0   0 15.0012    283.8395      0.00663
## 4 2020-05-14 00:00:20 2020   5  14    0   0 20.0016    283.9507      0.00663
## 5 2020-05-14 00:00:24 2020   5  14    0   0 24.9984    284.0515      0.00664
## 6 2020-05-14 00:00:29 2020   5  14    0   0 29.9988    284.1440      0.00664
##     U_WIND  V_WIND Wind.Speed Wind.Direction Station
## 1 -0.21702 4.49034   4.495581       177.2330     JFK
## 2 -0.25730 4.26258   4.270339       176.5457     JFK
## 3 -0.28874 4.09738   4.107541       175.9691     JFK
## 4 -0.31095 3.95381   3.966019       175.5032     JFK
## 5 -0.32786 3.83933   3.853303       175.1191     JFK
## 6 -0.33654 3.73945   3.754563       174.8574     JFK
##             Date.Time year mon day hour min     sec Temperature Mixing.Ratio
## 1 2020-05-13 00:00:05 2020   5  13    0   0  5.0004    285.7411      0.00392
## 2 2020-05-13 00:00:10 2020   5  13    0   0 10.0008    285.8155      0.00392
## 3 2020-05-13 00:00:15 2020   5  13    0   0 15.0012    285.8827      0.00392
## 4 2020-05-13 00:00:20 2020   5  13    0   0 20.0016    285.9429      0.00392
## 5 2020-05-13 00:00:24 2020   5  13    0   0 24.9984    285.9981      0.00392
## 6 2020-05-13 00:00:29 2020   5  13    0   0 29.9988    286.0501      0.00393
##    U_WIND   V_WIND Wind.Speed Wind.Direction Station
## 1 2.82657 -2.56698   3.818231       312.2445     JFK
## 2 2.78120 -2.50359   3.742063       311.9930     JFK
## 3 2.74043 -2.43561   3.666354       311.6297     JFK
## 4 2.70147 -2.38634   3.604519       311.4557     JFK
## 5 2.65996 -2.34432   3.545592       311.3909     JFK
## 6 2.61993 -2.29520   3.483099       311.2201     JFK
##             Date.Time year mon day hour min     sec Temperature Mixing.Ratio
## 1 2020-05-12 00:00:05 2020   5  12    0   0  5.0004    284.4861      0.00540
## 2 2020-05-12 00:00:10 2020   5  12    0   0 10.0008    284.6521      0.00540
## 3 2020-05-12 00:00:15 2020   5  12    0   0 15.0012    284.7949      0.00540
## 4 2020-05-12 00:00:20 2020   5  12    0   0 20.0016    284.9193      0.00540
## 5 2020-05-12 00:00:24 2020   5  12    0   0 24.9984    285.0302      0.00541
## 6 2020-05-12 00:00:29 2020   5  12    0   0 29.9988    285.1306      0.00541
##    U_WIND   V_WIND Wind.Speed Wind.Direction Station
## 1 6.50246 -1.04592   6.586041       279.1378     JFK
## 2 6.30699 -1.01466   6.388087       279.1394     JFK
## 3 6.14529 -0.98820   6.224237       279.1353     JFK
## 4 6.00212 -0.96661   6.079456       279.1486     JFK
## 5 5.86643 -0.94247   5.941654       279.1269     JFK
## 6 5.74277 -0.91471   5.815161       279.0501     JFK
##   Station           Date.Time Temperature Relative.Humidity Wind.Direction
## 1     JFK 2020-05-13 00:00:00         NaN               NaN            320
## 2     JFK 2020-05-13 00:05:00         NaN               NaN            330
## 3     JFK 2020-05-13 00:10:00         NaN               NaN            320
## 4     JFK 2020-05-13 00:15:00         NaN               NaN            320
## 5     JFK 2020-05-13 00:20:00         NaN               NaN            320
## 6     JFK 2020-05-13 00:25:00         NaN               NaN            310
##   Wind.Speed year mon day hour min sec
## 1   7.201646 2020   5  13    0   0   0
## 2   6.687243 2020   5  13    0   5   0
## 3   5.658436 2020   5  13    0  10   0
## 4   5.658436 2020   5  13    0  15   0
## 5   5.658436 2020   5  13    0  20   0
## 6   5.658436 2020   5  13    0  25   0

Locations for Plots

Match Times for Model and Observations

Select Day of Interest

Time-matching is performed using a routine that can be found in Analysis01-Time_Matching_Problem.Rmd. The time matching will be done per variable. For the Forecast-Hour Evaluation product, we will focus on the temperature, wind speed and wind direction variables. Also, now that we have read all the TS data and ASOS data, we need to extract the day of interest, or doi for the time-series.

Note that for this product the “day of interest” will always be the UTC date of the day before.

We now have filtered data frames for the observations and model data for the day of interest.

Next, we will select only the temperature data for comparing the model and observations. This needs to be done on a per station basis. Note that we use the function drop_na() to drop rows which contain NaN or NA data. Since each variable is measured at different intervals, not all variables will have data available at every time step in the ASOS data. The functions may be too sensitive to missing data and thus we take care to remvove it here from the observations, after we have isolated a particular variable.

Temperature Time-Matching

Location: JFK

Location: LGA

Location: NYC

Wind Speed Time-Matching

Location: JFK

Location: LGA

Location: NYC

Wind Direction Time-Matching

Location: JFK

Location: LGA

Location: NYC

Forecast Hour Evaluation for JFK

For the temperature data I will use Bias, RMSE and MAE for the comparison statistics

JFK - WRF 2-m Temperature (K) Performance
Forecast.Init BIAS RMSE MAE
1 WRF D-0 1.171 1.847 1.452
2 WRF D-1 0.002 1.327 1.116
3 WRF D-2 -0.035 2.261 2.011
JFK - WRF 10-m Wind Speed (m/s) Performance
Forecast.Init BIAS RMSE MAE
1 WRF D-0 -0.778 1.457 1.154
2 WRF D-1 -0.563 1.771 1.411
3 WRF D-2 -0.278 1.782 1.323
JFK - WRF 10-m Wind Direction (degN) Performance
Forecast.Init RMSE MAE
1 WRF D-0 52.427 32.619
2 WRF D-1 66.379 48.641
3 WRF D-2 79.558 62.772

Forecast Hour Evaluation for LGA

LGA - WRF 2-m Temperature (K) Performance
Forecast.Init BIAS RMSE MAE
1 WRF D-0 0.041 1.017 0.823
2 WRF D-1 -0.758 1.176 1.007
3 WRF D-2 -1.486 2.147 1.577
LGA - WRF 10-m Wind Speed (m/s) Performance
Forecast.Init BIAS RMSE MAE
1 WRF D-0 -1.583 2.061 1.730
2 WRF D-1 -1.218 1.889 1.616
3 WRF D-2 -1.177 1.822 1.529
LGA - WRF 10-m Wind Direction (degN) Performance
Forecast.Init RMSE MAE
1 WRF D-0 56.875 36.699
2 WRF D-1 79.066 56.197
3 WRF D-2 85.185 60.313

Forecast Hour Evaluation for NYC

NYC - WRF 2-m Temperature (K) Performance
Forecast.Init BIAS RMSE MAE
1 WRF D-0 0.877 1.549 1.434
2 WRF D-1 -0.037 0.791 0.658
3 WRF D-2 -0.868 1.484 1.139
NYC - WRF 10-m Wind Speed (m/s) Performance
Forecast.Init BIAS RMSE MAE
1 WRF D-0 -0.554 1.102 0.921
2 WRF D-1 -0.501 1.070 0.897
3 WRF D-2 -0.470 1.040 0.878
NYC - WRF 10-m Wind Direction (degN) Performance
Forecast.Init RMSE MAE
1 WRF D-0 49.938 39.738
2 WRF D-1 88.018 67.906
3 WRF D-2 75.908 53.342

uWRF and ASOS Time-Series Visualization

Temperature

## Warning: Removed 51 rows containing missing values (geom_point).
## Warning: Removed 10 rows containing missing values (geom_path).

Wind Speed

Wind Direction