%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'
#
AWTD.sh M_AWTMD
Fluxnet.sh M_Fluxnet
FWC_SSH.sh M_FWC_2D M_FWC_integrals M_FWC_SSH M_SSH_anomaly
Siconc.sh M_Ice_quantities
IceClim.sh M_IceClim M_IceConce M_IceThick
M_Mean_temp_velo M_MLD_2D 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= irene5428.c-irene.mg1.tgcc.ccc.cea.fr starting dask cluster on local= True This code is running on irene5428.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/6418599irene5428.c-irene.mg1.tgcc.ccc.cea.fr_SEDNA_DELTA_MONITOR_01M_Fluxnet/ CPU times: user 3.73 s, sys: 710 ms, total: 4.44 s Wall time: 1min 37s
Client-193e6dbc-13d2-11ed-a022-080038b94039
Connection method: Cluster object | Cluster type: distributed.LocalCluster |
Dashboard: http://127.0.0.1:8787/status |
519e59b6
Dashboard: http://127.0.0.1:8787/status | Workers: 64 |
Total threads: 256 | Total memory: 251.06 GiB |
Status: running | Using processes: True |
Scheduler-4bbbd1d9-80d7-419d-9a28-31a458a90b0a
Comm: tcp://127.0.0.1:35610 | 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:35304 | Total threads: 4 |
Dashboard: http://127.0.0.1:36174/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:36038 | |
Local directory: /tmp/dask-worker-space/worker-n0usz453 |
Comm: tcp://127.0.0.1:34587 | Total threads: 4 |
Dashboard: http://127.0.0.1:45008/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:41689 | |
Local directory: /tmp/dask-worker-space/worker-ald9supo |
Comm: tcp://127.0.0.1:44553 | Total threads: 4 |
Dashboard: http://127.0.0.1:33794/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:41282 | |
Local directory: /tmp/dask-worker-space/worker-349adje5 |
Comm: tcp://127.0.0.1:46298 | Total threads: 4 |
Dashboard: http://127.0.0.1:45552/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:44241 | |
Local directory: /tmp/dask-worker-space/worker-6m3ev1ph |
Comm: tcp://127.0.0.1:37802 | Total threads: 4 |
Dashboard: http://127.0.0.1:40100/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:36466 | |
Local directory: /tmp/dask-worker-space/worker-13bpnpzn |
Comm: tcp://127.0.0.1:45929 | Total threads: 4 |
Dashboard: http://127.0.0.1:35902/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37843 | |
Local directory: /tmp/dask-worker-space/worker-8twfvpwa |
Comm: tcp://127.0.0.1:33080 | Total threads: 4 |
Dashboard: http://127.0.0.1:45009/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:34242 | |
Local directory: /tmp/dask-worker-space/worker-yttblwpb |
Comm: tcp://127.0.0.1:34590 | Total threads: 4 |
Dashboard: http://127.0.0.1:36077/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:44750 | |
Local directory: /tmp/dask-worker-space/worker-u_c_mtin |
Comm: tcp://127.0.0.1:33616 | Total threads: 4 |
Dashboard: http://127.0.0.1:37661/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:36217 | |
Local directory: /tmp/dask-worker-space/worker-ltgzy9yj |
Comm: tcp://127.0.0.1:42378 | Total threads: 4 |
Dashboard: http://127.0.0.1:36862/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:34933 | |
Local directory: /tmp/dask-worker-space/worker-6zpe881p |
Comm: tcp://127.0.0.1:36519 | Total threads: 4 |
Dashboard: http://127.0.0.1:34001/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:33293 | |
Local directory: /tmp/dask-worker-space/worker-qiid5et4 |
Comm: tcp://127.0.0.1:35726 | Total threads: 4 |
Dashboard: http://127.0.0.1:36971/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37907 | |
Local directory: /tmp/dask-worker-space/worker-1b3dkuqs |
Comm: tcp://127.0.0.1:40580 | Total threads: 4 |
Dashboard: http://127.0.0.1:37376/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:45684 | |
Local directory: /tmp/dask-worker-space/worker-5i0imi6e |
Comm: tcp://127.0.0.1:46054 | Total threads: 4 |
Dashboard: http://127.0.0.1:37439/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:45013 | |
Local directory: /tmp/dask-worker-space/worker-wps_15d9 |
Comm: tcp://127.0.0.1:36787 | Total threads: 4 |
Dashboard: http://127.0.0.1:38157/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:34638 | |
Local directory: /tmp/dask-worker-space/worker-2y8yl8x0 |
Comm: tcp://127.0.0.1:41646 | Total threads: 4 |
Dashboard: http://127.0.0.1:45738/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:45279 | |
Local directory: /tmp/dask-worker-space/worker-xmq10icf |
Comm: tcp://127.0.0.1:39348 | Total threads: 4 |
Dashboard: http://127.0.0.1:37723/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:35557 | |
Local directory: /tmp/dask-worker-space/worker-m2je2yke |
Comm: tcp://127.0.0.1:37812 | Total threads: 4 |
Dashboard: http://127.0.0.1:46433/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:46728 | |
Local directory: /tmp/dask-worker-space/worker-h5_77_lk |
Comm: tcp://127.0.0.1:39100 | Total threads: 4 |
Dashboard: http://127.0.0.1:40734/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:42124 | |
Local directory: /tmp/dask-worker-space/worker-eld9k0sm |
Comm: tcp://127.0.0.1:45213 | Total threads: 4 |
Dashboard: http://127.0.0.1:43802/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:35036 | |
Local directory: /tmp/dask-worker-space/worker-li138e4l |
Comm: tcp://127.0.0.1:44264 | Total threads: 4 |
Dashboard: http://127.0.0.1:39116/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:46008 | |
Local directory: /tmp/dask-worker-space/worker-gcmnqjwd |
Comm: tcp://127.0.0.1:43556 | Total threads: 4 |
Dashboard: http://127.0.0.1:36327/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:33974 | |
Local directory: /tmp/dask-worker-space/worker-a7jqr6wq |
Comm: tcp://127.0.0.1:38685 | Total threads: 4 |
Dashboard: http://127.0.0.1:46623/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:36573 | |
Local directory: /tmp/dask-worker-space/worker-7i2nbcir |
Comm: tcp://127.0.0.1:37055 | Total threads: 4 |
Dashboard: http://127.0.0.1:38242/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:45347 | |
Local directory: /tmp/dask-worker-space/worker-tblx3ttc |
Comm: tcp://127.0.0.1:41923 | Total threads: 4 |
Dashboard: http://127.0.0.1:39588/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:46426 | |
Local directory: /tmp/dask-worker-space/worker-neek_pv9 |
Comm: tcp://127.0.0.1:35224 | Total threads: 4 |
Dashboard: http://127.0.0.1:40128/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:39854 | |
Local directory: /tmp/dask-worker-space/worker-cbkzhr8p |
Comm: tcp://127.0.0.1:39080 | Total threads: 4 |
Dashboard: http://127.0.0.1:37590/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:45466 | |
Local directory: /tmp/dask-worker-space/worker-xe5y17kr |
Comm: tcp://127.0.0.1:33444 | Total threads: 4 |
Dashboard: http://127.0.0.1:40610/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:43394 | |
Local directory: /tmp/dask-worker-space/worker-78pqcvb0 |
Comm: tcp://127.0.0.1:39910 | Total threads: 4 |
Dashboard: http://127.0.0.1:38299/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:42083 | |
Local directory: /tmp/dask-worker-space/worker-blsdaxzn |
Comm: tcp://127.0.0.1:41910 | Total threads: 4 |
Dashboard: http://127.0.0.1:42987/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:40247 | |
Local directory: /tmp/dask-worker-space/worker-48fpsbfa |
Comm: tcp://127.0.0.1:36855 | Total threads: 4 |
Dashboard: http://127.0.0.1:35156/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:43793 | |
Local directory: /tmp/dask-worker-space/worker-uunuz589 |
Comm: tcp://127.0.0.1:39902 | Total threads: 4 |
Dashboard: http://127.0.0.1:35431/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:41257 | |
Local directory: /tmp/dask-worker-space/worker-b7y73xic |
Comm: tcp://127.0.0.1:36408 | Total threads: 4 |
Dashboard: http://127.0.0.1:42685/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:43245 | |
Local directory: /tmp/dask-worker-space/worker-ck5l5003 |
Comm: tcp://127.0.0.1:46225 | Total threads: 4 |
Dashboard: http://127.0.0.1:43766/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:46306 | |
Local directory: /tmp/dask-worker-space/worker-ej4kgiz9 |
Comm: tcp://127.0.0.1:40895 | Total threads: 4 |
Dashboard: http://127.0.0.1:33310/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37526 | |
Local directory: /tmp/dask-worker-space/worker-mgyin_mg |
Comm: tcp://127.0.0.1:37625 | Total threads: 4 |
Dashboard: http://127.0.0.1:42338/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:34472 | |
Local directory: /tmp/dask-worker-space/worker-mr5m6938 |
Comm: tcp://127.0.0.1:33705 | Total threads: 4 |
Dashboard: http://127.0.0.1:44648/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:40226 | |
Local directory: /tmp/dask-worker-space/worker-x5jwcuq6 |
Comm: tcp://127.0.0.1:39919 | Total threads: 4 |
Dashboard: http://127.0.0.1:43164/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:43548 | |
Local directory: /tmp/dask-worker-space/worker-ua8liniq |
Comm: tcp://127.0.0.1:44352 | Total threads: 4 |
Dashboard: http://127.0.0.1:34120/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:38026 | |
Local directory: /tmp/dask-worker-space/worker-c7c8f6f0 |
Comm: tcp://127.0.0.1:46732 | Total threads: 4 |
Dashboard: http://127.0.0.1:46259/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:40693 | |
Local directory: /tmp/dask-worker-space/worker-n6aofhd_ |
Comm: tcp://127.0.0.1:46557 | Total threads: 4 |
Dashboard: http://127.0.0.1:43123/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:44804 | |
Local directory: /tmp/dask-worker-space/worker-2v02i25j |
Comm: tcp://127.0.0.1:37147 | Total threads: 4 |
Dashboard: http://127.0.0.1:38040/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37127 | |
Local directory: /tmp/dask-worker-space/worker-o6gz25z9 |
Comm: tcp://127.0.0.1:34072 | Total threads: 4 |
Dashboard: http://127.0.0.1:37669/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:42988 | |
Local directory: /tmp/dask-worker-space/worker-j0v9on8i |
Comm: tcp://127.0.0.1:45304 | Total threads: 4 |
Dashboard: http://127.0.0.1:37204/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:42251 | |
Local directory: /tmp/dask-worker-space/worker-_eamfq06 |
Comm: tcp://127.0.0.1:40604 | Total threads: 4 |
Dashboard: http://127.0.0.1:42786/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:33781 | |
Local directory: /tmp/dask-worker-space/worker-qcsq4gl6 |
Comm: tcp://127.0.0.1:36637 | Total threads: 4 |
Dashboard: http://127.0.0.1:34700/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:46209 | |
Local directory: /tmp/dask-worker-space/worker-xx_52x2o |
Comm: tcp://127.0.0.1:45021 | Total threads: 4 |
Dashboard: http://127.0.0.1:40935/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:44747 | |
Local directory: /tmp/dask-worker-space/worker-e94fm1xd |
Comm: tcp://127.0.0.1:36922 | Total threads: 4 |
Dashboard: http://127.0.0.1:37963/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:35859 | |
Local directory: /tmp/dask-worker-space/worker-ojr287wf |
Comm: tcp://127.0.0.1:34865 | Total threads: 4 |
Dashboard: http://127.0.0.1:45463/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:40750 | |
Local directory: /tmp/dask-worker-space/worker-klgi0fsu |
Comm: tcp://127.0.0.1:43646 | Total threads: 4 |
Dashboard: http://127.0.0.1:37566/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:33023 | |
Local directory: /tmp/dask-worker-space/worker-5n_yxneh |
Comm: tcp://127.0.0.1:37287 | Total threads: 4 |
Dashboard: http://127.0.0.1:39893/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37286 | |
Local directory: /tmp/dask-worker-space/worker-fylu7xa9 |
Comm: tcp://127.0.0.1:45201 | Total threads: 4 |
Dashboard: http://127.0.0.1:45522/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:43900 | |
Local directory: /tmp/dask-worker-space/worker-88e2eac3 |
Comm: tcp://127.0.0.1:33757 | Total threads: 4 |
Dashboard: http://127.0.0.1:39897/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:43096 | |
Local directory: /tmp/dask-worker-space/worker-xhs42tys |
Comm: tcp://127.0.0.1:33615 | Total threads: 4 |
Dashboard: http://127.0.0.1:44887/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:40384 | |
Local directory: /tmp/dask-worker-space/worker-yyxkqp5e |
Comm: tcp://127.0.0.1:41702 | Total threads: 4 |
Dashboard: http://127.0.0.1:38251/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:38528 | |
Local directory: /tmp/dask-worker-space/worker-37p37i67 |
Comm: tcp://127.0.0.1:44992 | Total threads: 4 |
Dashboard: http://127.0.0.1:44827/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:44918 | |
Local directory: /tmp/dask-worker-space/worker-dlyur5ga |
Comm: tcp://127.0.0.1:46148 | Total threads: 4 |
Dashboard: http://127.0.0.1:33315/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:33885 | |
Local directory: /tmp/dask-worker-space/worker-b5c1hgq4 |
Comm: tcp://127.0.0.1:46484 | Total threads: 4 |
Dashboard: http://127.0.0.1:34487/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:38498 | |
Local directory: /tmp/dask-worker-space/worker-66xx1x7u |
Comm: tcp://127.0.0.1:38996 | Total threads: 4 |
Dashboard: http://127.0.0.1:41794/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:32907 | |
Local directory: /tmp/dask-worker-space/worker-myzf_0dp |
Comm: tcp://127.0.0.1:37441 | Total threads: 4 |
Dashboard: http://127.0.0.1:37668/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:46569 | |
Local directory: /tmp/dask-worker-space/worker-cngfiaur |
Comm: tcp://127.0.0.1:36471 | Total threads: 4 |
Dashboard: http://127.0.0.1:40569/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:43676 | |
Local directory: /tmp/dask-worker-space/worker-47r8bhoh |
Comm: tcp://127.0.0.1:35623 | Total threads: 4 |
Dashboard: http://127.0.0.1:40380/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:46059 | |
Local directory: /tmp/dask-worker-space/worker-f4cn41on |
Comm: tcp://127.0.0.1:36800 | Total threads: 4 |
Dashboard: http://127.0.0.1:37386/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:36604 | |
Local directory: /tmp/dask-worker-space/worker-3y92fzc0 |
Comm: tcp://127.0.0.1:43465 | Total threads: 4 |
Dashboard: http://127.0.0.1:46572/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:34784 | |
Local directory: /tmp/dask-worker-space/worker-v59y_k8a |
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 21.701594591140747 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 22.256991863250732 seconds 1 merging gridT ['votemper'] took 0.9503800868988037 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 44.17451572418213 seconds 2 merging gridV ['vomecrty'] took 1.3552777767181396 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.671555757522583 seconds 3 merging icemod ['sivolu', 'sivelv'] took 0.9720711708068848 seconds param e3v_0 will be included in data param mask2d will be included in data param nav_lat will be included in data param mask will be included in data param e1v will be included in data param nav_lon will be included in data CPU times: user 1min 41s, sys: 20.6 s, total: 2min 2s Wall time: 3min 1s
<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 e3v_0 (z, y, x) float64 dask.array<chunksize=(150, 13, 6560), meta=np.ndarray> mask2d (y, x) bool dask.array<chunksize=(13, 6560), meta=np.ndarray> mask (z, y, x) bool dask.array<chunksize=(150, 13, 6560), meta=np.ndarray> e1v (y, x) float64 dask.array<chunksize=(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 e3v_0 (z, y, x) float64 dask.array<chunksize=(150, 2, 601), meta=np.ndarray> mask2d (y, x) bool dask.array<chunksize=(2, 601), meta=np.ndarray> mask (z, y, x) bool dask.array<chunksize=(150, 2, 601), meta=np.ndarray> e1v (y, x) float64 dask.array<chunksize=(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 e3v_0 (z, y, x) float64 dask.array<chunksize=(150, 1, 421), meta=np.ndarray> mask2d (y, x) bool dask.array<chunksize=(1, 421), meta=np.ndarray> mask (z, y, x) bool dask.array<chunksize=(150, 1, 421), meta=np.ndarray> e1v (y, x) float64 dask.array<chunksize=(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 e3v_0 (z, y, x) float64 dask.array<chunksize=(150, 2, 146), meta=np.ndarray> mask2d (y, x) bool dask.array<chunksize=(2, 146), meta=np.ndarray> mask (z, y, x) bool dask.array<chunksize=(150, 2, 146), meta=np.ndarray> e1v (y, x) float64 dask.array<chunksize=(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 29.3 s, sys: 2.86 s, total: 32.1 s Wall time: 36.1 s