Hi I´m trying to get the NDVI value for -75.6396578867764, -14.197876401443217, -75.64298408105815, -14.20062882414364]
I already checked on the FAQ How can I get actual NDVI values? and changed my NDVI layer as seen in this picture:
This is my code:
from sentinelhub import SHConfig, WmsRequest, WcsRequest, MimeType, CRS, BBox
INSTANCE_ID = 'XXXX'
if INSTANCE_ID:
config = SHConfig()
config.instance_id = INSTANCE_ID
else:
config = None
box = -75.6396578867764, -14.197876401443217, -75.64298408105815, -14.20062882414364]
box = BBox(box=box, crs=CRS.WGS84)
NDVI_request = WmsRequest(
layer='NDVI',
bbox=box,
time='2019-10-13',
width=100,
config=config
)
wms_true_color_img = NDVI_request.get_data()
output:
array(([ 92, 92, 95, …, 16, 16, 16],
/ 83, 83, 94, …, 16, 16, 16],
r 83, 83, 94, …, 16, 16, 16],
…,
/130, 130, 131, …, 126, 126, 123],
r130, 130, 131, …, 126, 126, 123],
<130, 130, 131, …, 126, 126, 123]], dtype=uint8)]