%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= irene4873.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 irene4873.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= 02 outputpath= ../results/SEDNA_DELTA_MONITOR/ daskreport= ../results/dask/6419114irene4873.c-irene.mg1.tgcc.ccc.cea.fr_SEDNA_DELTA_MONITOR_02M_Fluxnet/ CPU times: user 3.91 s, sys: 743 ms, total: 4.65 s Wall time: 1min 42s
Client-f2f03eac-13d8-11ed-9240-080038b93993
Connection method: Cluster object | Cluster type: distributed.LocalCluster |
Dashboard: http://127.0.0.1:8787/status |
5e0c4b7e
Dashboard: http://127.0.0.1:8787/status | Workers: 64 |
Total threads: 256 | Total memory: 251.06 GiB |
Status: running | Using processes: True |
Scheduler-28e41f58-8d42-4d03-ab71-49fb723d3d86
Comm: tcp://127.0.0.1:38916 | 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:43860 | Total threads: 4 |
Dashboard: http://127.0.0.1:40826/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:44480 | |
Local directory: /tmp/dask-worker-space/worker-eoh0h0io |
Comm: tcp://127.0.0.1:39971 | Total threads: 4 |
Dashboard: http://127.0.0.1:35104/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:46179 | |
Local directory: /tmp/dask-worker-space/worker-cya36dwy |
Comm: tcp://127.0.0.1:38210 | Total threads: 4 |
Dashboard: http://127.0.0.1:33618/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:45606 | |
Local directory: /tmp/dask-worker-space/worker-7krm031a |
Comm: tcp://127.0.0.1:44300 | Total threads: 4 |
Dashboard: http://127.0.0.1:35556/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37164 | |
Local directory: /tmp/dask-worker-space/worker-q2abb6vr |
Comm: tcp://127.0.0.1:35492 | Total threads: 4 |
Dashboard: http://127.0.0.1:45559/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:42266 | |
Local directory: /tmp/dask-worker-space/worker-2wtiv1fs |
Comm: tcp://127.0.0.1:43121 | Total threads: 4 |
Dashboard: http://127.0.0.1:46064/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:44035 | |
Local directory: /tmp/dask-worker-space/worker-zdv_4t1t |
Comm: tcp://127.0.0.1:33375 | Total threads: 4 |
Dashboard: http://127.0.0.1:46659/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:43878 | |
Local directory: /tmp/dask-worker-space/worker-qxbff3uv |
Comm: tcp://127.0.0.1:39346 | Total threads: 4 |
Dashboard: http://127.0.0.1:43613/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:38975 | |
Local directory: /tmp/dask-worker-space/worker-1fv_tfn7 |
Comm: tcp://127.0.0.1:34567 | Total threads: 4 |
Dashboard: http://127.0.0.1:36106/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:36148 | |
Local directory: /tmp/dask-worker-space/worker-cl66rjbv |
Comm: tcp://127.0.0.1:45836 | Total threads: 4 |
Dashboard: http://127.0.0.1:39180/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:40027 | |
Local directory: /tmp/dask-worker-space/worker-j4qbvypn |
Comm: tcp://127.0.0.1:44743 | Total threads: 4 |
Dashboard: http://127.0.0.1:34566/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:39134 | |
Local directory: /tmp/dask-worker-space/worker-_f3tagtv |
Comm: tcp://127.0.0.1:33898 | Total threads: 4 |
Dashboard: http://127.0.0.1:38878/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:35501 | |
Local directory: /tmp/dask-worker-space/worker-eaevsdko |
Comm: tcp://127.0.0.1:39154 | Total threads: 4 |
Dashboard: http://127.0.0.1:40448/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:41362 | |
Local directory: /tmp/dask-worker-space/worker-ixiunbsv |
Comm: tcp://127.0.0.1:45945 | Total threads: 4 |
Dashboard: http://127.0.0.1:44089/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:46250 | |
Local directory: /tmp/dask-worker-space/worker-t4lx17ek |
Comm: tcp://127.0.0.1:43978 | Total threads: 4 |
Dashboard: http://127.0.0.1:45746/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:35347 | |
Local directory: /tmp/dask-worker-space/worker-0pvramol |
Comm: tcp://127.0.0.1:39981 | Total threads: 4 |
Dashboard: http://127.0.0.1:46388/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:42616 | |
Local directory: /tmp/dask-worker-space/worker-9e1wud1e |
Comm: tcp://127.0.0.1:34460 | Total threads: 4 |
Dashboard: http://127.0.0.1:45402/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:39291 | |
Local directory: /tmp/dask-worker-space/worker-h3ulx14u |
Comm: tcp://127.0.0.1:36125 | Total threads: 4 |
Dashboard: http://127.0.0.1:37550/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:40308 | |
Local directory: /tmp/dask-worker-space/worker-yxm_mvsj |
Comm: tcp://127.0.0.1:38844 | Total threads: 4 |
Dashboard: http://127.0.0.1:39821/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:38930 | |
Local directory: /tmp/dask-worker-space/worker-iexg7rbk |
Comm: tcp://127.0.0.1:45473 | Total threads: 4 |
Dashboard: http://127.0.0.1:39600/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:33918 | |
Local directory: /tmp/dask-worker-space/worker-4aavqnxh |
Comm: tcp://127.0.0.1:35545 | Total threads: 4 |
Dashboard: http://127.0.0.1:46234/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:42878 | |
Local directory: /tmp/dask-worker-space/worker-5mxpq743 |
Comm: tcp://127.0.0.1:35312 | Total threads: 4 |
Dashboard: http://127.0.0.1:41408/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:40548 | |
Local directory: /tmp/dask-worker-space/worker-jy28vds7 |
Comm: tcp://127.0.0.1:40527 | Total threads: 4 |
Dashboard: http://127.0.0.1:35020/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:34066 | |
Local directory: /tmp/dask-worker-space/worker-jgd9yo3w |
Comm: tcp://127.0.0.1:44890 | Total threads: 4 |
Dashboard: http://127.0.0.1:36452/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:39396 | |
Local directory: /tmp/dask-worker-space/worker-_icpk80g |
Comm: tcp://127.0.0.1:41530 | Total threads: 4 |
Dashboard: http://127.0.0.1:35778/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:45270 | |
Local directory: /tmp/dask-worker-space/worker-16slrrlq |
Comm: tcp://127.0.0.1:45838 | Total threads: 4 |
Dashboard: http://127.0.0.1:41677/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:40625 | |
Local directory: /tmp/dask-worker-space/worker-_jll3ba7 |
Comm: tcp://127.0.0.1:42348 | Total threads: 4 |
Dashboard: http://127.0.0.1:46136/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:38982 | |
Local directory: /tmp/dask-worker-space/worker-vmwm3tzx |
Comm: tcp://127.0.0.1:44306 | Total threads: 4 |
Dashboard: http://127.0.0.1:35583/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37048 | |
Local directory: /tmp/dask-worker-space/worker-2q2s5v4w |
Comm: tcp://127.0.0.1:44468 | Total threads: 4 |
Dashboard: http://127.0.0.1:45090/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:36531 | |
Local directory: /tmp/dask-worker-space/worker-cjwezs6l |
Comm: tcp://127.0.0.1:34373 | Total threads: 4 |
Dashboard: http://127.0.0.1:45019/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:42613 | |
Local directory: /tmp/dask-worker-space/worker-041rqdfk |
Comm: tcp://127.0.0.1:36041 | Total threads: 4 |
Dashboard: http://127.0.0.1:41693/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37523 | |
Local directory: /tmp/dask-worker-space/worker-ul4abr8s |
Comm: tcp://127.0.0.1:41160 | Total threads: 4 |
Dashboard: http://127.0.0.1:45687/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:35651 | |
Local directory: /tmp/dask-worker-space/worker-6mvix__p |
Comm: tcp://127.0.0.1:43335 | Total threads: 4 |
Dashboard: http://127.0.0.1:44879/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:38520 | |
Local directory: /tmp/dask-worker-space/worker-4qnd6muj |
Comm: tcp://127.0.0.1:42087 | Total threads: 4 |
Dashboard: http://127.0.0.1:36606/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:39711 | |
Local directory: /tmp/dask-worker-space/worker-ajqpxidz |
Comm: tcp://127.0.0.1:35829 | Total threads: 4 |
Dashboard: http://127.0.0.1:40951/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37368 | |
Local directory: /tmp/dask-worker-space/worker-odvxujtg |
Comm: tcp://127.0.0.1:36514 | Total threads: 4 |
Dashboard: http://127.0.0.1:44514/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:33343 | |
Local directory: /tmp/dask-worker-space/worker-fygn3nc4 |
Comm: tcp://127.0.0.1:44646 | Total threads: 4 |
Dashboard: http://127.0.0.1:37500/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37242 | |
Local directory: /tmp/dask-worker-space/worker-l7i91mbt |
Comm: tcp://127.0.0.1:44427 | Total threads: 4 |
Dashboard: http://127.0.0.1:38499/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:33481 | |
Local directory: /tmp/dask-worker-space/worker-g_5qtlh0 |
Comm: tcp://127.0.0.1:39371 | Total threads: 4 |
Dashboard: http://127.0.0.1:45427/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:35143 | |
Local directory: /tmp/dask-worker-space/worker-oksdkcix |
Comm: tcp://127.0.0.1:46654 | Total threads: 4 |
Dashboard: http://127.0.0.1:46593/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37990 | |
Local directory: /tmp/dask-worker-space/worker-a5h0uq50 |
Comm: tcp://127.0.0.1:35421 | Total threads: 4 |
Dashboard: http://127.0.0.1:42739/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:34120 | |
Local directory: /tmp/dask-worker-space/worker-jmalxeqh |
Comm: tcp://127.0.0.1:39982 | Total threads: 4 |
Dashboard: http://127.0.0.1:38283/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:34374 | |
Local directory: /tmp/dask-worker-space/worker-f22sra_y |
Comm: tcp://127.0.0.1:43640 | Total threads: 4 |
Dashboard: http://127.0.0.1:41193/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:40180 | |
Local directory: /tmp/dask-worker-space/worker-4f3liwts |
Comm: tcp://127.0.0.1:34322 | Total threads: 4 |
Dashboard: http://127.0.0.1:39618/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:44804 | |
Local directory: /tmp/dask-worker-space/worker-2s8kgyp_ |
Comm: tcp://127.0.0.1:35394 | Total threads: 4 |
Dashboard: http://127.0.0.1:34494/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37331 | |
Local directory: /tmp/dask-worker-space/worker-hpl7eqrg |
Comm: tcp://127.0.0.1:41252 | Total threads: 4 |
Dashboard: http://127.0.0.1:38888/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:43572 | |
Local directory: /tmp/dask-worker-space/worker-y98jiwji |
Comm: tcp://127.0.0.1:42454 | Total threads: 4 |
Dashboard: http://127.0.0.1:36515/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:39402 | |
Local directory: /tmp/dask-worker-space/worker-0cig6i9s |
Comm: tcp://127.0.0.1:40629 | Total threads: 4 |
Dashboard: http://127.0.0.1:34745/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37692 | |
Local directory: /tmp/dask-worker-space/worker-a88wuks7 |
Comm: tcp://127.0.0.1:41710 | Total threads: 4 |
Dashboard: http://127.0.0.1:42658/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:34803 | |
Local directory: /tmp/dask-worker-space/worker-n52j21v4 |
Comm: tcp://127.0.0.1:34822 | Total threads: 4 |
Dashboard: http://127.0.0.1:44798/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:32840 | |
Local directory: /tmp/dask-worker-space/worker-db_iopmt |
Comm: tcp://127.0.0.1:43522 | Total threads: 4 |
Dashboard: http://127.0.0.1:42445/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:40168 | |
Local directory: /tmp/dask-worker-space/worker-839v5fi9 |
Comm: tcp://127.0.0.1:46692 | Total threads: 4 |
Dashboard: http://127.0.0.1:45337/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:38477 | |
Local directory: /tmp/dask-worker-space/worker-bx9ao_ae |
Comm: tcp://127.0.0.1:45323 | Total threads: 4 |
Dashboard: http://127.0.0.1:36632/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:34286 | |
Local directory: /tmp/dask-worker-space/worker-syd_tvgo |
Comm: tcp://127.0.0.1:40863 | Total threads: 4 |
Dashboard: http://127.0.0.1:36349/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37805 | |
Local directory: /tmp/dask-worker-space/worker-kopxg282 |
Comm: tcp://127.0.0.1:35755 | Total threads: 4 |
Dashboard: http://127.0.0.1:44897/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:33848 | |
Local directory: /tmp/dask-worker-space/worker-3jex33dl |
Comm: tcp://127.0.0.1:37147 | Total threads: 4 |
Dashboard: http://127.0.0.1:36449/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:38978 | |
Local directory: /tmp/dask-worker-space/worker-6k0y9v76 |
Comm: tcp://127.0.0.1:42647 | Total threads: 4 |
Dashboard: http://127.0.0.1:42614/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:45155 | |
Local directory: /tmp/dask-worker-space/worker-p9ees95c |
Comm: tcp://127.0.0.1:36116 | Total threads: 4 |
Dashboard: http://127.0.0.1:46831/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:35815 | |
Local directory: /tmp/dask-worker-space/worker-xog3qq57 |
Comm: tcp://127.0.0.1:45992 | Total threads: 4 |
Dashboard: http://127.0.0.1:44266/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:43492 | |
Local directory: /tmp/dask-worker-space/worker-5t8vyqqt |
Comm: tcp://127.0.0.1:35428 | Total threads: 4 |
Dashboard: http://127.0.0.1:40630/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:45925 | |
Local directory: /tmp/dask-worker-space/worker-rfu_hyj9 |
Comm: tcp://127.0.0.1:45676 | Total threads: 4 |
Dashboard: http://127.0.0.1:41461/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:43774 | |
Local directory: /tmp/dask-worker-space/worker-5a1c6qlz |
Comm: tcp://127.0.0.1:37111 | Total threads: 4 |
Dashboard: http://127.0.0.1:46536/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:34978 | |
Local directory: /tmp/dask-worker-space/worker-m172lmd2 |
Comm: tcp://127.0.0.1:33884 | Total threads: 4 |
Dashboard: http://127.0.0.1:44428/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:38964 | |
Local directory: /tmp/dask-worker-space/worker-0durtsqc |
Comm: tcp://127.0.0.1:44402 | Total threads: 4 |
Dashboard: http://127.0.0.1:39912/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:39533 | |
Local directory: /tmp/dask-worker-space/worker-jnatw7zv |
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/201202/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 37.36675500869751 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/201202/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 35.56048917770386 seconds 1 merging gridT ['votemper'] took 0.8256657123565674 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/201202/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 42.50568342208862 seconds 2 merging gridV ['vomecrty'] took 0.8691177368164062 seconds 3 read icemod ['sivelv', 'sivolu'] 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/201202/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 31.724037408828735 seconds 3 merging icemod ['sivelv', 'sivolu'] took 0.9061923027038574 seconds param mask will be included in data param nav_lon will be included in data param e1v will be included in data param nav_lat will be included in data param mask2d will be included in data param e3v_0 will be included in data CPU times: user 1min 43s, sys: 22.8 s, total: 2min 6s Wall time: 3min 27s
<xarray.Dataset> Dimensions: (t: 28, z: 150, y: 6540, x: 6560) Coordinates: time_centered (t) object dask.array<chunksize=(1,), meta=np.ndarray> * t (t) object 2012-02-01 12:00:00 ... 2012-02-28 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 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> mask2d (y, x) bool dask.array<chunksize=(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> sivelv (t, y, x) float32 dask.array<chunksize=(1, 13, 6560), meta=np.ndarray> sivolu (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-18 16:51:26 GMT title: ocean T grid variables uuid: 6ca3a74a-269a-44e2-91db-2aea875dbf84
%%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: 28, z: 150, y: 2, x: 601) Coordinates: time_centered (t) object dask.array<chunksize=(1,), meta=np.ndarray> * t (t) object 2012-02-01 12:00:00 ... 2012-02-28 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 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> mask2d (y, x) bool dask.array<chunksize=(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> sivelv (t, y, x, z) float32 dask.array<chunksize=(1, 2, 601, 150), meta=np.ndarray> sivolu (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-18 16:51:26 GMT title: ocean T grid variables uuid: 6ca3a74a-269a-44e2-91db-2aea875dbf84
#3 Start computing data= calc.Fluxnet(data) monitor.optimize_dataset(data) add optimise here once otimise can recognise
<xarray.Dataset> Dimensions: (t: 28) Coordinates: time_centered (t) object dask.array<chunksize=(1,), meta=np.ndarray> * t (t) object 2012-02-01 12:00:00 ... 2012-02-28 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-02-01_2012-02-28.nc save computed data at ../nc_results/SEDNA_DELTA_MONITOR/SEDNA_Fluxnet_integrals_FramS_All_Fluxnet2012-02-01_2012-02-28.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: 28, z: 150, y: 2, x: 421) Coordinates: time_centered (t) object dask.array<chunksize=(1,), meta=np.ndarray> * t (t) object 2012-02-01 12:00:00 ... 2012-02-28 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 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> mask2d (y, x) bool dask.array<chunksize=(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> sivelv (t, y, x, z) float32 dask.array<chunksize=(1, 1, 421, 150), meta=np.ndarray> sivolu (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-18 16:51:26 GMT title: ocean T grid variables uuid: 6ca3a74a-269a-44e2-91db-2aea875dbf84
#3 Start computing data= calc.Fluxnet(data) monitor.optimize_dataset(data) add optimise here once otimise can recognise
<xarray.Dataset> Dimensions: (t: 28) Coordinates: time_centered (t) object dask.array<chunksize=(1,), meta=np.ndarray> * t (t) object 2012-02-01 12:00:00 ... 2012-02-28 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-02-01_2012-02-28.nc save computed data at ../nc_results/SEDNA_DELTA_MONITOR/SEDNA_Fluxnet_integrals_Davis_Fluxnet2012-02-01_2012-02-28.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: 28, z: 150, y: 2, x: 146) Coordinates: time_centered (t) object dask.array<chunksize=(1,), meta=np.ndarray> * t (t) object 2012-02-01 12:00:00 ... 2012-02-28 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 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> mask2d (y, x) bool dask.array<chunksize=(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> sivelv (t, y, x, z) float32 dask.array<chunksize=(1, 2, 146, 150), meta=np.ndarray> sivolu (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-18 16:51:26 GMT title: ocean T grid variables uuid: 6ca3a74a-269a-44e2-91db-2aea875dbf84
#3 Start computing data= calc.Fluxnet(data) monitor.optimize_dataset(data) add optimise here once otimise can recognise
<xarray.Dataset> Dimensions: (t: 28) Coordinates: time_centered (t) object dask.array<chunksize=(1,), meta=np.ndarray> * t (t) object 2012-02-01 12:00:00 ... 2012-02-28 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-02-01_2012-02-28.nc save computed data at ../nc_results/SEDNA_DELTA_MONITOR/SEDNA_Fluxnet_integrals_Bering_Fluxnet2012-02-01_2012-02-28.nc completed CPU times: user 27 s, sys: 2.6 s, total: 29.6 s Wall time: 35.2 s