Skip to content

Commit

Permalink
Merge pull request #523 from MLicari1/new-dev
Browse files Browse the repository at this point in the history
Add DEM docstring
  • Loading branch information
jlmaurer authored Jul 25, 2023
2 parents 296da7c + bf4425f commit 851cfa8
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tools/RAiDER/dem.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,18 @@ def download_dem(
buf=0.02,
overwrite=False,
):
""" Download a DEM if one is not already present. """
"""
Download a DEM if one is not already present.
Args:
llbounds: list/ndarry of floats -lat/lon bounds of the area to download. Values should be ordered in the following way: [S, N, W, E]
writeDEM: boolean -write the DEM to file
outName: string -name of the DEM file
buf: float -buffer to add to the bounds
overwrite: boolean -overwrite existing DEM
Returns:
zvals: np.array -DEM heights
metadata: -metadata for the DEM
"""
if os.path.exists(outName) and not overwrite:
logger.info('Using existing DEM: %s', outName)
zvals, metadata = rio_open(outName, returnProj=True)
Expand Down

0 comments on commit 851cfa8

Please sign in to comment.