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-27 00:00:05 2020   4  27    0   0  5.0004    281.0728      0.00627
## 2 2020-04-27 00:00:10 2020   4  27    0   0 10.0008    281.1285      0.00627
## 3 2020-04-27 00:00:15 2020   4  27    0   0 15.0012    281.1789      0.00627
## 4 2020-04-27 00:00:20 2020   4  27    0   0 20.0016    281.2253      0.00627
## 5 2020-04-27 00:00:24 2020   4  27    0   0 24.9984    281.2687      0.00628
## 6 2020-04-27 00:00:29 2020   4  27    0   0 29.9988    281.3108      0.00628
##     U_WIND   V_WIND Wind.Speed Wind.Direction Station
## 1 -2.48566 -5.98303   6.478823       22.56052     JFK
## 2 -2.32374 -5.53625   6.004151       22.76934     JFK
## 3 -2.20656 -5.21192   5.659772       22.94624     JFK
## 4 -2.10938 -4.95568   5.385931       23.05698     JFK
## 5 -2.02726 -4.74365   5.158682       23.14007     JFK
## 6 -1.96089 -4.57175   4.974534       23.21520     JFK
##             Date.Time year mon day hour min     sec Temperature Mixing.Ratio
## 1 2020-04-26 00:00:05 2020   4  26    0   0  5.0004    283.1914      0.00451
## 2 2020-04-26 00:00:10 2020   4  26    0   0 10.0008    283.2469      0.00451
## 3 2020-04-26 00:00:15 2020   4  26    0   0 15.0012    283.2955      0.00451
## 4 2020-04-26 00:00:20 2020   4  26    0   0 20.0016    283.3401      0.00451
## 5 2020-04-26 00:00:24 2020   4  26    0   0 24.9984    283.3811      0.00451
## 6 2020-04-26 00:00:29 2020   4  26    0   0 29.9988    283.4196      0.00451
##     U_WIND  V_WIND Wind.Speed Wind.Direction Station
## 1 -1.39266 3.33559   3.614646       157.3387     JFK
## 2 -1.39505 3.24363   3.530906       156.7280     JFK
## 3 -1.40042 3.16880   3.464458       156.1574     JFK
## 4 -1.39328 3.10170   3.400261       155.8104     JFK
## 5 -1.38812 3.04252   3.344220       155.4756     JFK
## 6 -1.38458 2.99194   3.296781       155.1667     JFK
##             Date.Time year mon day hour min     sec Temperature Mixing.Ratio
## 1 2020-04-25 00:00:05 2020   4  25    0   0  5.0004    282.3018      0.00654
## 2 2020-04-25 00:00:10 2020   4  25    0   0 10.0008    282.3226      0.00654
## 3 2020-04-25 00:00:15 2020   4  25    0   0 15.0012    282.3431      0.00655
## 4 2020-04-25 00:00:20 2020   4  25    0   0 20.0016    282.3626      0.00655
## 5 2020-04-25 00:00:24 2020   4  25    0   0 24.9984    282.3819      0.00655
## 6 2020-04-25 00:00:29 2020   4  25    0   0 29.9988    282.4017      0.00655
##     U_WIND   V_WIND Wind.Speed Wind.Direction Station
## 1 -0.64592 -2.57242   2.652274       14.09524     JFK
## 2 -0.62324 -2.49231   2.569054       14.03976     JFK
## 3 -0.59594 -2.42148   2.493734       13.82605     JFK
## 4 -0.57400 -2.36096   2.429734       13.66472     JFK
## 5 -0.55576 -2.30793   2.373902       13.53931     JFK
## 6 -0.54057 -2.25693   2.320765       13.46949     JFK
##   Station           Date.Time Temperature Relative.Humidity Wind.Direction
## 1     JFK 2020-04-26 00:00:00         NaN               NaN            140
## 2     JFK 2020-04-26 00:05:00         NaN               NaN            130
## 3     JFK 2020-04-26 00:10:00         NaN               NaN            140
## 4     JFK 2020-04-26 00:15:00         NaN               NaN            140
## 5     JFK 2020-04-26 00:20:00         NaN               NaN            150
## 6     JFK 2020-04-26 00:25:00         NaN               NaN            140
##   Wind.Speed year mon day hour min sec
## 1   3.600823 2020   4  26    0   0   0
## 2   2.572016 2020   4  26    0   5   0
## 3   2.572016 2020   4  26    0  10   0
## 4   3.600823 2020   4  26    0  15   0
## 5   4.115226 2020   4  26    0  20   0
## 6   4.115226 2020   4  26    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 0.877 1.386 1.096
2 WRF D-1 -0.048 1.277 1.128
3 WRF D-2 0.396 1.229 0.858
JFK - WRF 10-m Wind Speed (m/s) Performance
Forecast.Init BIAS RMSE MAE
1 WRF D-0 -3.295 3.460 3.295
2 WRF D-1 -3.379 3.604 3.379
3 WRF D-2 -2.702 3.024 2.706
JFK - WRF 10-m Wind Direction (degN) Performance
Forecast.Init RMSE MAE
1 WRF D-0 17.091 13.573
2 WRF D-1 31.113 27.549
3 WRF D-2 19.757 15.551

Forecast Hour Evaluation for LGA

LGA - WRF 2-m Temperature (K) Performance
Forecast.Init BIAS RMSE MAE
1 WRF D-0 0.652 1.308 0.982
2 WRF D-1 -0.360 0.920 0.746
3 WRF D-2 -0.018 0.825 0.641
LGA - WRF 10-m Wind Speed (m/s) Performance
Forecast.Init BIAS RMSE MAE
1 WRF D-0 -3.282 3.462 3.282
2 WRF D-1 -3.488 3.748 3.488
3 WRF D-2 -3.198 3.402 3.198
LGA - WRF 10-m Wind Direction (degN) Performance
Forecast.Init RMSE MAE
1 WRF D-0 16.324 11.813
2 WRF D-1 32.295 27.697
3 WRF D-2 19.395 14.941

Forecast Hour Evaluation for NYC

NYC - WRF 2-m Temperature (K) Performance
Forecast.Init BIAS RMSE MAE
1 WRF D-0 1.418 1.668 1.455
2 WRF D-1 0.525 1.346 1.190
3 WRF D-2 1.045 1.347 1.219
NYC - WRF 10-m Wind Speed (m/s) Performance
Forecast.Init BIAS RMSE MAE
1 WRF D-0 -2.748 2.986 2.792
2 WRF D-1 -2.665 2.894 2.705
3 WRF D-2 -2.634 2.891 2.681
NYC - WRF 10-m Wind Direction (degN) Performance
Forecast.Init RMSE MAE
1 WRF D-0 32.458 26.344
2 WRF D-1 35.105 29.678
3 WRF D-2 27.535 21.849

uWRF and ASOS Time-Series Visualization

Temperature

Wind Speed

Wind Direction