Comments (4)
It is 30-min data. Your ImageCollection has 1488 bands, which is too much to display. Try the following:
import ee
import geemap
Map = geemap.Map()
ee.Initialize()
# GPM V6 30 minute data around hurricane Dorian for a single day.
range = ee.Date('2019-09-03').getRange('day')
dataset = ee.ImageCollection('NASA/GPM_L3/IMERG_V06') \
.filter(ee.Filter.date(range))
# Select the max preciptation and mask out low precipitation values.
precipitation = dataset.select('precipitationCal').max()
mask = precipitation.gt(0.5)
precipitation = precipitation.updateMask(mask)
palette = [
'000096','0064ff', '00b4ff', '33db80', '9beb4a',
'ffeb00', 'ffb300', 'ff6400', 'eb1e00', 'af0000'
]
precipitationVis = {'min': 0.0, 'max': 15.0, 'palette': palette}
Map.addLayer(precipitation, precipitationVis, 'Precipitation')
Map
from geemap.
You just need to convert the ImageCollection to Image before using the .toBands() function before adding it to the map. By default, if an ImageCollection is added to the map, it will be converted to an image using .mosaic() function, as an ImageCollection could not generate a tile layer to display on the map. This might not be what you want. So you just need to explicitly convert to an Image using .toBands(). Hope it makes sense.
gpm = ee.ImageCollection('NASA/GPM_L3/IMERG_V06') \
.filter(ee.Filter.date('2016-01-01', '2016-02-01')) \
.select('precipitationCal') \
.toBands()
options = {
# 'bands': ['precipitationCal'],
'opacity': 0.5,
'min': 0,
'max': 15,
# 'palette': ['000096','0064ff', '00b4ff', '33db80', '9beb4a', 'ffeb00', 'ffb300', 'ff6400', 'eb1e00', 'af0000']
}
Map.addLayer(gpm, options, 'GPM');
You can customize the plot parameters to make the plot look nicer.
from geemap.
Thanks. However I don't really know what it displayed on the map, is it the mean precipitation over the time range? I cannot provide a palette, it says there are more than one band, does it mean there are as many bands as dates?
Also if I try to set the range to ('2001-01-01', '2019-01-01')
I get a EEException: User memory limit exceeded
.
from geemap.
Hope you have resolved the issue. I am closing this issue for now. Feel free to reopen the issue if the problem persists.
from geemap.
Related Issues (20)
- Javascript to Python conversion for function arguments specified as dictionary
- js_snippet_to_py() produces duplicate imports
- Draw_control.features is inaccurate after editing a drawn object HOT 3
- Map.add_raster throws "TypeError: 'dict' object is not callable" HOT 2
- Run one command to test all code HOT 2
- geemap won't import with Python 3.12.0 HOT 2
- Release x.x.x
- Release geemap HOT 1
- Release geemap
- Release geemap
- Release geemap
- Some bugs about the extract_values_to_points function HOT 9
- Unable to monitor task progress when exporting GEE resources HOT 1
- checking lat/lon in module netcdf_to_ee converter HOT 3
- netcdf_to_ee code HOT 2
- No layer style UI for ee.ImageCollection
- Minor typo in "About" section of project homepage HOT 1
- View extent in cartoee module switched up HOT 4
- Histogram data output is empty when using a for loop HOT 4
- geemap.ee_to_pandas not available anymore? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geemap.