Skip to content

Commit

Permalink
Informative comments
Browse files Browse the repository at this point in the history
  • Loading branch information
trey-stafford committed Aug 22, 2023
1 parent d5ae5e3 commit 7667a5b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ def make_layer(
asset=annual_dataset.assets["only"],
),
steps=[
# Round data to the nearest cm and convert to integer to save disk
# space.
CommandStep(
args=[
"gdal_calc.py",
Expand All @@ -36,6 +38,9 @@ def make_layer(
"{output_dir}/scaled.tif",
],
),
# The `scale` metadata lets tools like QGIS know that the integers
# should be interpreted as floating point data (e.g,. a value of
# `12345` is displayed as 123.45)
*gdal_edit(
input_file="{input_dir}/scaled.tif",
output_file="{output_dir}/edited.tif",
Expand Down

0 comments on commit 7667a5b

Please sign in to comment.