import xarray as xr
import glob
from distributed import Client
import xwrf
client = Client("tcp://127.0.0.1:40447")
client
Loading...
files = glob.glob("/data/project/ARM_Summer_School_2024_Data/lasso_tutorial/cacti/lasso-cacti/20190129/eda09/base/les/subset_d4/corlasso_met_*")
ds = xr.open_dataset(files[0])
ds = xr.open_mfdataset(files[:10],
chunks={},
coords="minimal")
/opt/conda/lib/python3.11/site-packages/distributed/client.py:3163: UserWarning: Sending large graph of size 28.39 MiB.
This may cause some slowdown.
Consider scattering data ahead of time and using futures.
warnings.warn(
/opt/conda/lib/python3.11/site-packages/distributed/client.py:3163: UserWarning: Sending large graph of size 28.39 MiB.
This may cause some slowdown.
Consider scattering data ahead of time and using futures.
warnings.warn(
/opt/conda/lib/python3.11/site-packages/distributed/client.py:3163: UserWarning: Sending large graph of size 28.39 MiB.
This may cause some slowdown.
Consider scattering data ahead of time and using futures.
warnings.warn(
/opt/conda/lib/python3.11/site-packages/distributed/client.py:3163: UserWarning: Sending large graph of size 28.39 MiB.
This may cause some slowdown.
Consider scattering data ahead of time and using futures.
warnings.warn(
/opt/conda/lib/python3.11/site-packages/distributed/client.py:3163: UserWarning: Sending large graph of size 28.39 MiB.
This may cause some slowdown.
Consider scattering data ahead of time and using futures.
warnings.warn(
/opt/conda/lib/python3.11/site-packages/distributed/client.py:3163: UserWarning: Sending large graph of size 28.39 MiB.
This may cause some slowdown.
Consider scattering data ahead of time and using futures.
warnings.warn(
/opt/conda/lib/python3.11/site-packages/distributed/client.py:3163: UserWarning: Sending large graph of size 28.39 MiB.
This may cause some slowdown.
Consider scattering data ahead of time and using futures.
warnings.warn(
/opt/conda/lib/python3.11/site-packages/distributed/client.py:3163: UserWarning: Sending large graph of size 28.39 MiB.
This may cause some slowdown.
Consider scattering data ahead of time and using futures.
warnings.warn(
/opt/conda/lib/python3.11/site-packages/distributed/client.py:3163: UserWarning: Sending large graph of size 28.39 MiB.
This may cause some slowdown.
Consider scattering data ahead of time and using futures.
warnings.warn(
/opt/conda/lib/python3.11/site-packages/distributed/client.py:3163: UserWarning: Sending large graph of size 28.39 MiB.
This may cause some slowdown.
Consider scattering data ahead of time and using futures.
warnings.warn(
/opt/conda/lib/python3.11/site-packages/distributed/client.py:3163: UserWarning: Sending large graph of size 28.39 MiB.
This may cause some slowdown.
Consider scattering data ahead of time and using futures.
warnings.warn(
/opt/conda/lib/python3.11/site-packages/distributed/client.py:3163: UserWarning: Sending large graph of size 28.39 MiB.
This may cause some slowdown.
Consider scattering data ahead of time and using futures.
warnings.warn(
/opt/conda/lib/python3.11/site-packages/distributed/client.py:3163: UserWarning: Sending large graph of size 28.39 MiB.
This may cause some slowdown.
Consider scattering data ahead of time and using futures.
warnings.warn(
/opt/conda/lib/python3.11/site-packages/distributed/client.py:3163: UserWarning: Sending large graph of size 28.39 MiB.
This may cause some slowdown.
Consider scattering data ahead of time and using futures.
warnings.warn(
/opt/conda/lib/python3.11/site-packages/distributed/client.py:3163: UserWarning: Sending large graph of size 28.39 MiB.
This may cause some slowdown.
Consider scattering data ahead of time and using futures.
warnings.warn(
/opt/conda/lib/python3.11/site-packages/distributed/client.py:3163: UserWarning: Sending large graph of size 28.39 MiB.
This may cause some slowdown.
Consider scattering data ahead of time and using futures.
warnings.warn(
/opt/conda/lib/python3.11/site-packages/distributed/client.py:3163: UserWarning: Sending large graph of size 28.39 MiB.
This may cause some slowdown.
Consider scattering data ahead of time and using futures.
warnings.warn(
/opt/conda/lib/python3.11/site-packages/distributed/client.py:3163: UserWarning: Sending large graph of size 28.39 MiB.
This may cause some slowdown.
Consider scattering data ahead of time and using futures.
warnings.warn(
area_mean_t = ds.mean(dim=["south_north", "west_east"])
subset = area_mean_t[["HAMSL", "TEMPERATURE", "QVAPOR", "UA", "VA", "REFL_10CM_MAX"]]
area_mean_t = subset.compute()
area_mean_t = area_mean_t.set_coords("HAMSL")
area_mean_t.UA.plot(x='Time', y='HAMSL')

client.shutdown()