From 3d0794c177e344a1327b99da6697d661fd5ce370 Mon Sep 17 00:00:00 2001 From: zssherman Date: Wed, 29 Nov 2023 22:58:38 -0600 Subject: [PATCH] FIX: Fix for examples to be updated to new discovery.download_arm_data. --- examples/discovery/plot_neon.py | 2 +- examples/plotting/plot_ceil.py | 2 +- examples/workflows/plot_aerioe_with_cbh.py | 4 ++-- examples/workflows/plot_multiple_dataset.py | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/discovery/plot_neon.py b/examples/discovery/plot_neon.py index c894106174..038fa62778 100644 --- a/examples/discovery/plot_neon.py +++ b/examples/discovery/plot_neon.py @@ -21,7 +21,7 @@ if token is not None and len(token) > 0: # Download ARM data if a username/token are set - files = act.discovery.download_data(username, token, 'nsametC1.b1', '2022-10-01', '2022-10-07') + files = act.discovery.download_arm_data(username, token, 'nsametC1.b1', '2022-10-01', '2022-10-07') ds = act.io.arm.read_arm_netcdf(files) # Download NEON Data diff --git a/examples/plotting/plot_ceil.py b/examples/plotting/plot_ceil.py index e5701480a6..f650b1a16f 100644 --- a/examples/plotting/plot_ceil.py +++ b/examples/plotting/plot_ceil.py @@ -21,7 +21,7 @@ ceil_ds = act.io.arm.read_arm_netcdf(act.tests.sample_files.EXAMPLE_CEIL1, engine='netcdf4') else: # Example to show how easy it is to download ARM data if a username/token are set - results = act.discovery.download_data(username, token, 'sgpceilC1.b1', '2022-01-14', '2022-01-19') + results = act.discovery.download_arm_data(username, token, 'sgpceilC1.b1', '2022-01-14', '2022-01-19') ceil_ds = act.io.arm.read_arm_netcdf(results) # Adjust ceilometer data for plotting diff --git a/examples/workflows/plot_aerioe_with_cbh.py b/examples/workflows/plot_aerioe_with_cbh.py index afc30f0634..717d47933e 100644 --- a/examples/workflows/plot_aerioe_with_cbh.py +++ b/examples/workflows/plot_aerioe_with_cbh.py @@ -22,9 +22,9 @@ if username is None or token is None or len(username) == 0 or len(token) == 0: pass else: - results = act.discovery.download_data(username, token, 'sgpaerioe1turnC1.c1', '2022-02-11', '2022-02-11') + results = act.discovery.download_arm_data(username, token, 'sgpaerioe1turnC1.c1', '2022-02-11', '2022-02-11') aerioe_ds = act.io.arm.read_arm_netcdf(results) - results = act.discovery.download_data(username, token, 'sgpceilC1.b1', '2022-02-11', '2022-02-11') + results = act.discovery.download_arm_data(username, token, 'sgpceilC1.b1', '2022-02-11', '2022-02-11') ceil_ds = act.io.arm.read_arm_netcdf(results) # There isn't information content from the AERI above 3 km diff --git a/examples/workflows/plot_multiple_dataset.py b/examples/workflows/plot_multiple_dataset.py index 04af726495..8ef0a7aa43 100644 --- a/examples/workflows/plot_multiple_dataset.py +++ b/examples/workflows/plot_multiple_dataset.py @@ -24,9 +24,9 @@ met_ds = act.io.arm.read_arm_netcdf(act.tests.sample_files.EXAMPLE_MET1) else: # Download and read data - results = act.discovery.download_data(username, token, 'sgpceilC1.b1', '2022-01-01', '2022-01-07') + results = act.discovery.download_arm_data(username, token, 'sgpceilC1.b1', '2022-01-01', '2022-01-07') ceil_ds = act.io.arm.read_arm_netcdf(results) - results = act.discovery.download_data(username, token, 'sgpmetE13.b1', '2022-01-01', '2022-01-07') + results = act.discovery.download_arm_data(username, token, 'sgpmetE13.b1', '2022-01-01', '2022-01-07') met_ds = act.io.arm.read_arm_netcdf(results) # Read in CEIL data and correct it