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

Feature request - Ocean Colour/temperature #21

Closed
giswqs opened this issue Dec 30, 2021 Discussed in #20 · 10 comments
Closed

Feature request - Ocean Colour/temperature #21

giswqs opened this issue Dec 30, 2021 Discussed in #20 · 10 comments
Assignees
Labels
Feature Request New feature or request

Comments

@giswqs
Copy link
Member

giswqs commented Dec 30, 2021

Discussed in #20

Originally posted by ChrisHarrod December 30, 2021
Firstly, many thanks for a great application!

Further to my request on Twitter, I would like to ask if it is possible to include some oceanographic options such sea surface temperature or chlorophyll a concentrations. As requested, I looked in the Google Earth Engine catalogue and the products most used by people looking to show variation over time are things like the Sentinal https://developers.google.com/earth-engine/datasets/catalog/COPERNICUS_S3_OLCI or Modis https://developers.google.com/earth-engine/datasets/catalog/NASA_OCEANDATA_MODIS-Aqua_L3SMI

All the best
Chris

@giswqs
Copy link
Member Author

giswqs commented Dec 30, 2021

@ChrisHarrod Thank you for the suggestion. I should be able to implement early next week. Stay tuned.

@ChrisHarrod
Copy link

ChrisHarrod commented Dec 30, 2021 via email

@giswqs
Copy link
Member Author

giswqs commented Dec 31, 2021

Source code has been implemented in geemap. Will add to the streamlit web app soon.

import geemap
geemap.ee_initialize()
title = "Gulf of Mexico - Sea Surface Temperature", 
geemap.modis_ocean_color_timelapse("Aqua", "2020-01-01", "2021-01-01", bands=["sst"], frequency="week", title=title, out_gif="modis.gif")

https://github.com/giswqs/geemap/blob/0b5b51cd90a30819a55112f410921a325e94caf1/geemap/timelapse.py#L3121-L3130


modis

giswqs added a commit that referenced this issue Dec 31, 2021
@giswqs
Copy link
Member Author

giswqs commented Dec 31, 2021

It has been implemented. Try it out at https://streamlit.gishub.org

image

@giswqs giswqs added the Feature Request New feature or request label Dec 31, 2021
@giswqs giswqs self-assigned this Dec 31, 2021
@giswqs
Copy link
Member Author

giswqs commented Dec 31, 2021

A colorbar will be added to the timelapse soon. #24

import geemap
import geemap.colormaps as cm 
geemap.save_colorbar(vis_params={'min': 20, "max":40, 'palette': cm.get_palette("coolwarm")}, tick_size=12, label="Surface temperature")

image

@ChrisHarrod
Copy link

ChrisHarrod commented Dec 31, 2021 via email

@giswqs
Copy link
Member Author

giswqs commented Jan 1, 2022

A colorbar can now be added automatically based on the selected palette. Try it out at https://streamlit.gishub.org. Feel free to let me know if you run into any issues.

@giswqs giswqs closed this as completed Jan 1, 2022
@ChrisHarrod
Copy link

ChrisHarrod commented Jan 3, 2022 via email

giswqs added a commit that referenced this issue Jan 3, 2022
@giswqs
Copy link
Member Author

giswqs commented Jan 3, 2022

I just added an option for entering visualization parameters. You can enter something like {'min': 23, 'max': 32}. See the sceenshot below. The colorbar will change accordingly.

Screenshot_20220103_155416

modis

@ChrisHarrod
Copy link

ChrisHarrod commented Jan 3, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants