ECMWFCode4Earth / ml_drought

Machine learning to better predict and understand drought. Moving github.com/ml-clim
https://ml-clim.github.io/drought-prediction/
90 stars 18 forks source link

Preprocessor for ESA Landcover data #74

Closed tommylees112 closed 5 years ago

tommylees112 commented 5 years ago

Preprocessing the landcover data (there is an issue with the regridding on the ouce_server)

    Process:
    -------
    * chop region of interset (ROI)
    * regrid to same spatial grid as a reference dataset (`regrid`)
    * create new dataset with these dimensions
    * assign time stamp
    * Save the output file to new folder
tommylees112 commented 5 years ago

TODO:

In [84]: d1 = d.sel(time = '1995-01-31')
In [82]: d2 = d.sel(time = '1995-12-31')

In [85]: (d1 == d2).mean()
Out[85]:
<xarray.Dataset>
Dimensions:   ()
Data variables:
    lc_class  float64 0.9986