I want to ask how can I check if image exist or not before download it using script of python. (Because everytime I download image and image isn’t exist it is download in black so I need to know first if exist before download it to not have black image).
Also I want to know if it is posible to know if exist collection with same name and coordinate to not create another one with same name and coordinate.
To check if an image exists or not before running your request, you can make use of our Catalog API. There is also an implementation in Python, since you are already scripting in Python: see the examples in the documentation.
I have problem that i can download image manually using library of python but I can’t using request.save_data(). It is happen to me just in true color in 05/09/2022, just in this date.
Could you please help me better understand what issue you are running into? I ran your CURL request above and got an image back. You referred to the Python package in your previous post: does this mean that your CURL request runs but you cannot get the images with Python? If so, do you have the Python code you are using?
I get the image in my collection “My PlanetScope 8-band data” at 05/09/2022 in white. The problem just in day 05/09/2022 that I get it white using planetScope in python and also using request builder.
I want to know the reason why please. (The rest of other days I get the image correctly). I upload the img is in white.
Thanks for the clarification, it was not clear to me that you were talking about Planet Scope. After looking: it seems there were no acquisitions on the 5th September 2022. Hence why you don’t get data.
Are processing units and requests spent when downloading an empty image on a day with no acquisition?
If yes, how can we check that there is an image available during the requested time-interval, and if not, not do anything?
If there is a processing involved (like removing clouds from an image), would I save some PU if I only download the request result in cases where I have some non-cloudy pixels in my region of interest?
I am working with Sentinel-2 catalogue in Greenland and I am wondering how much PU/requests I am losing when asking for a scene in a region with polar night.
Are processing units and requests spent when downloading an empty image on a day with no acquisition?
Yes, you spend PUs even if you return an empty image. You can check the PUs consumed in the header of your response.
If yes, how can we check that there is an image available during the requested time-interval, and if not, not do anything?
I would suggest you take a look at our catalog API (documentation, and in the Python package) which you can call in a previous step to filter dates with acquisitions.
I am not familiar with your workflow, but you could also filter out dates without acquisitions directly in your Evalscript based on the dataMaskband.
If there is a processing involved (like removing clouds from an image), would I save some PU if I only download the request result in cases where I have some non-cloudy pixels in my region of interest?
Here is a guide on how PUs are calculated: Processing Unit definition. This may help you in reducing your consumption.
Furthermore, there are some tips to reduce PUs (based on the SampleType returned) in this blog post.