Skip to content

Commit

Permalink
ENH: Fixing document build error (#600)
Browse files Browse the repository at this point in the history
* ENH: Fixing document build error

* ENH: Removing print statement

* ENH: trying a better fix here

Co-authored-by: Adam Theisen <[email protected]>
  • Loading branch information
AdamTheisen and Adam Theisen authored Dec 29, 2022
1 parent 85e74bf commit 21ef45f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions examples/plotting/plot_ceil.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
"""

import os

import matplotlib.pyplot as plt

import act

# Place your username and token here
Expand All @@ -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))
Expand Down

0 comments on commit 21ef45f

Please sign in to comment.