WorldView, NDVI visualized using valueInterpolate function empty image

Hello! I create new collection for get data, but i got empty image. after create band i dont got render error

var requestBody = new
                  {
                       input = new
                      {
                          bounds = new
                          {
                              //bbox = new double[] { 561924.43, 5172145.65, 564217.92, 5174392.08 },
                              bbox = new double[] { 561924.43,
                                  5172145.65,
                                  564217.92,
                                  5174392.08 },
                              properties = new
                              {
                                  crs = "http://www.opengis.net/def/crs/EPSG/0/32633"
                              }
                          },
                          data = new[]
                          {
                              new
                              {
                                  type = "byoc-c613cef5-e0fc-4157-9787-7d2651cd8ae7",
                                  dataFilter = new
                                  {
                                      timeRange = new
                                      {
                                          from = "2024-04-13T00:00:00Z",
                                          to = "2024-04-14T00:00:00Z"
                                      }
                                  }
                              }
                          }
                      },
                      output = new
                      {
                          width = 512,
                          height = 512,
                          responses = new[]
                          {
                              new
                              {
                                  identifier = "default",
                                  format = new
                                  {
                                      type = "image/png"
                                  }
                              }
                          }
                      },
                      evalscript = @"
                          //VERSION=3
                          function setup() {
                            return {
                              input: ['Red', 'NearIR1', 'dataMask'],
                              output: { bands: 4 }
                            }
                          }
          
                          function evaluatePixel(sample) {
                            let ndvi = (sample.NearIR1 - sample.Red) / (sample.NearIR1 + sample.Red);
                            return valueInterpolate(ndvi,
                              [0.0, 0.3, 1.0],
                              [
                                [1, 0, 0, sample.dataMask],
                                [1, 1, 0, sample.dataMask],
                                [0.1, 0.3, 0, sample.dataMask]
                              ])
                          }"
                  };


that my band settings

Can you confirm that you are requesting data where you have it ingested? Double check the sensing time of the tile you ingested into the collection and where it is located.

Then make sure that you request the data in the area where you have the tile and at the right time.

timeRange = new
{
from = “2022-04-01T00:00:00Z”,
to = “2022-05-14T00:00:00Z”
}

than range dont give me nothing just image 4kb

Is this the range of sensing times of the tiles you have ingested?

I have free trial, maybe i need change subscription ?

if i change there, after can i use WorldView?

i found WorldView only for Europe

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.