Skip to content

Commit

Permalink
FIX: Fix for examples to be updated to new discovery.download_arm_data.
Browse files Browse the repository at this point in the history
  • Loading branch information
zssherman committed Nov 30, 2023
1 parent b41f958 commit 3d0794c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/discovery/plot_neon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/plotting/plot_ceil.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions examples/workflows/plot_aerioe_with_cbh.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions examples/workflows/plot_multiple_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d0794c

Please sign in to comment.