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
image_count() did not work with sentinel-1 image collection #1209
Comments
That probably means that not all images in the collection have the same bands. You should just select one single band that exists in all images. |
Use 'VV' for land. |
There is a function available that allows for filtering of bands on sentinel 1. Created some time ago due to the unique nature of this specifc dataset (not all bands are available in every picture: based on band selection, one has first to apply specific filters on image properties before being able to select from subsets where band is always available).
|
I have added a import ee
import geemap
Map = geemap.Map()
region = ee.Geometry.BBox(-126.2988, 27.0591, -70.8398, 50.1769)
collection = ee.ImageCollection('COPERNICUS/S1_GRD')
image = geemap.image_count(collection, region=region, band='VV', clip=True)
vis = {'min':100, 'max': 800, 'palette': 'coolwarm'}
Map.addLayer(image, vis,'image count')
Map.add_colorbar(vis)
Map.centerObject(region)
Map |
Environment Information
Description
I am trying to use the very handy
geemap.image_count()
function, which seems to work in other cases except for COPERNICUS/S1_GRD ImageCollection.Here is the code that I used
However, it does work if I use the Angle band for Sentinel-1 imagery as follows:
I am not sure why that is. Perhaps some adjustments are needed to the
image_count()
to account for this :)The text was updated successfully, but these errors were encountered: