Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing Planet and Microsoft Planetary computer imagery #170

Closed
dbuscombe-usgs opened this issue Aug 7, 2023 · 3 comments
Closed

Accessing Planet and Microsoft Planetary computer imagery #170

dbuscombe-usgs opened this issue Aug 7, 2023 · 3 comments
Assignees
Labels
Research Investigate if something is possible, experiment V2 for version 2 of coastseg

Comments

@dbuscombe-usgs
Copy link
Member

I have been researching access to imagery from alternative platforms and am using this issue as a placeholder for planning a future effort to integrate at least 3-m Planet imagery for federal researchers with API keys

API keys are accessed from https://account.planet.com/

The basic workflow for https://github.com/planetlabs/notebooks/blob/master/jupyter-notebooks/data-api-tutorials/search_and_download_quickstart.ipynb

Accessing sentinel imagery from planetary is exemplified here: interactive-sentinel-2-cookbook/notebooks/data-intake-ms-planetary-computer.ipynb at main · ProjectPythia/interactive-sentinel-2-cookbook (github.com)

@dbuscombe-usgs dbuscombe-usgs added V2 for version 2 of coastseg Research Investigate if something is possible, experiment labels Aug 7, 2023
@dbuscombe-usgs dbuscombe-usgs self-assigned this Aug 7, 2023
@dbuscombe-usgs
Copy link
Member Author

There are several steps to implementing use of Planet imagery, including:

  1. Planet imagery is not available to all, so we need to figure out a way for users to securely store or input their API key. This has to be done in such a way that the API key is not stored in a file, only in memory in a particular user's session
  2. The program should 'grey out' Planet as an available source unless/until the API credentials have been inputted
  3. The program will have to be updated to deal with the slightly different metadata and image bands
  4. the jpeg creation codes will therefore need to be updated to accomodate Planet imagery
  5. testing of the deep learning models on planet imagery, and possibly creating a new set of training data to support this effort
  6. one big issue to resolve is image registration. Planet suffers from this quite badly, so AROSICS needs to be fully implemented, which may require a new conda recipe or Docker workflow
  7. another issue is cloud masking, which Planet doesnt do by default but we have access to ML-based libraries that do
  8. there are probably tens of other little details that we may need to pay attention to as we go

@2320sharon
Copy link
Collaborator

Thanks for researching this issue and developing some implementation ideas.

I found that the project geemap has the option to use planet api what it does it uses an environment variable to store the api key. That way we never write the API key to file.

# os.environ["PLANET_API_KEY"] = "12345"

You can see the full notebook here
https://github.com/gee-community/geemap/blob/cfc9ed8d15436be3a1220e31fb0d775fec69edb8/docs/notebooks/77_planet_imagery.ipynb#L7

@2320sharon
Copy link
Collaborator

We are planning on implementing this feature in a new project call Coastseg-Planet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Research Investigate if something is possible, experiment V2 for version 2 of coastseg
Projects
None yet
Development

No branches or pull requests

2 participants