python package for cesm output diagnosis
Xcesm tries to provide an easy-to-use plugin for xarray to better handle CESM output in python.
Xcesm is still in developing, right now it has the following features:
More feature will be added in the future.
git clone https://github.com/Yefee/xcesm.git
cd xcesm
python setup.py install
import xarray as xr
import xcesm
ds = xr.open_dataset('/examples/data/salt.nc')
# defalut to 1x1 degree
salt_rgd = ds.SALT.utils.regrid()
print(ds.SALT.shape)
(384, 320)
print(salt_rgd.shape)
(181, 361)
salt_rgd.utils.quickmap()
I don’t have time to write documentation recently, but it will be released in this summer!