Skip to content

Commit 16e62b8

Browse files
Merge pull request #89 from jkrasting/thermocline-analysis
2 parents 3eae1f0 + a68ba56 commit 16e62b8

11 files changed

+538
-1
lines changed

ci/environment-py38esmf800.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ dependencies:
99
- intake-xarray
1010
- esmf=8.0.0
1111
- esmpy=8.0.0
12+
- gsw
1213
- matplotlib
1314
- netcdf4
1415
- numpy
@@ -17,6 +18,7 @@ dependencies:
1718
- pip
1819
- pip:
1920
- git+https://github.com/jkrasting/cmip_basins.git
21+
- git+https://github.com/jkrasting/xcompare.git
2022
- git+https://github.com/raphaeldussin/static_downsampler.git
2123
- git+https://github.com/raphaeldussin/xoverturning
2224
- pyshp

ci/environment.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ dependencies:
88
- cartopy
99
- cmocean
1010
- dask
11+
- gsw
1112
- intake-xarray
1213
- esmf=8.0.0
1314
- esmpy=8.0.0
@@ -31,5 +32,6 @@ dependencies:
3132
- git+https://github.com/jkrasting/cmip_basins.git
3233
- git+https://github.com/raphaeldussin/static_downsampler.git
3334
- git+https://github.com/raphaeldussin/xoverturning
35+
- git+https://github.com/jkrasting/xcompare.git
3436
- git+https://github.com/jkrasting/xwavelet.git
3537
- git+https://github.com/jkrasting/xcompare.git

ci/environment_test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ dependencies:
88
- cartopy
99
- cmocean
1010
- dask
11+
- gsw
1112
- intake-xarray
1213
- esmf=8.0.0
1314
- esmpy=8.0.0
@@ -31,5 +32,6 @@ dependencies:
3132
- git+https://github.com/jkrasting/cmip_basins.git
3233
- git+https://github.com/raphaeldussin/static_downsampler.git
3334
- git+https://github.com/raphaeldussin/xoverturning
35+
- git+https://github.com/jkrasting/xcompare.git
3436
- git+https://github.com/jkrasting/xwavelet.git
3537
- git+https://github.com/jkrasting/xcompare.git

ci/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
black
22
cmocean
33
dask
4+
gsw
45
intake-xarray
56
matplotlib
67
netcdf4
@@ -14,4 +15,5 @@ scipy
1415
shapely
1516
six
1617
xarray
18+
xcompare
1719
xesmf

data/RoemmichGilson_ARGO_based_climatology.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"outputs": [],
104104
"source": [
105105
"for f in glob(\"*.gz\"):\n",
106-
" sp.check_call(f\"gunzip --keep --force {f}\", shell=True)"
106+
" sp.check_call(f\"gunzip --force {f}\", shell=True)"
107107
]
108108
},
109109
{

om4labs/catalogs/obs_catalog_gfdl.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,39 @@ plugins:
33
- module: intake_xarray
44
sources:
55

6+
Argo_Climatology:
7+
description: "Gridded in-situ temperature and salinity derived from Argo profiles"
8+
driver: netcdf
9+
args:
10+
urlpath: '/archive/Raphael.Dussin/datasets/Roemmich_Gilson_ARGO_TS_Clim/RG_ArgoClim_Extended_200401-202112_annual_clim_ptemp+salt.nc'
11+
chunks: {'time': 1}
12+
xarray_kwargs:
13+
decode_times: False
14+
metadata:
15+
origin_url: ''
16+
17+
Argo_Temp:
18+
description: "Gridded in-situ temperature derived from Argo profiles"
19+
driver: netcdf
20+
args:
21+
urlpath: '/archive/Raphael.Dussin/datasets/Roemmich_Gilson_ARGO_TS_Clim/RG_ArgoClim_Extended_200401-202112_annual_clim_ptemp+salt.nc'
22+
chunks: {'time': 1}
23+
xarray_kwargs:
24+
decode_times: False
25+
metadata:
26+
origin_url: ''
27+
28+
Argo_Psal:
29+
description: "Gridded in-situ practical salinity derived from Argo profiles"
30+
driver: netcdf
31+
args:
32+
urlpath: '/archive/Raphael.Dussin/datasets/Roemmich_Gilson_ARGO_TS_Clim/RG_ArgoClim_Extended_200401-202112_annual_clim_ptemp+salt.nc'
33+
chunks: {'time': 1}
34+
xarray_kwargs:
35+
decode_times: False
36+
metadata:
37+
origin_url: ''
38+
639
WOA13_annual_TS:
740
description: "World Ocean Atlas 2013 annual climatology T/S"
841
driver: netcdf

om4labs/catalogs/obs_catalog_testing.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,39 @@ plugins:
33
- module: intake_xarray
44
sources:
55

6+
Argo_Climatology:
7+
description: "Gridded in-situ temperature and salinity derived from Argo profiles"
8+
driver: netcdf
9+
args:
10+
urlpath: 'test_data/obs/RG_ArgoClim_Extended_200401-202112_annual_clim_ptemp+salt.nc'
11+
chunks: {'time': 1}
12+
xarray_kwargs:
13+
decode_times: False
14+
metadata:
15+
origin_url: ''
16+
17+
Argo_Temp:
18+
description: "Gridded in-situ temperature derived from Argo profiles"
19+
driver: netcdf
20+
args:
21+
urlpath: 'test_data/obs/RG_ArgoClim_Extended_200401-202112_annual_clim_ptemp+salt.nc'
22+
chunks: {'time': 1}
23+
xarray_kwargs:
24+
decode_times: False
25+
metadata:
26+
origin_url: ''
27+
28+
Argo_Psal:
29+
description: "Gridded in-situ practical salinity derived from Argo profiles"
30+
driver: netcdf
31+
args:
32+
urlpath: 'test_data/obs/RG_ArgoClim_Extended_200401-202112_annual_clim_ptemp+salt.nc'
33+
chunks: {'time': 1}
34+
xarray_kwargs:
35+
decode_times: False
36+
metadata:
37+
origin_url: ''
38+
639
WOA13_annual_TS:
740
description: "World Ocean Atlas 2013 annual climatology T/S"
841
driver: netcdf

om4labs/diags/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from . import sst_annual_bias_1x1deg
1212
from . import sss_annual_bias_1x1deg
1313
from . import seaice
14+
from . import stratification
1415
from . import stress_curl
1516
from . import thetao_yz_annual_bias_1x1deg
1617
from . import section_transports
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from .stratification import parse, read, calculate, plot, run, parse_and_run
2+
3+
__description__ = "Evaluate stratification parameters in z-coordinates"
4+
__ppstreams__ = [
5+
"ocean_annual_z_1x1deg/av",
6+
]
7+
__ppvars__ = ["thetao"]

0 commit comments

Comments
 (0)