ecoscope.io.earthranger_utils#

Module Contents#

ecoscope.io.earthranger_utils.TIME_COLS = ['time', 'created_at', 'updated_at', 'end_time', 'last_position_date', 'recorded_at', 'fixtime']#
ecoscope.io.earthranger_utils.clean_kwargs(addl_kwargs=None, **kwargs)[source]#
ecoscope.io.earthranger_utils.normalize_column(df, col)[source]#
ecoscope.io.earthranger_utils.dataframe_to_dict(events)[source]#
ecoscope.io.earthranger_utils.to_gdf(df)[source]#
ecoscope.io.earthranger_utils.clean_time_cols(df)[source]#
ecoscope.io.earthranger_utils.format_iso_time(date_string)[source]#
Parameters:

date_string (str)

Return type:

str

ecoscope.io.earthranger_utils.to_hex(val, default='#ff0000')[source]#
ecoscope.io.earthranger_utils.pack_columns(dataframe, columns)[source]#

This method would add all extra columns to single column

Parameters:
  • dataframe (pandas.DataFrame)

  • columns (List)

ecoscope.io.earthranger_utils.geometry_from_event_geojson(df, geojson_column='geojson', force_point_geometry=True, drop_null_geometry=True)[source]#
Parameters:

df (pandas.DataFrame)