Forbidden 403 Error When Subscribing to PlanetScope Data - Need Assistance

I’m encountering a “Forbidden 403” error when attempting to subscribe to PlanetScope data using the provided code below. I’ve followed the steps outlined in the documentation, but I’m unable to resolve this issue. Any help or guidance would be greatly appreciated.

Title: Forbidden 403 Error When Subscribing to PlanetScope Data - Need Assistance

Description:

I’m encountering a “Forbidden 403” error when attempting to subscribe to PlanetScope data using the provided code below. I’ve followed the steps outlined in the documentation, but I’m unable to resolve this issue. Any help or guidance would be greatly appreciated.

Error Message:
{
“error”: {
“status”: 403,
“reason”: “Forbidden”,
“message”: “You do not have sufficient permission for this action. Please contact support.”,
“code”: “COMMON_INSUFFICIENT_PERMISSIONS”
}
}

Code Sample
{
“name”: “test subscription”,
“input”: {
“planetApiKey”: “”,
“provider”: “PLANET”,
“bounds”: {
“geometry”: {
“type”: “Polygon”,
“coordinates”: [
[
[
15.825815,
46.714048
],
[
15.813988,
46.707248
],
[
15.832682,
46.703062
],
[
15.839931,
46.711694
],
[
15.835353,
46.716664
],
[
15.825815,
46.714048
]
]
]
}
},
“data”: [
{
“itemType”: “PSScene”,
“productBundle”: “analytic_sr_udm2”,
“dataFilter”: {
“timeRange”: {
“from”: “2022-04-25T00:00:00.000Z”,
“to”: “2022-04-30T00:00:00.000Z”
},
“maxCloudCoverage”: 30,
“nativeFilter”: {
“type”: “StringInFilter”,
“field_name”: “quality_category”,
“config”: [“standard”]
}
},
“harmonizeTo”: “NONE”
}
]
}
}

Actions Taken
I’ve verified that my PlanetScope API key and access token are correct.

I’ve double-checked the data parameters and they seem to be in order.

1 Like

Hi, your account was not configured correctly. It should work now. We apologize for the inconvenience.

1 Like

Hello @msterk , I am new to using planetscope. I am trying to display NDVI from the planetscope imagery in javascript platform. Realize how we have formulas of NDVI for sentinel as ( (Band 8 − Band 4)( Band 8 + Band 4))

   evalscript = `//VERSION=3
    function setup() {
      return {
        input: [{ bands: ['B04', 'B08'] }],
        output: [{ id: 'default', bands: 1, sampleType: 'FLOAT32' }],
      };
    }
  
    function evaluatePixel(sample) {
      let ndvi = (sample.B08 - sample.B04) / (sample.B08 + sample.B04);
      return { default: [ndvi] };
    }`;

and for landsat is ((Band 5 – Band 4) / (Band 5 + Band 4))

evalscript = `//VERSION=3
     function setup() {
      return {
        input: [{ bands: ['B04', 'B05'] }],
        output: [{ id: 'default', bands: 1, sampleType: 'FLOAT32' }],
      };
    }
    
    function evaluatePixel(sample) {
      let ndvi = (sample.B05 - sample.B04) / (sample.B05 + sample.B04);
      return { default: [ndvi] };
    }`;

How do I structure the evalscript so that I can visualize the planetscope’s NDVI?

Hi @eddiemuhoro ,

Please have a look at our Custom Scripts Repository.

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