Surface reflectance product not available
I am using the Planet API to download a PSScene4Band surface reflectance scene with the asset type of 'analytic_sr'. The scene is from June 13 2019.
I get the following error:
Error: Invalid value for "--asset-type": invalid choice: analytic_sr.
Choose from: ......
analytic_sr does not appear in the list of valid types.
Is this because the SR product has not been produced for the scene yet? This has worked for me in the past for older scenes.
Any guidance would be appreciated thank you.
-
Official comment
Dear Kevin,
Thank you for your inquiry.
To help you further, could you please provide the Scene ID so we can find out why the analytic_sr asset isn't available?
Kind regards,
Paulina
Comment actions -
Hi Kevin,
Thank you for your message.
This scene ID is from 30th of May, I hope that's the correct one!
The main factors for surface reflectance asset being available are MODIS availability and overpass times. In case it's possible we will always make the *_sr asset available.
For this particular Scene ID, there is analytic_sr asset available, you can also check it here: https://api.planet.com/data/v1/item-types/PSScene4Band/items/20190530_220546_104e
I hope that helps!
Kind regards,Paulina
-
Thanks Paulina for looking at this.
It appears I get the same problem for any scene. I am using the Planet API installed on a linux box. The commands I type are:
export PL_API_KEY=(API KEY HERE)
planet --verbose data download --item-type PSScene4Band --asset-type analytic_sr --string-in id 20190530_220546_104e
And the error I get is:
Usage: planet data download [OPTIONS]
Error: Invalid value for "--asset-type": invalid choice: analytic_sr.
Choose from:
analytic
analytic_b1
analytic_b10
analytic_b11
analytic_b12
analytic_b2
analytic_b3
analytic_b4
analytic_b5
analytic_b6
analytic_b7
analytic_b8
analytic_b8a
analytic_b9
analytic_bqa
analytic_dn
analytic_dn_xml
analytic_ms
analytic_xml
basic_analytic
basic_analytic_b1
basic_analytic_b1_nitf
basic_analytic_b2
basic_analytic_b2_nitf
basic_analytic_b3
basic_analytic_b3_nitf
basic_analytic_b4
basic_analytic_b4_nitf
basic_analytic_b5
basic_analytic_b5_nitf
basic_analytic_dn
basic_analytic_dn_nitf
basic_analytic_dn_rpc
basic_analytic_dn_rpc_nitf
basic_analytic_dn_xml
basic_analytic_dn_xml_nitf
basic_analytic_nitf
basic_analytic_rpc
basic_analytic_rpc_nitf
basic_analytic_sci
basic_analytic_xml
basic_analytic_xml_nitf
basic_panchromatic_dn
basic_panchromatic_dn_rpc
basic_udm
browse
metadata_aux
metadata_txt
udm
visual
visual_xml
The analytic_sr is not in the list anymore (this use to work OK). Has there been a change to the API?
Thanks again,
Kevin.
Please sign in to leave a comment.
Comments
6 comments