%matplotlib inline
import pandas as pd
import socket
host = socket.getfqdn()
from core import load, zoom, calc, save,plots,monitor
#reload funcs after updating ./core/*.py
import importlib
importlib.reload(load)
importlib.reload(zoom)
importlib.reload(calc)
importlib.reload(save)
importlib.reload(plots)
importlib.reload(monitor)
<module 'core.monitor' from '/ccc/work/cont003/gen7420/odakatin/monitor-sedna/notebook/core/monitor.py'>
below are list of enviroment variable one can pass
local : if True run dask local cluster, if not true, put number of workers setted in the 'local' if no 'local ' given, local will be setted automatically to 'True'
#
Monitor.sh calls M_MLD_2D
and AWTD.sh, Fluxnet.sh, Siconc.sh, IceClim.sh, FWC_SSH.sh
AWTD.sh M_AWTMD
Fluxnet.sh M_Fluxnet
FWC_SSH.sh M_FWC_2D M_FWC_integrals M_FWC_SSH M_SSH_anomaly
Integrals.sh M_Mean_temp_velo M_Mooring M_Sectionx M_Sectiony
%%time
# 'savefig': Do we save output in html? or not. keep it true.
savefig=True
client,cluster,control,catalog_url,month,year,daskreport,outputpath = load.set_control(host)
!mkdir -p $outputpath
!mkdir -p $daskreport
client
local True using host= irene4610.c-irene.mg1.tgcc.ccc.cea.fr starting dask cluster on local= True workers 16 10000000000 False tgcc local cluster starting This code is running on irene4610.c-irene.mg1.tgcc.ccc.cea.fr using SEDNA_DELTA_MONITOR file experiment, read from ../lib/SEDNA_DELTA_MONITOR.yaml on year= 2012 on month= 01 outputpath= ../results/SEDNA_DELTA_MONITOR/ daskreport= ../results/dask/6419113irene4610.c-irene.mg1.tgcc.ccc.cea.fr_SEDNA_DELTA_MONITOR_01M_Fluxnet/ CPU times: user 3.78 s, sys: 732 ms, total: 4.51 s Wall time: 1min 37s
Client-ee96fcdd-13d8-11ed-8952-080038b93b19
Connection method: Cluster object | Cluster type: distributed.LocalCluster |
Dashboard: http://127.0.0.1:8787/status |
e5d803c9
Dashboard: http://127.0.0.1:8787/status | Workers: 64 |
Total threads: 256 | Total memory: 251.06 GiB |
Status: running | Using processes: True |
Scheduler-1768aad5-46f3-4ef0-8081-e28afde8873b
Comm: tcp://127.0.0.1:41463 | Workers: 64 |
Dashboard: http://127.0.0.1:8787/status | Total threads: 256 |
Started: 1 minute ago | Total memory: 251.06 GiB |
Comm: tcp://127.0.0.1:44500 | Total threads: 4 |
Dashboard: http://127.0.0.1:38457/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:36549 | |
Local directory: /tmp/dask-worker-space/worker-4qot9nf0 |
Comm: tcp://127.0.0.1:35924 | Total threads: 4 |
Dashboard: http://127.0.0.1:41064/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:34336 | |
Local directory: /tmp/dask-worker-space/worker-3r7iaisj |
Comm: tcp://127.0.0.1:35709 | Total threads: 4 |
Dashboard: http://127.0.0.1:42703/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:46710 | |
Local directory: /tmp/dask-worker-space/worker-ildyth6q |
Comm: tcp://127.0.0.1:36038 | Total threads: 4 |
Dashboard: http://127.0.0.1:42994/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:40446 | |
Local directory: /tmp/dask-worker-space/worker-c970sag3 |
Comm: tcp://127.0.0.1:43244 | Total threads: 4 |
Dashboard: http://127.0.0.1:33009/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:46722 | |
Local directory: /tmp/dask-worker-space/worker-hrbgx_pp |
Comm: tcp://127.0.0.1:44687 | Total threads: 4 |
Dashboard: http://127.0.0.1:35638/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:40133 | |
Local directory: /tmp/dask-worker-space/worker-aus1tpvu |
Comm: tcp://127.0.0.1:32854 | Total threads: 4 |
Dashboard: http://127.0.0.1:36922/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:36143 | |
Local directory: /tmp/dask-worker-space/worker-rjzlori0 |
Comm: tcp://127.0.0.1:32816 | Total threads: 4 |
Dashboard: http://127.0.0.1:40513/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37923 | |
Local directory: /tmp/dask-worker-space/worker-1na7d4bi |
Comm: tcp://127.0.0.1:45262 | Total threads: 4 |
Dashboard: http://127.0.0.1:39208/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:38681 | |
Local directory: /tmp/dask-worker-space/worker-pd745xvi |
Comm: tcp://127.0.0.1:36439 | Total threads: 4 |
Dashboard: http://127.0.0.1:41696/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:46610 | |
Local directory: /tmp/dask-worker-space/worker-407m63yk |
Comm: tcp://127.0.0.1:38434 | Total threads: 4 |
Dashboard: http://127.0.0.1:36398/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:45586 | |
Local directory: /tmp/dask-worker-space/worker-euhsf6u3 |
Comm: tcp://127.0.0.1:38014 | Total threads: 4 |
Dashboard: http://127.0.0.1:33841/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:46575 | |
Local directory: /tmp/dask-worker-space/worker-98zmck_g |
Comm: tcp://127.0.0.1:40852 | Total threads: 4 |
Dashboard: http://127.0.0.1:38155/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37295 | |
Local directory: /tmp/dask-worker-space/worker-7hvrl43d |
Comm: tcp://127.0.0.1:41364 | Total threads: 4 |
Dashboard: http://127.0.0.1:40802/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37170 | |
Local directory: /tmp/dask-worker-space/worker-y0rzdc8j |
Comm: tcp://127.0.0.1:36581 | Total threads: 4 |
Dashboard: http://127.0.0.1:39255/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:46740 | |
Local directory: /tmp/dask-worker-space/worker-twh6t692 |
Comm: tcp://127.0.0.1:41585 | Total threads: 4 |
Dashboard: http://127.0.0.1:33158/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:42395 | |
Local directory: /tmp/dask-worker-space/worker-mo8mlb2_ |
Comm: tcp://127.0.0.1:45279 | Total threads: 4 |
Dashboard: http://127.0.0.1:33512/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:38024 | |
Local directory: /tmp/dask-worker-space/worker-ly6xcxgn |
Comm: tcp://127.0.0.1:33608 | Total threads: 4 |
Dashboard: http://127.0.0.1:41120/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:43173 | |
Local directory: /tmp/dask-worker-space/worker-nj2rbrry |
Comm: tcp://127.0.0.1:41558 | Total threads: 4 |
Dashboard: http://127.0.0.1:46192/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:43282 | |
Local directory: /tmp/dask-worker-space/worker-vtzl4r_e |
Comm: tcp://127.0.0.1:46058 | Total threads: 4 |
Dashboard: http://127.0.0.1:40253/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:38451 | |
Local directory: /tmp/dask-worker-space/worker-tur44p0l |
Comm: tcp://127.0.0.1:40098 | Total threads: 4 |
Dashboard: http://127.0.0.1:45043/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:44998 | |
Local directory: /tmp/dask-worker-space/worker-ljgpy1gz |
Comm: tcp://127.0.0.1:40057 | Total threads: 4 |
Dashboard: http://127.0.0.1:38465/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:44854 | |
Local directory: /tmp/dask-worker-space/worker-je34lku1 |
Comm: tcp://127.0.0.1:34604 | Total threads: 4 |
Dashboard: http://127.0.0.1:38034/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:43889 | |
Local directory: /tmp/dask-worker-space/worker-tlhqnr8e |
Comm: tcp://127.0.0.1:46119 | Total threads: 4 |
Dashboard: http://127.0.0.1:46439/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:41417 | |
Local directory: /tmp/dask-worker-space/worker-8e5k2d6b |
Comm: tcp://127.0.0.1:44255 | Total threads: 4 |
Dashboard: http://127.0.0.1:46054/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:36629 | |
Local directory: /tmp/dask-worker-space/worker-vvp7qi64 |
Comm: tcp://127.0.0.1:42975 | Total threads: 4 |
Dashboard: http://127.0.0.1:33079/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:39879 | |
Local directory: /tmp/dask-worker-space/worker-pakyiva6 |
Comm: tcp://127.0.0.1:46483 | Total threads: 4 |
Dashboard: http://127.0.0.1:46387/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:43254 | |
Local directory: /tmp/dask-worker-space/worker-bzlhgg7c |
Comm: tcp://127.0.0.1:40664 | Total threads: 4 |
Dashboard: http://127.0.0.1:37010/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:33116 | |
Local directory: /tmp/dask-worker-space/worker-0rc8bf7a |
Comm: tcp://127.0.0.1:36310 | Total threads: 4 |
Dashboard: http://127.0.0.1:38359/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:40445 | |
Local directory: /tmp/dask-worker-space/worker-drsn7gk1 |
Comm: tcp://127.0.0.1:40112 | Total threads: 4 |
Dashboard: http://127.0.0.1:36891/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:38334 | |
Local directory: /tmp/dask-worker-space/worker-oa0zg3m7 |
Comm: tcp://127.0.0.1:36772 | Total threads: 4 |
Dashboard: http://127.0.0.1:36470/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:42728 | |
Local directory: /tmp/dask-worker-space/worker-wlf14m23 |
Comm: tcp://127.0.0.1:41109 | Total threads: 4 |
Dashboard: http://127.0.0.1:42679/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:46043 | |
Local directory: /tmp/dask-worker-space/worker-0w5lyer0 |
Comm: tcp://127.0.0.1:42518 | Total threads: 4 |
Dashboard: http://127.0.0.1:40374/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:35512 | |
Local directory: /tmp/dask-worker-space/worker-7905h11f |
Comm: tcp://127.0.0.1:38332 | Total threads: 4 |
Dashboard: http://127.0.0.1:37812/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:35920 | |
Local directory: /tmp/dask-worker-space/worker-1fltbses |
Comm: tcp://127.0.0.1:39572 | Total threads: 4 |
Dashboard: http://127.0.0.1:38876/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:39099 | |
Local directory: /tmp/dask-worker-space/worker-xddg3ok0 |
Comm: tcp://127.0.0.1:39984 | Total threads: 4 |
Dashboard: http://127.0.0.1:41805/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37767 | |
Local directory: /tmp/dask-worker-space/worker-vq7bf_89 |
Comm: tcp://127.0.0.1:34181 | Total threads: 4 |
Dashboard: http://127.0.0.1:36560/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:45428 | |
Local directory: /tmp/dask-worker-space/worker-l7wlvhwi |
Comm: tcp://127.0.0.1:35013 | Total threads: 4 |
Dashboard: http://127.0.0.1:40166/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:41959 | |
Local directory: /tmp/dask-worker-space/worker-_hk4ueg2 |
Comm: tcp://127.0.0.1:43016 | Total threads: 4 |
Dashboard: http://127.0.0.1:41757/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:42186 | |
Local directory: /tmp/dask-worker-space/worker-p1dpdm_8 |
Comm: tcp://127.0.0.1:39003 | Total threads: 4 |
Dashboard: http://127.0.0.1:44532/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:34144 | |
Local directory: /tmp/dask-worker-space/worker-epdo3x0h |
Comm: tcp://127.0.0.1:37244 | Total threads: 4 |
Dashboard: http://127.0.0.1:36999/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:40081 | |
Local directory: /tmp/dask-worker-space/worker-65xlu26o |
Comm: tcp://127.0.0.1:41595 | Total threads: 4 |
Dashboard: http://127.0.0.1:39285/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:41614 | |
Local directory: /tmp/dask-worker-space/worker-xxhlj2gd |
Comm: tcp://127.0.0.1:37835 | Total threads: 4 |
Dashboard: http://127.0.0.1:34332/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:41535 | |
Local directory: /tmp/dask-worker-space/worker-q6ns1v9b |
Comm: tcp://127.0.0.1:41570 | Total threads: 4 |
Dashboard: http://127.0.0.1:37731/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:41863 | |
Local directory: /tmp/dask-worker-space/worker-b0tnbvmj |
Comm: tcp://127.0.0.1:43000 | Total threads: 4 |
Dashboard: http://127.0.0.1:46570/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:43917 | |
Local directory: /tmp/dask-worker-space/worker-mw4e6f_l |
Comm: tcp://127.0.0.1:38734 | Total threads: 4 |
Dashboard: http://127.0.0.1:44703/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:34781 | |
Local directory: /tmp/dask-worker-space/worker-za0kw3jv |
Comm: tcp://127.0.0.1:37972 | Total threads: 4 |
Dashboard: http://127.0.0.1:46227/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:45363 | |
Local directory: /tmp/dask-worker-space/worker-3w1olbeo |
Comm: tcp://127.0.0.1:40317 | Total threads: 4 |
Dashboard: http://127.0.0.1:45436/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:46141 | |
Local directory: /tmp/dask-worker-space/worker-8_ghelmd |
Comm: tcp://127.0.0.1:45418 | Total threads: 4 |
Dashboard: http://127.0.0.1:43645/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:38927 | |
Local directory: /tmp/dask-worker-space/worker-pbirvuv3 |
Comm: tcp://127.0.0.1:43661 | Total threads: 4 |
Dashboard: http://127.0.0.1:43798/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:34849 | |
Local directory: /tmp/dask-worker-space/worker-wajj16fu |
Comm: tcp://127.0.0.1:45626 | Total threads: 4 |
Dashboard: http://127.0.0.1:43370/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:41568 | |
Local directory: /tmp/dask-worker-space/worker-9k58u1w5 |
Comm: tcp://127.0.0.1:37072 | Total threads: 4 |
Dashboard: http://127.0.0.1:42556/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:40406 | |
Local directory: /tmp/dask-worker-space/worker-a99zgcnr |
Comm: tcp://127.0.0.1:41705 | Total threads: 4 |
Dashboard: http://127.0.0.1:39296/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:39750 | |
Local directory: /tmp/dask-worker-space/worker-yfdufo95 |
Comm: tcp://127.0.0.1:45124 | Total threads: 4 |
Dashboard: http://127.0.0.1:41290/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:35583 | |
Local directory: /tmp/dask-worker-space/worker-xjsw1hxd |
Comm: tcp://127.0.0.1:33999 | Total threads: 4 |
Dashboard: http://127.0.0.1:35332/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:39269 | |
Local directory: /tmp/dask-worker-space/worker-nua4v80w |
Comm: tcp://127.0.0.1:37595 | Total threads: 4 |
Dashboard: http://127.0.0.1:36061/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:44011 | |
Local directory: /tmp/dask-worker-space/worker-9gf3mksc |
Comm: tcp://127.0.0.1:39907 | Total threads: 4 |
Dashboard: http://127.0.0.1:37094/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:35405 | |
Local directory: /tmp/dask-worker-space/worker-2myqb_5j |
Comm: tcp://127.0.0.1:36403 | Total threads: 4 |
Dashboard: http://127.0.0.1:45132/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37656 | |
Local directory: /tmp/dask-worker-space/worker-gytmy6hw |
Comm: tcp://127.0.0.1:38588 | Total threads: 4 |
Dashboard: http://127.0.0.1:34532/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:34447 | |
Local directory: /tmp/dask-worker-space/worker-57t3dpy3 |
Comm: tcp://127.0.0.1:39161 | Total threads: 4 |
Dashboard: http://127.0.0.1:41872/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:34692 | |
Local directory: /tmp/dask-worker-space/worker-z6ao_0uy |
Comm: tcp://127.0.0.1:35659 | Total threads: 4 |
Dashboard: http://127.0.0.1:46595/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:38390 | |
Local directory: /tmp/dask-worker-space/worker-mfcoe355 |
Comm: tcp://127.0.0.1:45028 | Total threads: 4 |
Dashboard: http://127.0.0.1:37955/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:34252 | |
Local directory: /tmp/dask-worker-space/worker-w3vf4kqd |
Comm: tcp://127.0.0.1:33730 | Total threads: 4 |
Dashboard: http://127.0.0.1:43388/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:41042 | |
Local directory: /tmp/dask-worker-space/worker-4i4eywxl |
Comm: tcp://127.0.0.1:36437 | Total threads: 4 |
Dashboard: http://127.0.0.1:42764/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:41435 | |
Local directory: /tmp/dask-worker-space/worker-_x9ym2y8 |
df=load.controlfile(control)
#Take out 'later' tagged computations
#df=df[~df['Value'].str.contains('later')]
df
Value | Inputs | Equation | Zone | Plot | Colourmap | MinMax | Unit | Oldname | Unnamed: 10 | |
---|---|---|---|---|---|---|---|---|---|---|
Fluxnet | gridV.vomecrty,param.e3v_0,param.e1v,param.mas... | calc.Fluxnet(data) | FramS_All | Fluxnet_integrals | None | ((-10,10),(-10,50) ,(-150,50),(-25,5) ) | (Sv,TW, mSv,10^-2 Sv) | I-6 | ||
Fluxnet | gridV.vomecrty,param.e3v_0,param.e1v,param.mas... | calc.Fluxnet(data) | Davis | Fluxnet_integrals | None | ((-5.0,5.0),(-25,27) ,(-200,50),(-9,5) ) | (Sv,TW, mSv,10^-2 Sv) | I-6 | ||
Fluxnet | gridV.vomecrty,param.e3v_0,param.e1v,param.mas... | calc.Fluxnet(data) | Bering | Fluxnet_integrals | None | ((-2,2),(-10,50) ,(-150,50),(-2,4) ) | (Sv,TW, mSv,10^-2 Sv) | I-6 |
Each computation consists of
%%time
import os
calcswitch=os.environ.get('calc', 'True')
lazy=os.environ.get('lazy','False' )
loaddata=((df.Inputs != '').any())
print('calcswitch=',calcswitch,'df.Inputs != nothing',loaddata, 'lazy=',lazy)
data = load.datas(catalog_url,df.Inputs,month,year,daskreport,lazy=lazy) if ((calcswitch=='True' )*loaddata) else 0
data
calcswitch= True df.Inputs != nothing True lazy= False ../lib/SEDNA_DELTA_MONITOR.yaml using param_xios reading ../lib/SEDNA_DELTA_MONITOR.yaml using param_xios reading <bound method DataSourceBase.describe of sources: param_xios: args: combine: nested concat_dim: y urlpath: /ccc/work/cont003/gen7420/odakatin/CONFIGS/SEDNA/SEDNA-I/SEDNA_Domain_cfg_Tgt_20210423_tsh10m_L1/param_f32/x_*.nc xarray_kwargs: compat: override coords: minimal data_vars: minimal parallel: true description: SEDNA NEMO parameters from MPI output nav_lon lat fails driver: intake_xarray.netcdf.NetCDFSource metadata: catalog_dir: /ccc/work/cont003/gen7420/odakatin/monitor-sedna/notebook/../lib/ > {'name': 'param_xios', 'container': 'xarray', 'plugin': ['netcdf'], 'driver': ['netcdf'], 'description': 'SEDNA NEMO parameters from MPI output nav_lon lat fails', 'direct_access': 'forbid', 'user_parameters': [{'name': 'path', 'description': 'file coordinate', 'type': 'str', 'default': '/ccc/work/cont003/gen7420/odakatin/CONFIGS/SEDNA/MESH/SEDNA_mesh_mask_Tgt_20210423_tsh10m_L1/param'}], 'metadata': {}, 'args': {'urlpath': '/ccc/work/cont003/gen7420/odakatin/CONFIGS/SEDNA/SEDNA-I/SEDNA_Domain_cfg_Tgt_20210423_tsh10m_L1/param_f32/x_*.nc', 'combine': 'nested', 'concat_dim': 'y'}} 0 read gridS ['vosaline'] lazy= False using load_data_xios_kerchunk reading gridS using load_data_xios_kerchunk reading <bound method DataSourceBase.describe of sources: data_xios_kerchunk: args: consolidated: false storage_options: fo: file:////ccc/cont003/home/ra5563/ra5563/catalogue/DELTA/201201/gridS_0[0-5][0-9][0-9].json target_protocol: file urlpath: reference:// description: CREG025 NEMO outputs from different xios server in kerchunk format driver: intake_xarray.xzarr.ZarrSource metadata: catalog_dir: /ccc/work/cont003/gen7420/odakatin/monitor-sedna/notebook/../lib/ > took 30.695796966552734 seconds 0 merging gridS ['vosaline'] 1 read gridT ['votemper'] lazy= False using load_data_xios_kerchunk reading gridT using load_data_xios_kerchunk reading <bound method DataSourceBase.describe of sources: data_xios_kerchunk: args: consolidated: false storage_options: fo: file:////ccc/cont003/home/ra5563/ra5563/catalogue/DELTA/201201/gridT_0[0-5][0-9][0-9].json target_protocol: file urlpath: reference:// description: CREG025 NEMO outputs from different xios server in kerchunk format driver: intake_xarray.xzarr.ZarrSource metadata: catalog_dir: /ccc/work/cont003/gen7420/odakatin/monitor-sedna/notebook/../lib/ > took 36.346864461898804 seconds 1 merging gridT ['votemper'] took 0.8538215160369873 seconds 2 read gridV ['vomecrty'] lazy= False using load_data_xios_kerchunk reading gridV using load_data_xios_kerchunk reading <bound method DataSourceBase.describe of sources: data_xios_kerchunk: args: consolidated: false storage_options: fo: file:////ccc/cont003/home/ra5563/ra5563/catalogue/DELTA/201201/gridV_0[0-5][0-9][0-9].json target_protocol: file urlpath: reference:// description: CREG025 NEMO outputs from different xios server in kerchunk format driver: intake_xarray.xzarr.ZarrSource metadata: catalog_dir: /ccc/work/cont003/gen7420/odakatin/monitor-sedna/notebook/../lib/ > took 40.92932868003845 seconds 2 merging gridV ['vomecrty'] took 0.9172604084014893 seconds 3 read icemod ['sivolu', 'sivelv'] lazy= False using load_data_xios_kerchunk reading icemod using load_data_xios_kerchunk reading <bound method DataSourceBase.describe of sources: data_xios_kerchunk: args: consolidated: false storage_options: fo: file:////ccc/cont003/home/ra5563/ra5563/catalogue/DELTA/201201/icemod_0[0-5][0-9][0-9].json target_protocol: file urlpath: reference:// description: CREG025 NEMO outputs from different xios server in kerchunk format driver: intake_xarray.xzarr.ZarrSource metadata: catalog_dir: /ccc/work/cont003/gen7420/odakatin/monitor-sedna/notebook/../lib/ > took 30.834784269332886 seconds 3 merging icemod ['sivolu', 'sivelv'] took 0.880826473236084 seconds param mask2d will be included in data param e1v will be included in data param mask will be included in data param nav_lon will be included in data param nav_lat will be included in data param e3v_0 will be included in data CPU times: user 1min 40s, sys: 21.5 s, total: 2min 2s Wall time: 3min 17s
<xarray.Dataset> Dimensions: (t: 31, z: 150, y: 6540, x: 6560) Coordinates: time_centered (t) object dask.array<chunksize=(1,), meta=np.ndarray> * t (t) object 2012-01-01 12:00:00 ... 2012-01-31 12:00:00 * y (y) int64 1 2 3 4 5 6 7 ... 6535 6536 6537 6538 6539 6540 * x (x) int64 1 2 3 4 5 6 7 ... 6555 6556 6557 6558 6559 6560 nav_lat (y, x) float32 dask.array<chunksize=(13, 6560), meta=np.ndarray> nav_lon (y, x) float32 dask.array<chunksize=(13, 6560), meta=np.ndarray> * z (z) int64 1 2 3 4 5 6 7 8 ... 143 144 145 146 147 148 149 150 mask2d (y, x) bool dask.array<chunksize=(13, 6560), meta=np.ndarray> e1v (y, x) float64 dask.array<chunksize=(13, 6560), meta=np.ndarray> mask (z, y, x) bool dask.array<chunksize=(150, 13, 6560), meta=np.ndarray> e3v_0 (z, y, x) float64 dask.array<chunksize=(150, 13, 6560), meta=np.ndarray> Data variables: vosaline (t, z, y, x) float32 dask.array<chunksize=(1, 150, 13, 6560), meta=np.ndarray> votemper (t, z, y, x) float32 dask.array<chunksize=(1, 150, 13, 6560), meta=np.ndarray> vomecrty (t, z, y, x) float32 dask.array<chunksize=(1, 150, 13, 6560), meta=np.ndarray> sivolu (t, y, x) float32 dask.array<chunksize=(1, 13, 6560), meta=np.ndarray> sivelv (t, y, x) float32 dask.array<chunksize=(1, 13, 6560), meta=np.ndarray> Attributes: (12/26) CASE: DELTA CONFIG: SEDNA Conventions: CF-1.6 DOMAIN_dimensions_ids: [2, 3] DOMAIN_halo_size_end: [0, 0] DOMAIN_halo_size_start: [0, 0] ... ... nj: 13 output_frequency: 1d start_date: 20090101 timeStamp: 2022-Jan-17 19:00:16 GMT title: ocean T grid variables uuid: d8db76f6-a436-451a-9ab1-72dc892753af
%%time
monitor.auto(df,data,savefig,daskreport,outputpath,file_exp='SEDNA'
)
#calc= True #save= True #plot= False Value='Fluxnet' Zone='FramS_All' Plot='Fluxnet_integrals' cmap='None' clabel='(Sv,TW, mSv,10^-2 Sv)' clim= ((-10, 10), (-10, 50), (-150, 50), (-25, 5)) outputpath='../results/SEDNA_DELTA_MONITOR/' nc_outputpath='../nc_results/SEDNA_DELTA_MONITOR/' filename='SEDNA_Fluxnet_integrals_FramS_All_Fluxnet' data=monitor.optimize_dataset(data) #2 Zooming Data data= zoom.FramS_All(data) data=monitor.optimize_dataset(data)
<xarray.Dataset> Dimensions: (t: 31, z: 150, y: 2, x: 601) Coordinates: time_centered (t) object dask.array<chunksize=(1,), meta=np.ndarray> * t (t) object 2012-01-01 12:00:00 ... 2012-01-31 12:00:00 * y (y) int64 2608 2609 * x (x) int64 3734 3735 3736 3737 3738 ... 4331 4332 4333 4334 nav_lat (y, x) float32 dask.array<chunksize=(2, 601), meta=np.ndarray> nav_lon (y, x) float32 dask.array<chunksize=(2, 601), meta=np.ndarray> * z (z) int64 1 2 3 4 5 6 7 8 ... 143 144 145 146 147 148 149 150 mask2d (y, x) bool dask.array<chunksize=(2, 601), meta=np.ndarray> e1v (y, x) float64 dask.array<chunksize=(2, 601), meta=np.ndarray> mask (z, y, x) bool dask.array<chunksize=(150, 2, 601), meta=np.ndarray> e3v_0 (z, y, x) float64 dask.array<chunksize=(150, 2, 601), meta=np.ndarray> Data variables: vosaline (t, z, y, x) float32 dask.array<chunksize=(1, 150, 2, 601), meta=np.ndarray> votemper (t, z, y, x) float32 dask.array<chunksize=(1, 150, 2, 601), meta=np.ndarray> vomecrty (t, z, y, x) float32 dask.array<chunksize=(1, 150, 2, 601), meta=np.ndarray> sivolu (t, y, x, z) float32 dask.array<chunksize=(1, 2, 601, 150), meta=np.ndarray> sivelv (t, y, x, z) float32 dask.array<chunksize=(1, 2, 601, 150), meta=np.ndarray> Attributes: (12/26) CASE: DELTA CONFIG: SEDNA Conventions: CF-1.6 DOMAIN_dimensions_ids: [2, 3] DOMAIN_halo_size_end: [0, 0] DOMAIN_halo_size_start: [0, 0] ... ... nj: 13 output_frequency: 1d start_date: 20090101 timeStamp: 2022-Jan-17 19:00:16 GMT title: ocean T grid variables uuid: d8db76f6-a436-451a-9ab1-72dc892753af
#3 Start computing data= calc.Fluxnet(data) monitor.optimize_dataset(data) add optimise here once otimise can recognise
<xarray.Dataset> Dimensions: (t: 31) Coordinates: time_centered (t) object dask.array<chunksize=(1,), meta=np.ndarray> * t (t) object 2012-01-01 12:00:00 ... 2012-01-31 12:0... y int64 2608 Data variables: Volume flux Net (t) float64 dask.array<chunksize=(1,), meta=np.ndarray> Volume flux Northward (t) float64 dask.array<chunksize=(1,), meta=np.ndarray> Heat flux Net (t) float64 dask.array<chunksize=(1,), meta=np.ndarray> Heat flux Northward (t) float64 dask.array<chunksize=(1,), meta=np.ndarray> Freshwater Net (t) float64 dask.array<chunksize=(1,), meta=np.ndarray> Freshwater Northward (t) float64 dask.array<chunksize=(1,), meta=np.ndarray> Ice export (t) float64 dask.array<chunksize=(1,), meta=np.ndarray> Volume flux South (t) float64 dask.array<chunksize=(1,), meta=np.ndarray> Heat flux South (t) float64 dask.array<chunksize=(1,), meta=np.ndarray> Freshwater South (t) float64 dask.array<chunksize=(1,), meta=np.ndarray>
#4 Saving SEDNA_Fluxnet_integrals_FramS_All_Fluxnet data=save.datas(data,plot=Plot,path=nc_outputpath,filename=filename) start saving data saving data in a csv file ../nc_results/SEDNA_DELTA_MONITOR/SEDNA_Fluxnet_integrals_FramS_All_Fluxnet2012-01-01_2012-01-31.nc save computed data at ../nc_results/SEDNA_DELTA_MONITOR/SEDNA_Fluxnet_integrals_FramS_All_Fluxnet2012-01-01_2012-01-31.nc completed Value='Fluxnet' Zone='Davis' Plot='Fluxnet_integrals' cmap='None' clabel='(Sv,TW, mSv,10^-2 Sv)' clim= ((-5.0, 5.0), (-25, 27), (-200, 50), (-9, 5)) outputpath='../results/SEDNA_DELTA_MONITOR/' nc_outputpath='../nc_results/SEDNA_DELTA_MONITOR/' filename='SEDNA_Fluxnet_integrals_Davis_Fluxnet' data=monitor.optimize_dataset(data) #2 Zooming Data data= zoom.Davis(data) data=monitor.optimize_dataset(data)
<xarray.Dataset> Dimensions: (t: 31, z: 150, y: 2, x: 421) Coordinates: time_centered (t) object dask.array<chunksize=(1,), meta=np.ndarray> * t (t) object 2012-01-01 12:00:00 ... 2012-01-31 12:00:00 * y (y) int64 1308 1309 * x (x) int64 1749 1750 1751 1752 1753 ... 2166 2167 2168 2169 nav_lat (y, x) float32 dask.array<chunksize=(1, 421), meta=np.ndarray> nav_lon (y, x) float32 dask.array<chunksize=(1, 421), meta=np.ndarray> * z (z) int64 1 2 3 4 5 6 7 8 ... 143 144 145 146 147 148 149 150 mask2d (y, x) bool dask.array<chunksize=(1, 421), meta=np.ndarray> e1v (y, x) float64 dask.array<chunksize=(1, 421), meta=np.ndarray> mask (z, y, x) bool dask.array<chunksize=(150, 1, 421), meta=np.ndarray> e3v_0 (z, y, x) float64 dask.array<chunksize=(150, 1, 421), meta=np.ndarray> Data variables: vosaline (t, z, y, x) float32 dask.array<chunksize=(1, 150, 1, 421), meta=np.ndarray> votemper (t, z, y, x) float32 dask.array<chunksize=(1, 150, 1, 421), meta=np.ndarray> vomecrty (t, z, y, x) float32 dask.array<chunksize=(1, 150, 1, 421), meta=np.ndarray> sivolu (t, y, x, z) float32 dask.array<chunksize=(1, 1, 421, 150), meta=np.ndarray> sivelv (t, y, x, z) float32 dask.array<chunksize=(1, 1, 421, 150), meta=np.ndarray> Attributes: (12/26) CASE: DELTA CONFIG: SEDNA Conventions: CF-1.6 DOMAIN_dimensions_ids: [2, 3] DOMAIN_halo_size_end: [0, 0] DOMAIN_halo_size_start: [0, 0] ... ... nj: 13 output_frequency: 1d start_date: 20090101 timeStamp: 2022-Jan-17 19:00:16 GMT title: ocean T grid variables uuid: d8db76f6-a436-451a-9ab1-72dc892753af
#3 Start computing data= calc.Fluxnet(data) monitor.optimize_dataset(data) add optimise here once otimise can recognise
<xarray.Dataset> Dimensions: (t: 31) Coordinates: time_centered (t) object dask.array<chunksize=(1,), meta=np.ndarray> * t (t) object 2012-01-01 12:00:00 ... 2012-01-31 12:0... y int64 1308 Data variables: Volume flux Net (t) float64 dask.array<chunksize=(1,), meta=np.ndarray> Volume flux Northward (t) float64 dask.array<chunksize=(1,), meta=np.ndarray> Heat flux Net (t) float64 dask.array<chunksize=(1,), meta=np.ndarray> Heat flux Northward (t) float64 dask.array<chunksize=(1,), meta=np.ndarray> Freshwater Net (t) float64 dask.array<chunksize=(1,), meta=np.ndarray> Freshwater Northward (t) float64 dask.array<chunksize=(1,), meta=np.ndarray> Ice export (t) float64 dask.array<chunksize=(1,), meta=np.ndarray> Volume flux South (t) float64 dask.array<chunksize=(1,), meta=np.ndarray> Heat flux South (t) float64 dask.array<chunksize=(1,), meta=np.ndarray> Freshwater South (t) float64 dask.array<chunksize=(1,), meta=np.ndarray>
#4 Saving SEDNA_Fluxnet_integrals_Davis_Fluxnet data=save.datas(data,plot=Plot,path=nc_outputpath,filename=filename) start saving data saving data in a csv file ../nc_results/SEDNA_DELTA_MONITOR/SEDNA_Fluxnet_integrals_Davis_Fluxnet2012-01-01_2012-01-31.nc save computed data at ../nc_results/SEDNA_DELTA_MONITOR/SEDNA_Fluxnet_integrals_Davis_Fluxnet2012-01-01_2012-01-31.nc completed Value='Fluxnet' Zone='Bering' Plot='Fluxnet_integrals' cmap='None' clabel='(Sv,TW, mSv,10^-2 Sv)' clim= ((-2, 2), (-10, 50), (-150, 50), (-2, 4)) outputpath='../results/SEDNA_DELTA_MONITOR/' nc_outputpath='../nc_results/SEDNA_DELTA_MONITOR/' filename='SEDNA_Fluxnet_integrals_Bering_Fluxnet' data=monitor.optimize_dataset(data) #2 Zooming Data data= zoom.Bering(data) data=monitor.optimize_dataset(data)
<xarray.Dataset> Dimensions: (t: 31, z: 150, y: 2, x: 146) Coordinates: time_centered (t) object dask.array<chunksize=(1,), meta=np.ndarray> * t (t) object 2012-01-01 12:00:00 ... 2012-01-31 12:00:00 * y (y) int64 6538 6539 * x (x) int64 2421 2422 2423 2424 2425 ... 2563 2564 2565 2566 nav_lat (y, x) float32 dask.array<chunksize=(2, 146), meta=np.ndarray> nav_lon (y, x) float32 dask.array<chunksize=(2, 146), meta=np.ndarray> * z (z) int64 1 2 3 4 5 6 7 8 ... 143 144 145 146 147 148 149 150 mask2d (y, x) bool dask.array<chunksize=(2, 146), meta=np.ndarray> e1v (y, x) float64 dask.array<chunksize=(2, 146), meta=np.ndarray> mask (z, y, x) bool dask.array<chunksize=(150, 2, 146), meta=np.ndarray> e3v_0 (z, y, x) float64 dask.array<chunksize=(150, 2, 146), meta=np.ndarray> Data variables: vosaline (t, z, y, x) float32 dask.array<chunksize=(1, 150, 2, 146), meta=np.ndarray> votemper (t, z, y, x) float32 dask.array<chunksize=(1, 150, 2, 146), meta=np.ndarray> vomecrty (t, z, y, x) float32 dask.array<chunksize=(1, 150, 2, 146), meta=np.ndarray> sivolu (t, y, x, z) float32 dask.array<chunksize=(1, 2, 146, 150), meta=np.ndarray> sivelv (t, y, x, z) float32 dask.array<chunksize=(1, 2, 146, 150), meta=np.ndarray> Attributes: (12/26) CASE: DELTA CONFIG: SEDNA Conventions: CF-1.6 DOMAIN_dimensions_ids: [2, 3] DOMAIN_halo_size_end: [0, 0] DOMAIN_halo_size_start: [0, 0] ... ... nj: 13 output_frequency: 1d start_date: 20090101 timeStamp: 2022-Jan-17 19:00:16 GMT title: ocean T grid variables uuid: d8db76f6-a436-451a-9ab1-72dc892753af
#3 Start computing data= calc.Fluxnet(data) monitor.optimize_dataset(data) add optimise here once otimise can recognise
<xarray.Dataset> Dimensions: (t: 31) Coordinates: time_centered (t) object dask.array<chunksize=(1,), meta=np.ndarray> * t (t) object 2012-01-01 12:00:00 ... 2012-01-31 12:0... y int64 6538 Data variables: Volume flux Net (t) float64 dask.array<chunksize=(1,), meta=np.ndarray> Volume flux Northward (t) float64 dask.array<chunksize=(1,), meta=np.ndarray> Heat flux Net (t) float64 dask.array<chunksize=(1,), meta=np.ndarray> Heat flux Northward (t) float64 dask.array<chunksize=(1,), meta=np.ndarray> Freshwater Net (t) float64 dask.array<chunksize=(1,), meta=np.ndarray> Freshwater Northward (t) float64 dask.array<chunksize=(1,), meta=np.ndarray> Ice export (t) float64 dask.array<chunksize=(1,), meta=np.ndarray> Volume flux South (t) float64 dask.array<chunksize=(1,), meta=np.ndarray> Heat flux South (t) float64 dask.array<chunksize=(1,), meta=np.ndarray> Freshwater South (t) float64 dask.array<chunksize=(1,), meta=np.ndarray>
#4 Saving SEDNA_Fluxnet_integrals_Bering_Fluxnet data=save.datas(data,plot=Plot,path=nc_outputpath,filename=filename) start saving data saving data in a csv file ../nc_results/SEDNA_DELTA_MONITOR/SEDNA_Fluxnet_integrals_Bering_Fluxnet2012-01-01_2012-01-31.nc save computed data at ../nc_results/SEDNA_DELTA_MONITOR/SEDNA_Fluxnet_integrals_Bering_Fluxnet2012-01-01_2012-01-31.nc completed CPU times: user 27.6 s, sys: 2.58 s, total: 30.2 s Wall time: 36.5 s