NASA-IMPACT / hls-vi

0 stars 0 forks source link

Restrict VI calculation based to surface reflectance 0<SR<1 #6

Closed madhuksridhar closed 2 months ago

madhuksridhar commented 3 months ago

Description

Restrict VI calculations to pixels that meet the following conditions:

chuckwondo commented 2 months ago

@madhuksridhar, I mistakenly made changes directly to the main branch instead of opening a PR (although there is a branch rule in place that should prevent this, so I'm puzzled that I was able to do so).

Please see the following lines to make sure this is what you intended for this issue: https://github.com/NASA-IMPACT/hls-vi/blob/main/hls_vi/generate_indexes.py#L145-L146

madhuksridhar commented 2 months ago

@chuckwondo, is it better to prescribe a custom fill value of -9999 here? This might come in handy later when writing the raster.

chuckwondo commented 2 months ago

@chuckwondo, is it better to prescribe a custom fill value of -9999 here? This might come in handy later when writing the raster.

The fill value is whatever the existing fill value is.

madhuksridhar commented 2 months ago

I don't know what the default fill value is, probably not -9999 right?