Skip to content

StuartJMc/beautiful-sea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

Photo by Frances Gunn on Unsplash

Beautiful Sea

An open source Data Science repository to aid in modelling of coastal ecosystems.



Table of Contents

Project Overview

Tools to aid in modelling of coastal ecosystems. Including:

  • Functions for engineering relevant features from weather, climate, and oceanographic data.
  • Functions for visualising and analysing data.
  • A marine time series model for training and forecasting labels.
  • A tool for forecasting scenarios.

Quick Start

biodiversity_model = MarineTimeSeriesAnalysis(
                                    df = species_df,
                                    label =  'biodiversity,
                                    features = ['temperature', 'ph', ... 'chlorophyll'],
                                    split_date ='2020-01-01',
                                    freq="M",
                                    lag_values=[1, 2, 3],
                                )

#analyse seanal trends in your data
biodiversity_model.seasonal_trends()

#forecast biodiversity for your test period
biodiversity_model.forecast()

#analyse model residuals to understand potential impacting variables
biodiversity_model.residual_analysis()

Package Contents

model

  • MarineTimeSeriesAnalysis() -> for modelling timeseries models and performing feature analysis

scenarios

  • model_scenarios() -> for forecasting a traget variable over a range of projected out comes (changes to external variables)

feature_eng

  • get_weather_date() -> fetches daily wether data from meteo (can be used for modelling)
  • get_uea_data() -> loads and transforms monthly climate data from UEA (can be used for modelling)
  • get_copernicus_data() -> loads and transforms daily ocean chemical readings from Copernicus (can be used for modelling)
  • get_AQI() -> loads and transforms daily air quality index data (can be used for modelling)
  • get_ohi_data() -> loads and transforms yearly oncean health index data (can be used for modelling)

label_eng

  • calculate_biodiversity_metric() -> calculates biodiversity metric given occurences of mobile and sessile species in the community (can be used as a target variable)

Product Reference

A MVP interactive Streamlit page of Beautiful Sea's capabilities is available to view. The page showcases time series model results, feature importances and simulations of changing environmental variables. The dashboard provides valuable insights to understand the factors that most impact biodiversity and species counts. The simulation plots also allow users to assess the impact of environmental changes and take proactive measures.

Link to page: https://mitrag-beautiful-sea-streamlit-d-beautiful-sea-streamlit-on6bwj.streamlit.app/

Link to page repository: https://github.com/MitraG/Beautiful-Sea-Streamlit-Dashboard/tree/main

References

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages