Skip to content

Commit

Permalink
Change ndvi to vegetation, since colored NIR is used to show vegetati…
Browse files Browse the repository at this point in the history
…on henceforth
  • Loading branch information
plant99 committed Jul 23, 2020
1 parent e3e677b commit a3a7a32
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions felicette/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@
help="Preview pre-processed low resolution RGB satellite image.",
)
@click.option(
"--ndvi",
"-v",
"--vegetation",
default=False,
is_flag=True,
help="Show NDVI image to highlight vegetation",
help="Show Color Infrared image to highlight vegetation",
)
def main(coordinates, location_name, pan_enhancement, preview_image, ndvi):
def main(coordinates, location_name, pan_enhancement, preview_image, vegetation):
"""Satellite imagery for dummies."""
if not coordinates and not location_name:
click.echo("Please specify either --coordinates or --location-name")
Expand All @@ -59,8 +60,8 @@ def main(coordinates, location_name, pan_enhancement, preview_image, ndvi):
if pan_enhancement:
bands.append(8)

if ndvi:
bands = [4, 5]
if vegetation:
bands = [3, 4, 5]

# download data
data_id = download_landsat_data(landsat_item, bands)
Expand Down

0 comments on commit a3a7a32

Please sign in to comment.