Skip to content

Commit 26e9f10

Browse files
committed
Niger end of season from ENACTS
1 parent 0549c92 commit 26e9f10

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import cftime
2+
import xarray as xr
3+
4+
ds = xr.open_dataset('enacts_cos.nc')
5+
ds = ds.rename(Time='time')
6+
ds['time'] = [cftime.Datetime360Day(x, 8, 16) for x in ds['time']]
7+
ds = ds.sel(time=ds.time > cftime.Datetime360Day(1991, 1, 1))
8+
print(ds)
9+
ds.to_zarr('niger-end-of-season-enacts.zarr')

fbfmaproom/fbfmaproom-sample.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1499,7 +1499,7 @@ countries:
14991499
colormap: precip
15001500
lower_is_worse: yes
15011501
end-of-season:
1502-
label: End of season
1502+
label: End of season from CHIRPS
15031503
description: |
15041504
First dekad with less than 10 mm of rainfall that was followed by two consecutive
15051505
dekads with a combined total of rainfall less than 10 mm
@@ -1512,6 +1512,20 @@ countries:
15121512
time: time
15131513
colormap: precip
15141514
lower_is_worse: yes
1515+
end-of-season-enacts:
1516+
label: End of season from ENACTS
1517+
description: |
1518+
First dekad with less than 10 mm of rainfall that was followed by two consecutive
1519+
dekads with a combined total of rainfall less than 10 mm
1520+
units: dekad
1521+
path: niger/end-of-season-enacts.zarr
1522+
var_names:
1523+
value: cos
1524+
lat: latitude
1525+
lon: longitude
1526+
time: time
1527+
colormap: precip
1528+
lower_is_worse: yes
15151529
forecasts:
15161530
pnep:
15171531
label: JAS forecast prob non-exc

0 commit comments

Comments
 (0)