https://github.com/yefee/xcesm
python package for cesm output diagnosis
https://github.com/yefee/xcesm
cesm data-analysis regrid
Last synced: 2 months ago
JSON representation
python package for cesm output diagnosis
- Host: GitHub
- URL: https://github.com/yefee/xcesm
- Owner: Yefee
- License: apache-2.0
- Created: 2017-03-18T03:08:20.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-06-21T15:24:39.000Z (almost 7 years ago)
- Last Synced: 2024-01-31T19:42:43.094Z (over 2 years ago)
- Topics: cesm, data-analysis, regrid
- Language: Python
- Size: 6.82 MB
- Stars: 20
- Watchers: 3
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# About xcesm
Xcesm tries to provide an easy-to-use plugin for xarray to better handle CESM output in python.
# Features
Xcesm is still in developing, right now it has the following features:
* quick plot on global map (quickmap)
* regrid pop output to linear grids (regrid, nearest interpolation)
* compute global mean (gbmean, gbmeanpop)
* diagnose AMOC, PRECP, d18O(only support for iCESM), Heat transport etc.
* truncate ocean as several main basins (ocean_region)
More feature will be added in the future.
# How to install
### via git
```
git clone https://github.com/Yefee/xcesm.git
cd xcesm
python setup.py install
```
# How to use
### regrid
```
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)
```
### quick plot
```
salt_rgd.utils.quickmap()
```

# And more
I don't have time to write documentation recently, but it will be released in this summer!