Skip to content

Commit

Permalink
select processing levels
Browse files Browse the repository at this point in the history
  • Loading branch information
bpurinton committed Nov 25, 2024
1 parent a75d49f commit f1e6ec0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions asp_plot/altimetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def __init__(

def request_atl06sr_multi_processing(
self,
processing_levels=["high_confidence", "ground", "canopy", "top_of_canopy"],
res=20,
len=40,
ats=20,
Expand Down Expand Up @@ -132,6 +133,12 @@ def request_atl06sr_multi_processing(
},
}

parms_dict = {
key: parms for key, parms in parms_dict.items() if key in processing_levels
}

print("\n\nparms_dict: ", parms_dict)

for key, parms in parms_dict.items():
parms["poly"] = region
parms["res"] = res
Expand Down
1 change: 1 addition & 0 deletions asp_plot/cli/asp_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ def main(
icesat = Altimetry(directory=directory, dem_fn=asp_dem)

icesat.request_atl06sr_multi_processing(
processing_levels=["ground"],
save_to_parquet=False,
)

Expand Down
1 change: 1 addition & 0 deletions notebooks/icesat2_plots.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
"# cnt=5,\n",
"# maxi=5,\n",
"# save_to_parquet=True,\n",
"# processing_levels=[\"ground\"],\n",
"# )"
]
},
Expand Down

0 comments on commit f1e6ec0

Please sign in to comment.