Get the URL for an animated video thumbnail of the given collection. Note: Videos can only be created when the image visualization creates an RGB or RGBA image. This can be done by mapping a visualization onto the collection or specifying three bands in the params. Args: para
(self, params: dict[str, Any] | None = None)
| 191 | return image.Image |
| 192 | |
| 193 | def getVideoThumbURL(self, params: dict[str, Any] | None = None) -> str: |
| 194 | """Get the URL for an animated video thumbnail of the given collection. |
| 195 | |
| 196 | Note: Videos can only be created when the image visualization |
| 197 | creates an RGB or RGBA image. This can be done by mapping a visualization |
| 198 | onto the collection or specifying three bands in the params. |
| 199 | |
| 200 | Args: |
| 201 | params: Parameters identical to getMapId, plus, optionally: |
| 202 | dimensions - |
| 203 | (a number or pair of numbers in format WIDTHxHEIGHT) Max dimensions of |
| 204 | the thumbnail to render, in pixels. If only one number is passed, it is |
| 205 | used as the maximum, and the other dimension is computed by proportional |
| 206 | scaling. |
| 207 | crs - a CRS string specifying the projection of the output. |
| 208 | crs_transform - the affine transform to use for the output pixel grid. |
| 209 | scale - a scale to determine the output pixel grid; ignored if both crs |
| 210 | and crs_transform are specified. |
| 211 | region - (E,S,W,N or GeoJSON) Geospatial region of the result. By default, |
| 212 | the whole image. |
| 213 | format - (string) The output format (only 'gif' is currently supported). |
| 214 | framesPerSecond - Animation speed. |
| 215 | Visualization parameters - ['bands', 'gain', 'bias', 'min', 'max', |
| 216 | 'gamma', 'palette', 'opacity', 'forceRgbOutput'] see Earth Engine |
| 217 | API for ee.Image.visualize for more information. |
| 218 | Returns: |
| 219 | A URL to download a thumbnail of the specified ImageCollection. |
| 220 | |
| 221 | Raises: |
| 222 | EEException: If the region parameter is not an array or GeoJSON object. |
| 223 | """ |
| 224 | return self._getThumbURL(['gif'], params, thumbType='video') |
| 225 | |
| 226 | def getFilmstripThumbURL(self, params: Any | None = None) -> str: |
| 227 | """Get the URL for a "filmstrip" thumbnail of the given collection. |