Visualisation module

Visualisation of Data Cubes and the resulting simulations

b3alien.visualisation.gdf_to_ee_featurecollection(gdf)[source]

Transform a GeoDataFrame in to an Earth Engine Feature collection

Parameters:

gdf (geopandas.DataFrame) – Species OccurrenceCube from GBIF.

Return type:

ee.FeatureCollection

b3alien.visualisation.initialize(project)[source]

Inititialise a Google project

Parameters:

project (str) – Name of your Google project

b3alien.visualisation.visualize_ee_layers(layers, center=[0, 0], zoom=2, save_path=None, show=True, image=False)[source]

Visualize Earth Engine layers either in Jupyter (geemap) or save as HTML/PNG via folium.

Parameters:
  • layers (list) – List of tuples (ee_object, vis_params, name)

  • center (list) – [lat, lon] center of map

  • zoom (int) – Zoom level

  • save_path (str) – Optional filepath to save HTML

  • show (bool) – Show in browser (script) or inline (Jupyter)

  • image (bool) – Attempt to save a PNG image (requires Selenium)

Return type:

folium.Map or geemap.Map