-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
43 lines (34 loc) · 1.57 KB
/
main.py
File metadata and controls
43 lines (34 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import xarray as xr
import one_yr
import z_time
import transect
import x_time
import anim_transect
import config as cfg
import utils
from model_vs_obs import model_vs_obs
fname = '../oslo_br_out.nc' # utils.get_fname('Model output')
ds = xr.open_dataset(fname)
name_obs = '../Aqm_Dk1_cleaned.xlsx' # utils.get_fname('Observations')
model_vs_obs(ds, name_obs, plot_sed=False)
#---------------------------------------------------------------
# TEMPORAL VARIABILITY OF VERT. DISTRIBUTIONS
#---------------------------------------------------------------
# time period (dataset, picname, varnames, nrows, ncols)
# z_time.fig_ztime(ds, 'ztime-oxy', cfg.varnames, cfg.icol_0, 2, 3)
# 1 year (dataset, picname, varnames, nrows, ncols)
# one_yr.fig_ztime(ds, 'ztime-oxy-1yr', cfg.varnames, cfg.icol_0, 2, 3)
#---------------------------------------------------------------
#TRANSECTS
#---------------------------------------------------------------
# transect snapshot (dataset, picname, varnames, day, nrows, ncols)
# transect.fig_transect(ds, 'transect-2015', cfg.varnames, '2014-10-15 00:00:00', 2, 3)
#---------------------------------------------------------------
# ANIMATION
#---------------------------------------------------------------
# anim_transect.anim_transect(ds, 'frames\Brom', for_poster_transect, '2020-07-10', '2020-07-30', 3, 3)
#---------------------------------------------------------------
# MAPS
#---------------------------------------------------------------
# x-time map (dataset, picname, varnames, z-level, nrows, ncols)
# x_time.fig_map(ds, 'xtime-oxy', cfg.varnames, 0, 3, 2)