nakas commited on
Commit
5470d16
·
1 Parent(s): f42907d

fix: import wind-rose grid; silence xarray SerializationWarning; add scipy dependency for snow PoE heuristic

Browse files
Files changed (3) hide show
  1. app.py +1 -0
  2. nbm_client.py +6 -0
  3. requirements.txt +1 -0
app.py CHANGED
@@ -25,6 +25,7 @@ from plot_utils import (
25
  make_precip_type_fig,
26
  make_snow_level_fig,
27
  make_wind_rose_fig,
 
28
  )
29
 
30
 
 
25
  make_precip_type_fig,
26
  make_snow_level_fig,
27
  make_wind_rose_fig,
28
+ make_wind_rose_grid,
29
  )
30
 
31
 
nbm_client.py CHANGED
@@ -8,6 +8,12 @@ import numpy as np
8
  import pandas as pd
9
  import requests
10
  import xarray as xr
 
 
 
 
 
 
11
 
12
 
13
  BASE_ROOT = "https://nomads.ncep.noaa.gov/dods/blend/"
 
8
  import pandas as pd
9
  import requests
10
  import xarray as xr
11
+ import warnings
12
+ try:
13
+ from xarray.coding.times import SerializationWarning as _XrSerializationWarning
14
+ warnings.filterwarnings("ignore", category=_XrSerializationWarning)
15
+ except Exception:
16
+ pass
17
 
18
 
19
  BASE_ROOT = "https://nomads.ncep.noaa.gov/dods/blend/"
requirements.txt CHANGED
@@ -6,3 +6,4 @@ cftime>=1.6.3
6
  pandas>=2.2.2
7
  numpy>=1.26.4
8
  plotly>=5.22.0
 
 
6
  pandas>=2.2.2
7
  numpy>=1.26.4
8
  plotly>=5.22.0
9
+ scipy>=1.11.4