Solved

Integracion imagenes planet google earth engine

  • 22 February 2023
  • 4 replies
  • 176 views

Userlevel 2
Badge +2

Hello everyone, 

I am trying to load daily images from planet to a collection created in google earth engine, I am doing this from google colab. 

I have already followed the steps mentioned in:

https://developers.planet.com/docs/integrations/gee/quickstart/

 

the code executed is:

___________________________________________________

import requests

# Set your API key and endpoint URL

PLANET_API_KEY = 'my_api_key'

url = 'https://api.planet.com/compute/ops/orders/v2'

# Create a headers dictionary with your API key

headers = {'Authorization': f'api-key {PLANET_API_KEY}'}

order_request= {

    "name": "PSScene 8-band order",

    "products": [{

        "item_ids": [

            "20230220_150741_37_2481"

        ],

        "item_type": "PSScene",

        "product_bundle": "analytic_8b_sr_udm2"

    }],

    "delivery": {

        "google_earth_engine": {

            "project": "my_google_cloud_project",

            "collection": "my_google_cloud_project_collection",

            "notifications": {

                "email": True

            }

        }

    }

}

# Send the order request

r = requests.post(url, headers=headers, json=order_request)

# Print the response status code

print(r.status_code)

____________________________________________________________________

after executing the order it is listed in my planet account, but after several minutes the status is failed.

 

please help, the information is not clear to me regarding GEE integration and daily planet images.

 

Thank you very much,

icon

Best answer by NICFI Program team 22 February 2023, 18:39

View original

4 replies

Userlevel 2
Badge +3

The Level 1 access to the program is for the mosaics, not for daily images. Unless you have another existing subscription for Planet, or have a Level 2 access key it will not be possible to download Daily images this way.  If you have a specific request for daily imagery then we would of course be happy to help.  You can also use our helpdesk nicfi-servicedesk@ksat.no too :)

Userlevel 2
Badge +2

this plan “PL-0020051_Level2_Access”  will allow me to access?

Userlevel 2
Badge +3

If you have Level 2 access then yes that should work.  Let me check in case there is an issue in the code and we will come back to you. 

Userlevel 2
Badge +2

If you have Level 2 access then yes that should work.  Let me check in case there is an issue in the code and we will come back to you. 

Thanks

Reply