From 21ef45fdb235cb8723005e792b4db796d98dda3f Mon Sep 17 00:00:00 2001 From: Adam Theisen Date: Thu, 29 Dec 2022 13:28:49 -0600 Subject: [PATCH] ENH: Fixing document build error (#600) * ENH: Fixing document build error * ENH: Removing print statement * ENH: trying a better fix here Co-authored-by: Adam Theisen --- examples/plotting/plot_ceil.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/examples/plotting/plot_ceil.py b/examples/plotting/plot_ceil.py index 80a918d945..8a6459f4ba 100644 --- a/examples/plotting/plot_ceil.py +++ b/examples/plotting/plot_ceil.py @@ -9,9 +9,7 @@ """ import os - import matplotlib.pyplot as plt - import act # Place your username and token here @@ -20,11 +18,11 @@ # If the username and token are not set, use the existing sample file if username is None or token is None or len(username) == 0 or len(token) == 0: - ceil_ds = act.io.armfiles.read_netcdf(act.tests.sample_files.EXAMPLE_CEIL1) + ceil_ds = act.io.armfiles.read_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 - act.discovery.download_data(username, token, 'sgpceilC1.b1', '2017-01-14', '2017-01-19') - ceil_ds = act.io.armfiles.read_netcdf('./sgpceilC1.b1/*') + results = act.discovery.download_data(username, token, 'sgpceilC1.b1', '2017-01-14', '2017-01-19') + ceil_ds = act.io.armfiles.read_netcdf(results) ceil_ds = act.corrections.ceil.correct_ceil(ceil_ds, -9999.0) display = act.plotting.TimeSeriesDisplay(ceil_ds, subplot_shape=(1,), figsize=(15, 5))