Solved

Some Questions about Parameters of Data API

  • 25 July 2022
  • 6 replies
  • 124 views

Userlevel 7
Badge +13

This question was originally asked April 07, 2021 23:03 by user Leikun Yin.

 

Hello,

I have a question related to Data API. 

I understand that in Data API, I can use date range, cloud coverage to filter the image.

I am wondering is it possible to filter images using "Radiometry" as shown below, e.g., I can set the parameter to "surface reflectance". If I cannot set the parameter, what kind of images do I download? Are they the type of  "surface reflectance"? Thanks

 

 

icon

Best answer by elyhienrich 25 July 2022, 17:51

View original

6 replies

Userlevel 7
Badge +13

Emir Hartato replied on April 08, 2021 at 01:19. 

 

Hi Leikun,

For Data API, you can filter use AndFilter

Example, if you want to filter Surface Reflectance asset, then:

"filter": {
"type":"AndFilter",
"config":[
{
"type": "AssetFilter",
"config": [
"analytic_sr"
]
}
]
}

You can refer to this document below for different item and asset type:

https://developers.planet.com/docs/apis/data/items-assets/

 

Thank You.

Emir

Userlevel 7
Badge +13

Leikun Yin replied on April 08, 2021 at 01:30. 

Hi Emir,

Thanks for your reply!

I am using the command line. Can you provide a command line example? For example, as shown below, can you help me add a parameter in the following code?

planet data download --item-type PSScene4Band --range cloud_cover lt .01 --asset-type analytic --date acquired gt 2020-04-01 --date acquired lt 2020-11-01 --geom C:\Users\Desktop\geojson\map.geojson --dest C:\Users\Desktop\dest

 

Thanks!

Userlevel 7
Badge +13

Emir Hartato replied on April 08, 2021 at 21:39. 

 

Hi Leikun,

If you're using Planet CLI, then you just need to put --asset-type analytic_sr  to filter the surface reflectance asset.

Thank you.

Emir

Userlevel 7
Badge +13

Leikun Yin replied on April 09, 2021 at 00:05. 

 

Hi Emir,

Thanks for your reply!

I find the parameters introduced in this website https://planetlabs.github.io/planet-client-python/cli/index.html is incomplete. For example, it does not introduce the analytic_sr. 

Could you share a website with more Planet CLI examples and knowledge?

Also, I found a link in another post. But when I opened it, it needed username and password. I do not know what the username and password are. Is this website helpful to me to learn more Planet CLI examples and knowledge? Do I have access to this web page?

Userlevel 7
Badge +13

Emir Hartato replied on April 09, 2021 at 01:01. 

 

Hi Leikun,

This link that you have provided only shows a few samples https://planetlabs.github.io/planet-client-python/cli/index.html 

You have to refer to the Data API documentation below for a complete list and asset. 

https://developers.planet.com/docs/apis/data/items-assets/ Thank you.

 

Userlevel 6
Badge +4

Thanks for sharing this. Some very useful base information.

Reply