Pixel value in API

  • 26 April 2024
  • 3 replies
  • 2 views

Hey everyone!
What should I add to the following API link if I want the pixel value to be displayed everytime I point at it in my webapp?
https://services.sentinel-hub.com/ogc/wms/{INSTANCE_ID}?REQUEST=GetMap&BBOX=3238005,5039853,3244050,5045897&LAYERS=TRUE_COLOR&MAXCC=20&WIDTH=320&HEIGHT=320&FORMAT=image/jpeg&TIME=2018-03-29/2018-05-29


3 replies

Hi @tilila.aitjeddi,
what do you mean “pixel value”? Like an actual number, rather than raster pixel?
If so, I would recommend you use Statistical API:

6315b8a4f88ff2b00eab2ab5cd802fe56048560c.pngsentinel-hub.com
d3714e73b38a87afa3c31502a6696052a7395163.png

FIS - DEPRECATED

The Statistical Info API (FIS), performed elementary statistical computations on remotely sensed data. It has been deprecated, as we developed a new powerful Statistical API.

You will need to provide a polygon geometry rather than point, but you can simply construct a super small rectangle around the point.

i mean when I’m working with the NDVI layer, I want everytime I point at a pixel, to find its NDVI value in display. Is that even possible?

This depends quite a bit on qht kind of application are you using. Our API can provide actual NDVI value for any chosen pixel, as I demonstrated above. However, if you create a layer with NDVI values, you will require FLOAT32-supported raster layers (as NDVI values are typically between -1 and 1), which is not supported in most GIS tools out there.

That said, if you want to get a layer of NDVI values, you can simply configure it as described here:

cc2429fe2929b5e713489c44359b57f8cc9d9eeb.pngsentinel-hub.com
d3714e73b38a87afa3c31502a6696052a7395163.png

FAQ

Check our list of frequently asked questions and answers on Sentinel Hub services.

Reply


Planet Monitoring
Investors

© 2024 Planet Labs PBC. All rights reserved.
| Privacy Policy | California Privacy Notice | California Do Not Sell
Your Privacy Choices | Cookie Notice | Terms of Use