Closed williamhobbs closed 1 year ago
Never mind. A colleague reviewed my code and found a typo in latitide = 33.75
, so I was accidentally running with an earlier value I used for latitude that was still in memory (and very far from Atlanta...).
The output after fixing my mistake looks correct:
I was looking at air temperature forecasts from GFS for Dec 23-24 and noticed that the forecasted values were surprisingly high. Opening the NetCDF file in NOAA's WCT, I'm seeing different values that are much lower (and more believable). I'm wondering if SFA is processing air temperature incorrectly.
As an example, I'm using the GFS forecast initialized at 2022-12-22 06:00Z and a valid time of 2022-12-24 00:00Z, for a location near Atlanta, GA (33.75, -84.30). I used the workshop reference_forecasts.ipynb as a starting point. Here's the NetCDF file zipped: sfa_test.zip.
Opening the .nc file in NOAA WCT, I get -8 deg C (265.1 K). But running through sfa, I get about -2 C. For reference, the actual temperature ended up being about -11.5 C (https://www.wunderground.com/history/daily/us/ga/atlanta/KATL/date/2022-12-24).
I tried a few other locations and got similar results. Maybe I'm doing something wrong, but it seems like the forecasted temperature never gets low enough, so something seems off.
Viewing the file in NOAA's WCT:![image](https://user-images.githubusercontent.com/45701090/210157216-4bc7ca2b-1617-4871-bddc-ff1c76d19890.png)
SFA results (code is included below):![image](https://user-images.githubusercontent.com/45701090/210157261-3773bd45-80e8-43ec-a213-efec6734015d.png)
[EDIT: THIS CODE CONTAINS A TYPO!!]