MCPcopy Create free account

hub / github.com/gee-community/geemap / functions

Functions2,016 in github.com/gee-community/geemap

↓ 5 callersMethod_handle_message_event
( self, widget: ipywidgets.Widget, content: dict[str, Any], buffers: list[Any] )
geemap/map_widgets.py:960
↓ 5 callersMethodadd_html
Add HTML to the map. Args: html: The HTML to add. position: The position of the widget.
geemap/foliumap.py:2906
↓ 5 callersMethodadd_tile_layer
Adds a TileLayer to the map. Args: url: The URL of the tile layer. name: Name of the layer. attribution:
geemap/plotlymap.py:390
↓ 5 callersMethodadd_tile_layer
Add a XYZ tile layer to the map. Args: tiles: The URL of the XYZ tile service. name: The layer name to use on the lay
geemap/foliumap.py:534
↓ 5 callersMethodcenter_object
Centers the map view on a given object. Args: ee_object: The Earth Engine object to center on. zoom: Zoom level to se
geemap/core.py:756
↓ 5 callersMethodcount
Returns the number of geometries.
geemap/core.py:90
↓ 5 callersFunctioncreate_timelapse
Create a timelapse from any ee.ImageCollection. Args: collection: The collection of images to create a timeseries from. It ca
geemap/timelapse.py:833
↓ 5 callersFunctiondownload_ee_image
Download an Earth Engine Image as a GeoTIFF. Images larger than the `Earth Engine size limit are split and downloaded as separate tiles, then
geemap/common.py:12241
↓ 5 callersFunctionee_export_vector
Exports Earth Engine FeatureCollection to other formats. Includes shp, csv, json, kml, and kmz. Args: ee_object: ee.FeatureCollectio
geemap/common.py:903
↓ 5 callersFunctionee_to_df
Converts an ee.FeatureCollection to pandas dataframe. Args: ee_object (ee.FeatureCollection): ee.FeatureCollection. columns (list
geemap/common.py:8844
↓ 5 callersFunctionee_user_id
Gets Earth Engine account user id. Returns: A string containing the user id.
geemap/common.py:4535
↓ 5 callersFunctionfind_matching_bracket
Finds the position of the matching closing bracket from a list of lines. Args: lines: The input list of lines. start_line_index:
geemap/conversion.py:34
↓ 5 callersFunctionfmask
(img)
geemap/timelapse.py:1854
↓ 5 callersMethodget
(key: K)
tests/fake_anywidget.ts:11
↓ 5 callersMethodgetMapId
(self, *_, **__)
tests/fake_ee.py:17
↓ 5 callersFunctionget_image_collection_thumbnails
Download thumbnails for all images in an ImageCollection. Args: ee_object (object): The ee.ImageCollection instance. out_dir ([st
geemap/common.py:2670
↓ 5 callersFunctionlandsat_timeseries
Generates an annual Landsat ImageCollection. Adapted from https://gist.github.com/jdbcode/76b9ac49faf51627ebd3ff988e10adbc by Justin Braaten.
geemap/timelapse.py:1983
↓ 5 callersFunctionmake_gif
Creates a gif from a list of images. Args: images: The list of images or input directory to create the gif from. out_gif: File pa
geemap/timelapse.py:130
↓ 5 callersFunctionnew_tree_node
Returns node JSON for an interactive representation of an EE ComputedObject.
geemap/coreutils.py:121
↓ 5 callersMethodon_submit
(widget)
geemap/ai.py:666
↓ 5 callersFunctionpy_to_ipynb_dir
Converts EE Python scripts in a folder recursively to Jupyter notebooks. Args: in_dir: Input folder containing Earth Engine Python script
geemap/conversion.py:1088
↓ 5 callersMethodrender
()
js/legend.ts:101
↓ 5 callersMethodsetUp
(self)
tests/test_map_widgets.py:33
↓ 5 callersFunctionshp_to_geojson
Converts a shapefile to GeoJSON. Args: in_shp (str): File path of the input shapefile. filename (str, optional): File path of the
geemap/common.py:2436
↓ 4 callersMethod__init__
(self, **kwargs)
geemap/foliumap.py:55
↓ 4 callersFunction_get_colormaps
Gets the list of available colormaps.
tests/test_map_widgets.py:20
↓ 4 callersMethod_on_draw
Mimics the ipyleaflet DrawControl handler.
tests/test_core.py:401
↓ 4 callersMethod_redraw_layer
Redraws the layer on the map.
geemap/core.py:225
↓ 4 callersMethod_validate_row
( self, index: int, name: str, visible: bool, opacity: float )
tests/test_map_widgets.py:705
↓ 4 callersMethodadd_basemap
Adds a basemap to the map. Args: basemap: Can be one of string from pydeck_basemaps.
geemap/deck.py:217
↓ 4 callersMethodadd_geojson
Adds a GeoJSON file to the map. Args: in_geojson: The file path or http URL to the input GeoJSON or a dictionary
geemap/kepler.py:96
↓ 4 callersMethodadd_layer
Add a layer to the map. Args: layer (pydeck.Layer): A pydeck Layer object. layer_name: Sets the layer 'id' for the py
geemap/deck.py:108
↓ 4 callersMethodadd_source
Adds a source to the map. Args: id: The ID of the source. source: The source data. .
geemap/maplibregl.py:374
↓ 4 callersMethodadd_vector
Adds a vector file to the map. Args: filename: The input file path to the vector dataset. layer_name: The layer name
geemap/deck.py:325
↓ 4 callersMethodcentroid
(self, *_, **__)
tests/fake_ee.py:107
↓ 4 callersMethodclear_layers
Clears all layers from the map. Args: clear_basemap: If True, clears the basemap.
geemap/plotlymap.py:286
↓ 4 callersMethoddatetime_interval
Returns datetime objects representing temporal extents. Returns: An iterable of tuples representing temporal extents. Ra
geemap/ai.py:941
↓ 4 callersFunctionexecute_notebook_dir
Executes all notebooks in the given directory recursively and saves output cells. Args: in_dir: Input folder containing notebooks.
geemap/conversion.py:1143
↓ 4 callersMethodfilter_by_ids
Returns a sublist with only the collections matching the given ids.
geemap/ai.py:1110
↓ 4 callersMethodfind_layer_index
Finds the index of a layer. Args: name: Name of the layer to find. Returns: Index of the layer.
geemap/plotlymap.py:333
↓ 4 callersFunctiongdf_to_geojson
Converts a GeoDataFame to GeoJSON. Args: gdf (GeoDataFrame): A GeoPandas GeoDataFrame. out_geojson (str, optional): File path to
geemap/common.py:10272
↓ 4 callersFunctionget_basemap
Returns a basemap tile layer by name. Args: name: The name of the basemap.
geemap/geemap.py:5206
↓ 4 callersFunctionget_js_examples
Gets Earth Engine JavaScript examples from the geemap package. Args: out_dir: The folder to copy the JavaScript examples to. Returns
geemap/conversion.py:899
↓ 4 callersFunctionis_tool
Check whether `name` is on PATH and marked as executable.
geemap/common.py:1813
↓ 4 callersFunctionjs_to_python_dir
Converts EE JavaScript files in a folder recursively to Python scripts. Args: in_dir: The input folder containing Earth Engine JavaScript
geemap/conversion.py:826
↓ 4 callersFunctionosm_gdf_from_bbox
Create a GeoDataFrame of OSM entities within a N, S, E, W bounding box. Args: north: Northern latitude of bounding box. south: So
geemap/osm.py:354
↓ 4 callersFunctionread_postgis
Reads data from a PostGIS database and returns a GeoDataFrame. Args: sql: SQL query to execute in selecting entries from database, or nam
geemap/common.py:10762
↓ 4 callersMethodrefresh_layers
Refresh the layers in the layer manager. Uses the map interface to pull active layers. This function must be called whenever a layer
geemap/map_widgets.py:804
↓ 4 callersMethodremove_geometry
Removes a geometry from the draw control. Args: geometry: The geometry to remove.
geemap/core.py:109
↓ 4 callersFunctionsearch_qms
Search qms files for keywords. Reference: https://github.com/geopandas/xyzservices/issues/65 Args: keywords: Keywords to search for.
geemap/basemaps.py:581
↓ 4 callersFunctionsentinel2_timeseries
Generates an annual Sentinel 2 ImageCollection. This algorithm is adapted from https://gist.github.com/jdbcode/76b9ac49faf51627ebd3ff988e10ad
geemap/timelapse.py:1569
↓ 4 callersFunctionset_doys
(collection)
geemap/chart.py:1210
↓ 4 callersMethodset_paint_property
Set the opacity of a layer. This method sets the opacity of the specified layer to the specified value. Args: name: The
geemap/maplibregl.py:1224
↓ 4 callersFunctionstac_bounds
Get the bounding box of a single SpatialTemporal Asset Catalog (STAC) item. Args: url: HTTP URL to a STAC item, e.g., https:/
geemap/common.py:5761
↓ 4 callersFunctionstac_tile
Get a tile layer from a single SpatialTemporal Asset Catalog (STAC) item. Args: url: HTTP URL to a STAC item, e.g., https://c
geemap/common.py:5623
↓ 3 callersMethod_can_set_up_jslink
(self, obj: Any, trait: str)
geemap/map_widgets.py:716
↓ 3 callersMethod_get_preferred_basemap_name
Returns the aliased basemap name. Args: basemap_name: The name of the basemap. Returns: The aliased basemap
geemap/core.py:1374
↓ 3 callersFunction_get_tile_url_format
Returns the tile URL format for an EE object. Args: ee_object: The EE object. vis_params: The visualization parameters.
geemap/ee_tile_layers.py:19
↓ 3 callersMethod_hex_with_opacity
Adds opacity to a hex string (e.g. #000000 to #000000FF).
geemap/map_widgets.py:1086
↓ 3 callersFunction_read_json_file
(path: str)
tests/test_coreutils.py:28
↓ 3 callersMethod_set_plt_options
Set the title and labels for the chart.
geemap/chart.py:253
↓ 3 callersMethodadd_controls
Adds a list of controls to the map. Args: controls (Union[List[Any], Any]): A list of controls or a single contro
geemap/geemap.py:317
↓ 3 callersMethodadd_geojson
Adds a GeoJSON layer to the map. This method adds a GeoJSON layer to the map. The GeoJSON data can be a URL to a GeoJSON file or a Ge
geemap/maplibregl.py:520
↓ 3 callersMethodadd_html
Add HTML content to the map. This method allows for the addition of arbitrary HTML content to the map, which can be used to display c
geemap/maplibregl.py:2222
↓ 3 callersMethodadd_layer_control
Adds layer control to the map.
geemap/foliumap.py:438
↓ 3 callersMethodadd_raster
Add a local raster dataset to the map. If you are using this function in JupyterHub on a remote server (e.g., Binder, Microsoft Planetary Com
geemap/geemap.py:2439
↓ 3 callersFunctionadd_sample_markers_to_gif
Add sample point markers to a GIF. Args: in_gif (str): Path to input GIF file out_gif (str): Path to output GIF file samp
geemap/timelapse.py:5808
↓ 3 callersFunctionadjust_longitude
Adjusts longitude if it is less than -180 or greater than 180. Args: in_fc (dict): The input dictionary containing coordinates. Retu
geemap/common.py:6553
↓ 3 callersFunctionapplyScaleAndOffset
(img)
geemap/timelapse.py:3814
↓ 3 callersFunctionarray_to_image
Save a NumPy array as a GeoTIFF using the projection information from an existing GeoTIFF file. Args: array: The NumPy array to be saved
geemap/common.py:15074
↓ 3 callersMethodclear_controls
Removes all controls from the map.
geemap/plotlymap.py:157
↓ 3 callersFunctioncombine_gif_with_chart
Combine GIF with chart frames.
geemap/timelapse.py:6139
↓ 3 callersFunctioncsv_to_geojson
Creates points for a CSV file and exports data as a GeoJSON. Args: in_csv (str): The file path to the input CSV file. out_geojson
geemap/common.py:2245
↓ 3 callersFunctiondays_between
(d1, d2)
geemap/timelapse.py:1804
↓ 3 callersMethoddelete
(self, i)
tests/test_core.py:418
↓ 3 callersFunctionee_to_geojson
Converts Earth Engine object to geojson. Args: ee_object (object): An Earth Engine object. filename: The file path to save the ge
geemap/common.py:2385
↓ 3 callersMethodfirst
(self, *_, **__)
tests/fake_ee.py:166
↓ 3 callersFunctiongaussian
(x: float, a: float, b: float, c: float, d: float = 0)
geemap/common.py:3433
↓ 3 callersFunctionget_bounds
Bounding box of a GeoJSON geometry, GeometryCollection, or FeatureCollection. left, bottom, right, top *not* xmin, ymin, xmax, ymax If
geemap/common.py:6362
↓ 3 callersMethodget_bounds
Returns the bounds of the current map view. Args: as_geojson: If true, returns map bounds as GeoJSON. Returns:
geemap/core.py:689
↓ 3 callersMethodget_center
Returns the current center of the map (lat, lon).
geemap/core.py:685
↓ 3 callersFunctionget_env_var
Returns an environment variable or Colab secret for the given key. Colab secrets have precedence over environment variables. Args: k
geemap/coreutils.py:24
↓ 3 callersFunctionget_layer_name_and_ee_object
()
geemap/toolbar.py:584
↓ 3 callersFunctionget_palette
Returns a palette of hex colors from a matplotlib colormap. WARNING: This function is inconsistent with how it handles hashes in the color na
geemap/colormaps.py:72
↓ 3 callersMethodget_scale
Returns the approximate pixel scale of the current map view in meters.
geemap/core.py:713
↓ 3 callersMethodget_style_layers
Get the names of the basemap layers. Returns: The names of the basemap layers.
geemap/maplibregl.py:2115
↓ 3 callersMethodget_ylim
Gets the y-axis limits for the bar chart. Returns: The minimum and maximum y-axis limits.
geemap/chart.py:580
↓ 3 callersMethodget_zoom
Returns the current zoom level of the map.
geemap/core.py:677
↓ 3 callersMethodhasChildren
()
js/tree_node.ts:88
↓ 3 callersFunctionimage_dates
Get image dates of all images in an ImageCollection. Args: img_col (object): ee.ImageCollection date_format (str, optional): A pa
geemap/common.py:7114
↓ 3 callersFunctionimage_max_value
Retrieves the maximum value of an image. Args: img (object): The image to calculate the maximum value. region (object, optional):
geemap/common.py:7220
↓ 3 callersFunctionimage_min_value
Retrieves the minimum value of an image. Args: img (object): The image to calculate the minimum value. region (object, optional):
geemap/common.py:7250
↓ 3 callersFunctionimage_value_list
Get the unique values of an image. Args: img (ee.Image): The image to calculate the unique values. region (ee.Geometry | ee.Featu
geemap/common.py:7362
↓ 3 callersFunctionin_colab_shell
Returns True if the code is running in a Google Colab environment.
geemap/coreutils.py:352
↓ 3 callersFunctionlist_colormaps
Returns a list of all the available colormap names. See a complete lost of colormaps: https://matplotlib.org/stable/tutorials/colors/col
geemap/colormaps.py:150
↓ 3 callersFunctionlist_to_ee
(a_list)
geemap/common.py:2868
↓ 3 callersFunctionosm_gdf_from_address
Create GeoDataFrame of OSM entities within some distance N, S, E, W of address. Args: address: The address to geocode and use as the cent
geemap/osm.py:24
↓ 3 callersFunctionosm_gdf_from_geocode
Retrieves place(s) by name or ID from the Nominatim API as a GeoDataFrame. Args: query (str | dict | list): Query string(s) or structured
geemap/osm.py:473
↓ 3 callersFunctionosm_gdf_from_place
Create GeoDataFrame of OSM entities within boundaries of geocodable place(s). Args: query (str | dict | list): Query string(s) or structu
geemap/osm.py:104
↓ 3 callersFunctionosm_gdf_from_point
Create GeoDataFrame of OSM entities within some distance N, S, E, W of a point. Args: center_point: The (lat, lng) center point around wh
geemap/osm.py:193
← previousnext →101–200 of 2,016, ranked by callers