![]() ![]() The metadata for each mosaic is necessary to access the quads. Res = session.get(API_URL, params = parameters) #make get request to access mosaic from basemaps API "name_is" :"nsw_ps_1month_date_ramp_L15_mosaic" # <= customize to your use case #set params for search using name of mosaic After sending the request, let's check the status code to ensure it was successful. Assuming we know the name of the mosaic, we can include those details in the request to access the corresponding metadata. When sending the request, we will provide one parameter. th = (config.PLANET_API_KEY, "") #<= change to match variable for API Key if needed ![]() PLANET_API_KEY = '' # <= insert API key here In this case, the API key is saved to a config file and imported into the python script, but feel free to use your API key directly in the notebook if you are following along. In order to access the basemaps API, we need a Planet API key for successful authentication. The basemaps API can be used to download full mosaics, or in our case, to download individual parts of the mosaic known as quads. The first step is to setup a session to access the basemaps API. The purpose of this tutorial is to provide a user-friendly way to use Planet's Basemaps API to download all quads to a folder in their directory.īefore we jump into downloading the quads, let's quickly review the required packages for utilizing this tutorial. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |