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-04-30 00:00:05 2020   4  30    0   0  5.0004    283.0082      0.00641
## 2 2020-04-30 00:00:10 2020   4  30    0   0 10.0008    283.0640      0.00642
## 3 2020-04-30 00:00:15 2020   4  30    0   0 15.0012    283.1122      0.00642
## 4 2020-04-30 00:00:20 2020   4  30    0   0 20.0016    283.1553      0.00642
## 5 2020-04-30 00:00:24 2020   4  30    0   0 24.9984    283.1939      0.00642
## 6 2020-04-30 00:00:29 2020   4  30    0   0 29.9988    283.2296      0.00642
##     U_WIND  V_WIND Wind.Speed Wind.Direction Station
## 1 -7.03981 1.39938   7.177548       101.2428     JFK
## 2 -6.83480 1.36115   6.969019       101.2631     JFK
## 3 -6.67016 1.32119   6.799748       101.2038     JFK
## 4 -6.51746 1.28424   6.642782       101.1471     JFK
## 5 -6.36851 1.24541   6.489142       101.0650     JFK
## 6 -6.22401 1.20465   6.339517       100.9541     JFK
##             Date.Time year mon day hour min     sec Temperature Mixing.Ratio
## 1 2020-04-29 00:00:05 2020   4  29    0   0  5.0004    282.9729      0.00630
## 2 2020-04-29 00:00:10 2020   4  29    0   0 10.0008    283.0519      0.00630
## 3 2020-04-29 00:00:15 2020   4  29    0   0 15.0012    283.1215      0.00631
## 4 2020-04-29 00:00:20 2020   4  29    0   0 20.0016    283.1846      0.00631
## 5 2020-04-29 00:00:24 2020   4  29    0   0 24.9984    283.2430      0.00631
## 6 2020-04-29 00:00:29 2020   4  29    0   0 29.9988    283.2976      0.00631
##     U_WIND  V_WIND Wind.Speed Wind.Direction Station
## 1 -1.21458 3.88410   4.069575       162.6352     JFK
## 2 -1.22315 3.73477   3.929962       161.8662     JFK
## 3 -1.22919 3.61473   3.818007       161.2194     JFK
## 4 -1.23016 3.50521   3.714807       160.6614     JFK
## 5 -1.22645 3.40705   3.621073       160.2024     JFK
## 6 -1.21936 3.31924   3.536127       159.8286     JFK
##             Date.Time year mon day hour min     sec Temperature Mixing.Ratio
## 1 2020-04-28 00:00:05 2020   4  28    0   0  5.0004    280.8803      0.00496
## 2 2020-04-28 00:00:10 2020   4  28    0   0 10.0008    280.9404      0.00496
## 3 2020-04-28 00:00:15 2020   4  28    0   0 15.0012    280.9956      0.00496
## 4 2020-04-28 00:00:20 2020   4  28    0   0 20.0016    281.0460      0.00497
## 5 2020-04-28 00:00:24 2020   4  28    0   0 24.9984    281.0927      0.00497
## 6 2020-04-28 00:00:29 2020   4  28    0   0 29.9988    281.1365      0.00497
##    U_WIND   V_WIND Wind.Speed Wind.Direction Station
## 1 1.18013 -5.73527   5.855427       348.3727     JFK
## 2 1.21656 -5.44030   5.574664       347.3949     JFK
## 3 1.23473 -5.20785   5.352220       346.6620     JFK
## 4 1.24913 -5.02442   5.177366       346.0386     JFK
## 5 1.25819 -4.87098   5.030854       345.5169     JFK
## 6 1.25781 -4.74852   4.912283       345.1639     JFK
##   Station           Date.Time Temperature Relative.Humidity Wind.Direction
## 1     JFK 2020-04-29 00:51:00    282.0389             89.29            130
## 2     JFK 2020-04-29 01:51:00    281.4278             93.06             90
## 3     JFK 2020-04-29 02:51:00    281.4278             96.66              0
## 4     JFK 2020-04-29 03:51:00    280.9278             93.03             70
## 5     JFK 2020-04-29 04:51:00    279.2611            100.00              0
## 6     JFK 2020-04-29 05:51:00    280.9278             96.28             30
##   Wind.Speed year mon day hour min sec
## 1   2.057613 2020   4  29    0  51   0
## 2   3.086420 2020   4  29    1  51   0
## 3   0.000000 2020   4  29    2  51   0
## 4   2.572016 2020   4  29    3  51   0
## 5   0.000000 2020   4  29    4  51   0
## 6   1.543210 2020   4  29    5  51   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 0.554 0.891 0.803
2 WRF D-1 0.643 1.055 0.802
3 WRF D-2 0.857 1.208 0.982
JFK - WRF 10-m Wind Speed (m/s) Performance
Forecast.Init BIAS RMSE MAE
1 WRF D-0 -2.603 2.835 2.607
2 WRF D-1 -3.168 3.379 3.168
3 WRF D-2 -3.031 3.249 3.031
JFK - WRF 10-m Wind Direction (degN) Performance
Forecast.Init RMSE MAE
1 WRF D-0 15.433 14.038
2 WRF D-1 12.540 11.288
3 WRF D-2 20.186 19.217

Forecast Hour Evaluation for LGA

LGA - WRF 2-m Temperature (K) Performance
Forecast.Init BIAS RMSE MAE
1 WRF D-0 0.481 1.307 1.038
2 WRF D-1 0.542 1.130 0.937
3 WRF D-2 0.597 1.437 1.133
LGA - WRF 10-m Wind Speed (m/s) Performance
Forecast.Init BIAS RMSE MAE
1 WRF D-0 -4.304 4.711 4.307
2 WRF D-1 -4.589 4.934 4.593
3 WRF D-2 -4.177 4.652 4.180
LGA - WRF 10-m Wind Direction (degN) Performance
Forecast.Init RMSE MAE
1 WRF D-0 40.755 27.826
2 WRF D-1 38.594 28.089
3 WRF D-2 44.049 34.135

Forecast Hour Evaluation for NYC

NYC - WRF 2-m Temperature (K) Performance
Forecast.Init BIAS RMSE MAE
1 WRF D-0 1.005 1.336 1.201
2 WRF D-1 0.976 1.322 1.142
3 WRF D-2 1.109 1.530 1.363
NYC - WRF 10-m Wind Speed (m/s) Performance
Forecast.Init BIAS RMSE MAE
1 WRF D-0 -2.529 2.825 2.529
2 WRF D-1 -2.479 2.754 2.479
3 WRF D-2 -2.462 2.749 2.462
NYC - WRF 10-m Wind Direction (degN) Performance
Forecast.Init RMSE MAE
1 WRF D-0 33.133 24.991
2 WRF D-1 33.981 28.232
3 WRF D-2 35.051 29.227

uWRF and ASOS Time-Series Visualization

Temperature

## Warning: Removed 7 rows containing missing values (geom_point).

Wind Speed

Wind Direction