Skip to content

Commit f83c339

Browse files
committed
atl06 api opens parquet on complete when selected
1 parent a15d79d commit f83c339

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

sliderule/icesat2.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,12 @@ def atl06p(parm, asset=DEFAULT_ASSET, version=DEFAULT_ICESAT2_SDP_VERSION, callb
768768
# Make API Processing Request
769769
rsps = sliderule.source("atl06p", rqst, stream=True, callbacks=callbacks)
770770

771+
# Check for Output Options
772+
if parm["output"] and parm["output"]["open_on_complete"]:
773+
df = geopandas.pd.read_parquet(parm["output"]["path"])
774+
profiles[atl06p.__name__] = time.perf_counter() - tstart
775+
return df
776+
771777
# Flatten Responses
772778
tstart_flatten = time.perf_counter()
773779
columns = {}

utils/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ def display_statistics(gdf, name):
171171
print("Received {} {}".format(len(gdf), name))
172172
else:
173173
print("No {} were returned".format(name))
174-
sys.exit(0)
175174

176175
print("\nTiming Profiles")
177176
for key in icesat2.profiles:

0 commit comments

Comments
 (0)