%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= irene4356.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 irene4356.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/6419280irene4356.c-irene.mg1.tgcc.ccc.cea.fr_SEDNA_DELTA_MONITOR_02M_Mooring/ CPU times: user 3.86 s, sys: 746 ms, total: 4.61 s Wall time: 1min 36s
Client-bc588fcd-13da-11ed-bf8c-080038b938b9
Connection method: Cluster object | Cluster type: distributed.LocalCluster |
Dashboard: http://127.0.0.1:8787/status |
006523d7
Dashboard: http://127.0.0.1:8787/status | Workers: 64 |
Total threads: 256 | Total memory: 251.06 GiB |
Status: running | Using processes: True |
Scheduler-eea656d9-7dd4-480d-8467-96a4262aa046
Comm: tcp://127.0.0.1:40395 | 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:43873 | Total threads: 4 |
Dashboard: http://127.0.0.1:36304/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37929 | |
Local directory: /tmp/dask-worker-space/worker-gsps5lxy |
Comm: tcp://127.0.0.1:34917 | Total threads: 4 |
Dashboard: http://127.0.0.1:33278/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:41306 | |
Local directory: /tmp/dask-worker-space/worker-2xxyo4tz |
Comm: tcp://127.0.0.1:46259 | Total threads: 4 |
Dashboard: http://127.0.0.1:35371/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37264 | |
Local directory: /tmp/dask-worker-space/worker-gbfues0p |
Comm: tcp://127.0.0.1:35679 | Total threads: 4 |
Dashboard: http://127.0.0.1:45210/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:36200 | |
Local directory: /tmp/dask-worker-space/worker-v7x_xh00 |
Comm: tcp://127.0.0.1:44246 | Total threads: 4 |
Dashboard: http://127.0.0.1:35131/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:44139 | |
Local directory: /tmp/dask-worker-space/worker-x550wzrr |
Comm: tcp://127.0.0.1:40916 | Total threads: 4 |
Dashboard: http://127.0.0.1:41198/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:45219 | |
Local directory: /tmp/dask-worker-space/worker-1xrl0tmp |
Comm: tcp://127.0.0.1:44335 | Total threads: 4 |
Dashboard: http://127.0.0.1:41942/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:45783 | |
Local directory: /tmp/dask-worker-space/worker-o3uekeil |
Comm: tcp://127.0.0.1:33086 | Total threads: 4 |
Dashboard: http://127.0.0.1:36925/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:40292 | |
Local directory: /tmp/dask-worker-space/worker-rtv7s76f |
Comm: tcp://127.0.0.1:34165 | Total threads: 4 |
Dashboard: http://127.0.0.1:37001/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:39652 | |
Local directory: /tmp/dask-worker-space/worker-6u5zct47 |
Comm: tcp://127.0.0.1:40647 | Total threads: 4 |
Dashboard: http://127.0.0.1:37088/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:45393 | |
Local directory: /tmp/dask-worker-space/worker-10q8rpa2 |
Comm: tcp://127.0.0.1:46529 | Total threads: 4 |
Dashboard: http://127.0.0.1:46847/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:33316 | |
Local directory: /tmp/dask-worker-space/worker-tidzr9_k |
Comm: tcp://127.0.0.1:44942 | Total threads: 4 |
Dashboard: http://127.0.0.1:42428/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37661 | |
Local directory: /tmp/dask-worker-space/worker-9qs9t37f |
Comm: tcp://127.0.0.1:32807 | Total threads: 4 |
Dashboard: http://127.0.0.1:44030/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:33102 | |
Local directory: /tmp/dask-worker-space/worker-_vb411q0 |
Comm: tcp://127.0.0.1:41065 | Total threads: 4 |
Dashboard: http://127.0.0.1:41160/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:39523 | |
Local directory: /tmp/dask-worker-space/worker-3uy24j35 |
Comm: tcp://127.0.0.1:37007 | Total threads: 4 |
Dashboard: http://127.0.0.1:41560/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:43200 | |
Local directory: /tmp/dask-worker-space/worker-28m_gfgw |
Comm: tcp://127.0.0.1:39799 | Total threads: 4 |
Dashboard: http://127.0.0.1:45664/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37112 | |
Local directory: /tmp/dask-worker-space/worker-hk0kcs7h |
Comm: tcp://127.0.0.1:36741 | Total threads: 4 |
Dashboard: http://127.0.0.1:34752/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:43036 | |
Local directory: /tmp/dask-worker-space/worker-i5zk06a0 |
Comm: tcp://127.0.0.1:41355 | Total threads: 4 |
Dashboard: http://127.0.0.1:37228/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:40208 | |
Local directory: /tmp/dask-worker-space/worker-izrqhmws |
Comm: tcp://127.0.0.1:45424 | Total threads: 4 |
Dashboard: http://127.0.0.1:36623/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:33470 | |
Local directory: /tmp/dask-worker-space/worker-m9yf1u11 |
Comm: tcp://127.0.0.1:35270 | Total threads: 4 |
Dashboard: http://127.0.0.1:41856/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:44057 | |
Local directory: /tmp/dask-worker-space/worker-uur9c7h7 |
Comm: tcp://127.0.0.1:44072 | Total threads: 4 |
Dashboard: http://127.0.0.1:43369/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:45224 | |
Local directory: /tmp/dask-worker-space/worker-yepbnf6g |
Comm: tcp://127.0.0.1:40406 | Total threads: 4 |
Dashboard: http://127.0.0.1:46578/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:40187 | |
Local directory: /tmp/dask-worker-space/worker-zz7nzino |
Comm: tcp://127.0.0.1:45705 | Total threads: 4 |
Dashboard: http://127.0.0.1:42905/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:38673 | |
Local directory: /tmp/dask-worker-space/worker-1l485c7z |
Comm: tcp://127.0.0.1:42284 | Total threads: 4 |
Dashboard: http://127.0.0.1:34538/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:43139 | |
Local directory: /tmp/dask-worker-space/worker-tstb6rfy |
Comm: tcp://127.0.0.1:33648 | Total threads: 4 |
Dashboard: http://127.0.0.1:44188/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:36359 | |
Local directory: /tmp/dask-worker-space/worker-dlp84nih |
Comm: tcp://127.0.0.1:37069 | Total threads: 4 |
Dashboard: http://127.0.0.1:34058/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:39432 | |
Local directory: /tmp/dask-worker-space/worker-jbi5bi6v |
Comm: tcp://127.0.0.1:41802 | Total threads: 4 |
Dashboard: http://127.0.0.1:40119/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:40209 | |
Local directory: /tmp/dask-worker-space/worker-cdscl_f0 |
Comm: tcp://127.0.0.1:45420 | Total threads: 4 |
Dashboard: http://127.0.0.1:44687/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:34891 | |
Local directory: /tmp/dask-worker-space/worker-u9w572ry |
Comm: tcp://127.0.0.1:32993 | Total threads: 4 |
Dashboard: http://127.0.0.1:38153/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:40141 | |
Local directory: /tmp/dask-worker-space/worker-d4pqhf0e |
Comm: tcp://127.0.0.1:38918 | Total threads: 4 |
Dashboard: http://127.0.0.1:33733/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:36902 | |
Local directory: /tmp/dask-worker-space/worker-6du4pxv4 |
Comm: tcp://127.0.0.1:43501 | Total threads: 4 |
Dashboard: http://127.0.0.1:38047/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:40848 | |
Local directory: /tmp/dask-worker-space/worker-xniob00n |
Comm: tcp://127.0.0.1:34859 | Total threads: 4 |
Dashboard: http://127.0.0.1:43471/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:34625 | |
Local directory: /tmp/dask-worker-space/worker-a562q39s |
Comm: tcp://127.0.0.1:46651 | Total threads: 4 |
Dashboard: http://127.0.0.1:46280/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:43965 | |
Local directory: /tmp/dask-worker-space/worker-k2efes12 |
Comm: tcp://127.0.0.1:36659 | Total threads: 4 |
Dashboard: http://127.0.0.1:36152/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:39630 | |
Local directory: /tmp/dask-worker-space/worker-jrsm7j_5 |
Comm: tcp://127.0.0.1:36267 | Total threads: 4 |
Dashboard: http://127.0.0.1:44642/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:35133 | |
Local directory: /tmp/dask-worker-space/worker-h1mg34mq |
Comm: tcp://127.0.0.1:44103 | Total threads: 4 |
Dashboard: http://127.0.0.1:36203/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:35605 | |
Local directory: /tmp/dask-worker-space/worker-hbr4u5zu |
Comm: tcp://127.0.0.1:33080 | Total threads: 4 |
Dashboard: http://127.0.0.1:44888/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:38956 | |
Local directory: /tmp/dask-worker-space/worker-5c4u7az1 |
Comm: tcp://127.0.0.1:43730 | Total threads: 4 |
Dashboard: http://127.0.0.1:46232/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:44332 | |
Local directory: /tmp/dask-worker-space/worker-4f009lf_ |
Comm: tcp://127.0.0.1:39132 | Total threads: 4 |
Dashboard: http://127.0.0.1:38214/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:39712 | |
Local directory: /tmp/dask-worker-space/worker-uy3j7z_u |
Comm: tcp://127.0.0.1:46272 | Total threads: 4 |
Dashboard: http://127.0.0.1:34264/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:46630 | |
Local directory: /tmp/dask-worker-space/worker-z02gfcr1 |
Comm: tcp://127.0.0.1:38061 | Total threads: 4 |
Dashboard: http://127.0.0.1:38912/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:39954 | |
Local directory: /tmp/dask-worker-space/worker-f5ftjg85 |
Comm: tcp://127.0.0.1:40291 | Total threads: 4 |
Dashboard: http://127.0.0.1:38893/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37739 | |
Local directory: /tmp/dask-worker-space/worker-l7crxdig |
Comm: tcp://127.0.0.1:39023 | Total threads: 4 |
Dashboard: http://127.0.0.1:37791/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:41613 | |
Local directory: /tmp/dask-worker-space/worker-vps5l9r6 |
Comm: tcp://127.0.0.1:42528 | Total threads: 4 |
Dashboard: http://127.0.0.1:40980/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:35660 | |
Local directory: /tmp/dask-worker-space/worker-pg4cso3a |
Comm: tcp://127.0.0.1:44847 | Total threads: 4 |
Dashboard: http://127.0.0.1:46332/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:44808 | |
Local directory: /tmp/dask-worker-space/worker-za1ityxo |
Comm: tcp://127.0.0.1:38618 | Total threads: 4 |
Dashboard: http://127.0.0.1:37591/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:33331 | |
Local directory: /tmp/dask-worker-space/worker-k8lqeds_ |
Comm: tcp://127.0.0.1:44428 | Total threads: 4 |
Dashboard: http://127.0.0.1:41655/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:45990 | |
Local directory: /tmp/dask-worker-space/worker-2fsafk_p |
Comm: tcp://127.0.0.1:40346 | Total threads: 4 |
Dashboard: http://127.0.0.1:38437/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37788 | |
Local directory: /tmp/dask-worker-space/worker-b93tlm03 |
Comm: tcp://127.0.0.1:46326 | Total threads: 4 |
Dashboard: http://127.0.0.1:42471/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:41346 | |
Local directory: /tmp/dask-worker-space/worker-ctskrqya |
Comm: tcp://127.0.0.1:33373 | Total threads: 4 |
Dashboard: http://127.0.0.1:39313/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:33934 | |
Local directory: /tmp/dask-worker-space/worker-9bp6yvmi |
Comm: tcp://127.0.0.1:38222 | Total threads: 4 |
Dashboard: http://127.0.0.1:40443/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:40570 | |
Local directory: /tmp/dask-worker-space/worker-h47a2py2 |
Comm: tcp://127.0.0.1:41993 | Total threads: 4 |
Dashboard: http://127.0.0.1:43207/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:33883 | |
Local directory: /tmp/dask-worker-space/worker-c2r634t9 |
Comm: tcp://127.0.0.1:38730 | Total threads: 4 |
Dashboard: http://127.0.0.1:37188/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:32771 | |
Local directory: /tmp/dask-worker-space/worker-8iu03e3n |
Comm: tcp://127.0.0.1:41106 | Total threads: 4 |
Dashboard: http://127.0.0.1:45396/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:45890 | |
Local directory: /tmp/dask-worker-space/worker-4u0nf8ha |
Comm: tcp://127.0.0.1:37817 | Total threads: 4 |
Dashboard: http://127.0.0.1:36239/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:39847 | |
Local directory: /tmp/dask-worker-space/worker-d17y3bn1 |
Comm: tcp://127.0.0.1:45621 | Total threads: 4 |
Dashboard: http://127.0.0.1:46711/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:42371 | |
Local directory: /tmp/dask-worker-space/worker-nfbd8m88 |
Comm: tcp://127.0.0.1:38738 | Total threads: 4 |
Dashboard: http://127.0.0.1:39498/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:43755 | |
Local directory: /tmp/dask-worker-space/worker-9ynz1pw2 |
Comm: tcp://127.0.0.1:46443 | Total threads: 4 |
Dashboard: http://127.0.0.1:39686/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:46539 | |
Local directory: /tmp/dask-worker-space/worker-a5ulepo0 |
Comm: tcp://127.0.0.1:42248 | Total threads: 4 |
Dashboard: http://127.0.0.1:38289/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:45073 | |
Local directory: /tmp/dask-worker-space/worker-ns8ppp25 |
Comm: tcp://127.0.0.1:33795 | Total threads: 4 |
Dashboard: http://127.0.0.1:40254/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:43215 | |
Local directory: /tmp/dask-worker-space/worker-w51gumr8 |
Comm: tcp://127.0.0.1:42498 | Total threads: 4 |
Dashboard: http://127.0.0.1:33607/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:46448 | |
Local directory: /tmp/dask-worker-space/worker-ldy4wkvi |
Comm: tcp://127.0.0.1:36150 | Total threads: 4 |
Dashboard: http://127.0.0.1:44960/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:35471 | |
Local directory: /tmp/dask-worker-space/worker-1phlej79 |
Comm: tcp://127.0.0.1:41694 | Total threads: 4 |
Dashboard: http://127.0.0.1:45500/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:33674 | |
Local directory: /tmp/dask-worker-space/worker-d34legau |
Comm: tcp://127.0.0.1:45979 | Total threads: 4 |
Dashboard: http://127.0.0.1:45270/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:44296 | |
Local directory: /tmp/dask-worker-space/worker-5btf_o46 |
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 | |
---|---|---|---|---|---|---|---|---|---|---|
Mooring_Arc_B | gridS.vosaline,gridT.votemper,param.depth,para... | data | Arc_B | Mooring | rainbow | {'vosaline': (28.0,34.4), 'votemper': (-2.0,2.0)} | None | x | ||
Mooring_Eur_B | gridS.vosaline,gridT.votemper,param.depth,para... | data | Eur_B | Mooring | rainbow | {'vosaline': (32.0,35.0), 'votemper': (-2.0,3.0)} | None | x |
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 23.494372844696045 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 21.156111478805542 seconds 1 merging gridT ['votemper'] took 0.8706753253936768 seconds param mask2d will be included in data param nav_lat will be included in data param mask will be included in data param nav_lon will be included in data param depth will be included in data ychunk= 5 calldatas_y_rechunk sum_num (13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12) start rechunking with (65, 65, 62, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 48) end of y_rechunk before rechunking t item (1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1) start rechunking t with 1 end of t_rechunk CPU times: user 47.5 s, sys: 12.5 s, total: 60 s Wall time: 1min 40s
<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 * 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=(65, 6560), meta=np.ndarray> nav_lat (y, x) float32 dask.array<chunksize=(65, 6560), meta=np.ndarray> mask (z, y, x) bool dask.array<chunksize=(150, 65, 6560), meta=np.ndarray> nav_lon (y, x) float32 dask.array<chunksize=(65, 6560), meta=np.ndarray> depth (z, y, x) float32 dask.array<chunksize=(150, 65, 6560), meta=np.ndarray> Data variables: vosaline (t, z, y, x) float32 dask.array<chunksize=(1, 150, 65, 6560), meta=np.ndarray> votemper (t, z, y, x) float32 dask.array<chunksize=(1, 150, 65, 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='Mooring_Arc_B' Zone='Arc_B' Plot='Mooring' cmap='rainbow' clabel='None' clim= {'vosaline': (28.0, 34.4), 'votemper': (-2.0, 2.0)} outputpath='../results/SEDNA_DELTA_MONITOR/' nc_outputpath='../nc_results/SEDNA_DELTA_MONITOR/' filename='SEDNA_Mooring_Arc_B_Mooring_Arc_B' data=monitor.optimize_dataset(data) #2 Zooming Data data= zoom.Arc_B(data) data=monitor.optimize_dataset(data)
<xarray.Dataset> Dimensions: (t: 28, z: 102) 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 int64 4967 x int64 2471 * z (z) int64 1 2 3 4 5 6 7 8 9 ... 94 95 96 97 98 99 100 101 102 mask2d bool dask.array<chunksize=(), meta=np.ndarray> nav_lat float32 dask.array<chunksize=(), meta=np.ndarray> mask (z) bool dask.array<chunksize=(102,), meta=np.ndarray> nav_lon float32 dask.array<chunksize=(), meta=np.ndarray> depth (z) float32 dask.array<chunksize=(102,), meta=np.ndarray> Data variables: vosaline (t, z) float32 dask.array<chunksize=(1, 102), meta=np.ndarray> votemper (t, z) float32 dask.array<chunksize=(1, 102), 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= data monitor.optimize_dataset(data) add optimise here once otimise can recognise
<xarray.Dataset> Dimensions: (t: 28, z: 102) 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 int64 4967 x int64 2471 * z (z) int64 1 2 3 4 5 6 7 8 9 ... 94 95 96 97 98 99 100 101 102 mask2d bool dask.array<chunksize=(), meta=np.ndarray> nav_lat float32 dask.array<chunksize=(), meta=np.ndarray> mask (z) bool dask.array<chunksize=(102,), meta=np.ndarray> nav_lon float32 dask.array<chunksize=(), meta=np.ndarray> depth (z) float32 dask.array<chunksize=(102,), meta=np.ndarray> Data variables: vosaline (t, z) float32 dask.array<chunksize=(1, 102), meta=np.ndarray> votemper (t, z) float32 dask.array<chunksize=(1, 102), 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
#4 Saving SEDNA_Mooring_Arc_B_Mooring_Arc_B 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_Mooring_Arc_B_Mooring_Arc_B2012-02-01_2012-02-28.nc save computed data at ../nc_results/SEDNA_DELTA_MONITOR/SEDNA_Mooring_Arc_B_Mooring_Arc_B2012-02-01_2012-02-28.nc completed Value='Mooring_Eur_B' Zone='Eur_B' Plot='Mooring' cmap='rainbow' clabel='None' clim= {'vosaline': (32.0, 35.0), 'votemper': (-2.0, 3.0)} outputpath='../results/SEDNA_DELTA_MONITOR/' nc_outputpath='../nc_results/SEDNA_DELTA_MONITOR/' filename='SEDNA_Mooring_Eur_B_Mooring_Eur_B' data=monitor.optimize_dataset(data) #2 Zooming Data data= zoom.Eur_B(data) data=monitor.optimize_dataset(data)
<xarray.Dataset> Dimensions: (t: 28, z: 102) 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 int64 3621 x int64 2495 * z (z) int64 1 2 3 4 5 6 7 8 9 ... 94 95 96 97 98 99 100 101 102 mask2d bool dask.array<chunksize=(), meta=np.ndarray> nav_lat float32 dask.array<chunksize=(), meta=np.ndarray> mask (z) bool dask.array<chunksize=(102,), meta=np.ndarray> nav_lon float32 dask.array<chunksize=(), meta=np.ndarray> depth (z) float32 dask.array<chunksize=(102,), meta=np.ndarray> Data variables: vosaline (t, z) float32 dask.array<chunksize=(1, 102), meta=np.ndarray> votemper (t, z) float32 dask.array<chunksize=(1, 102), 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= data monitor.optimize_dataset(data) add optimise here once otimise can recognise
<xarray.Dataset> Dimensions: (t: 28, z: 102) 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 int64 3621 x int64 2495 * z (z) int64 1 2 3 4 5 6 7 8 9 ... 94 95 96 97 98 99 100 101 102 mask2d bool dask.array<chunksize=(), meta=np.ndarray> nav_lat float32 dask.array<chunksize=(), meta=np.ndarray> mask (z) bool dask.array<chunksize=(102,), meta=np.ndarray> nav_lon float32 dask.array<chunksize=(), meta=np.ndarray> depth (z) float32 dask.array<chunksize=(102,), meta=np.ndarray> Data variables: vosaline (t, z) float32 dask.array<chunksize=(1, 102), meta=np.ndarray> votemper (t, z) float32 dask.array<chunksize=(1, 102), 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
#4 Saving SEDNA_Mooring_Eur_B_Mooring_Eur_B 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_Mooring_Eur_B_Mooring_Eur_B2012-02-01_2012-02-28.nc save computed data at ../nc_results/SEDNA_DELTA_MONITOR/SEDNA_Mooring_Eur_B_Mooring_Eur_B2012-02-01_2012-02-28.nc completed CPU times: user 13 s, sys: 2.29 s, total: 15.3 s Wall time: 25.3 s