Closed chizou closed 4 years ago
Sorry if this is a stupid question as I'm just starting out learning about remote sensing, but Shouldn't _ndvi_bands
for WV04
return bands 2 (red) and 3 (NIR) ? It looks like it's returning 1 (green) and 3 (NIR). https://github.com/DigitalGlobe/gbdxtools/blob/a9005d70f309c28e4bea7545aeb6f8786f14a117/gbdxtools/images/worldview.py#L151
Good catch on the ndvi_bands
. We'll investigate why Dask is throwing the TypeError
with the WV04 imagery.
_ndvi_bands
is missing its @property
decorator in the WV04 image class.
You can manually set it (and to the correct values) with:
image._ndvi_bands = [2,3]
Addressed in https://github.com/DigitalGlobe/gbdxtools/pull/763, to be included in 0.17.0
GBDXTools New Issue
CatalogImage.ndvi()
isn't working for WV4 imagery over WinterPark, COGBDX Account Tier
GBDXTools Version
Environment
Description
The code in the Example is producing a
TypeError
exception fromdask
. However, uncommenting the WV3 catalog works.Expected behavior:
ndvi values to be generated
Actual behavior:
TypeError
exception is thrownExample