File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed
data-conversion-scripts/niger Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change
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' )
Original file line number Diff line number Diff line change @@ -1499,7 +1499,7 @@ countries:
1499
1499
colormap : precip
1500
1500
lower_is_worse : yes
1501
1501
end-of-season :
1502
- label : End of season
1502
+ label : End of season from CHIRPS
1503
1503
description : |
1504
1504
First dekad with less than 10 mm of rainfall that was followed by two consecutive
1505
1505
dekads with a combined total of rainfall less than 10 mm
@@ -1512,6 +1512,20 @@ countries:
1512
1512
time : time
1513
1513
colormap : precip
1514
1514
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
1515
1529
forecasts :
1516
1530
pnep :
1517
1531
label : JAS forecast prob non-exc
You can’t perform that action at this time.
0 commit comments