Spaces:
Sleeping
Sleeping
add precursor_pattern file
Browse files- app.py +2 -1
- data/precursor_patterns.json +0 -0
app.py
CHANGED
|
@@ -17,8 +17,9 @@ def get_data():
|
|
| 17 |
ds1= xr.open_dataset("data/LENS_precomputed_terms_combined.nc")
|
| 18 |
gdf_regions = gpd.read_file('data/rainfall_regions.geojson',).set_index('index')
|
| 19 |
ds1 = ds1.assign_coords(region_id = gdf_regions.index.values)
|
|
|
|
| 20 |
# ds1 = xr.concat([ds1,ds1.sum('source').assign_coords(source='all')], dim='source')
|
| 21 |
-
return ds1, gdf_regions
|
| 22 |
|
| 23 |
ds1, gdf_regions = get_data()
|
| 24 |
|
|
|
|
| 17 |
ds1= xr.open_dataset("data/LENS_precomputed_terms_combined.nc")
|
| 18 |
gdf_regions = gpd.read_file('data/rainfall_regions.geojson',).set_index('index')
|
| 19 |
ds1 = ds1.assign_coords(region_id = gdf_regions.index.values)
|
| 20 |
+
gdf_precursors = gpd.read_file('data/precursor_pattern.json')
|
| 21 |
# ds1 = xr.concat([ds1,ds1.sum('source').assign_coords(source='all')], dim='source')
|
| 22 |
+
return ds1, gdf_regions, gdf_precursors
|
| 23 |
|
| 24 |
ds1, gdf_regions = get_data()
|
| 25 |
|
data/precursor_patterns.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|