Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ __pycache__/
*.py[cod]
*$py.class

*.DS_Store
*token.json

# C extensions
*.so

Expand Down
2 changes: 2 additions & 0 deletions io/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# IO Scripts and Examples
This IO area is to house scripts related to reading, standardizing, and writing lidar datasets. Currently, it has a script for downloading all the relevant datastreams for a particular date range and a Notebook that does something similar along with plotting the data up. This area will be expanded as needed going forward.
27 changes: 27 additions & 0 deletions io/get_data.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
"""
This function allows for a user to download data from the relevant datasets.
Be sure to create a token.json file with your ARM username and token.

"""
import json
import act

# Set Date Range
startdate = '2025-12-01'
enddate = '2025-12-31'

#Read in ARM Live Data Webservice Token and Username
with open('./token.json') as f:
data = json.load(f)
username = data['username']
token = data['token']

sdate = ''.join(startdate.split('-'))
edate = ''.join(enddate.split('-'))

# Download data from each datastream
datastreams = ['sgpminimplC1.b1', 'sgpmplpolfsC1.b1', 'sgpceil10mC1.b1', 'sgpceilpolC1.b1',
'sgpdlfptC1.b1', 'sgpdlfptE13.b1', 'sgprlC1.a0', 'sgphsrlC1.a1']
for ds in datastreams:
data_dir = './data/' + ds
result = act.discovery.download_arm_data(username, token, ds, startdate, enddate, output=data_dir)
382 changes: 382 additions & 0 deletions io/io_example.ipynb

Large diffs are not rendered by default.