{"id":26360593,"url":"https://github.com/andrebelem/pymhw","last_synced_at":"2025-09-15T06:47:58.397Z","repository":{"id":245482031,"uuid":"818381413","full_name":"andrebelem/pymhw","owner":"andrebelem","description":"Small scripts to calculate statistics of Marine Heat Haves","archived":false,"fork":false,"pushed_at":"2024-08-15T19:32:34.000Z","size":2114,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T16:53:13.467Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrebelem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-06-21T18:12:05.000Z","updated_at":"2024-07-09T17:07:30.000Z","dependencies_parsed_at":"2024-08-15T21:39:23.013Z","dependency_job_id":null,"html_url":"https://github.com/andrebelem/pymhw","commit_stats":null,"previous_names":["andrebelem/pymhw"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/andrebelem/pymhw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrebelem%2Fpymhw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrebelem%2Fpymhw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrebelem%2Fpymhw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrebelem%2Fpymhw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrebelem","download_url":"https://codeload.github.com/andrebelem/pymhw/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrebelem%2Fpymhw/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275219465,"owners_count":25425888,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-15T02:00:09.272Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-16T16:53:15.968Z","updated_at":"2025-09-15T06:47:58.372Z","avatar_url":"https://github.com/andrebelem.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyMHW: A Python Package for Marine Heatwave Detection and Analysis\n**Attention**! Still under construction!! \u003cbr\u003e\n\n`pymhw` is a Python package to calculate marine heatwaves (MHW) based on sea surface temperature (SST) data.\u003cbr\u003e\u003cbr\u003e\n[![DOI](https://zenodo.org/badge/818381413.svg)](https://zenodo.org/doi/10.5281/zenodo.12700290)\u003cbr\u003e\nPlease, cite this DOI and check new releases.\n\n## Installation\n\nYou can install the package using pip: \u003cbr\u003e\n`pip install git+https://github.com/andrebelem/pymhw.git`\n\n## Usage\n\n```python\nimport pandas as pd\nimport pymhw\n\n# Assuming df and df_clima are your already loaded DataFrames\ndf2 = pymhw.detect_MHW(df, df_clima)\nmhw_periods = pymhw.calculate_mhw_periods(df2)\n\nprint(mhw_periods) #\u003c-- results are condensated in a dataframe\n```\n\n## Example Analysis\nThere is an example (`Test_Marine_Heat_Waves_detection.ipynb`) with an overview of how to use the pymhw package for analyzing marine heatwaves.\n\n**Key Steps:**\n- Detect MHWs: Use the detect_MHW function to preprocess and detect potential MHW events in your SST data.\n- Calculate MHW Periods: Use the calculate_mhw_periods function to identify and categorize MHW periods based on their intensity.\n- Visualizing MHWs: Some example of graphics you can use (on the `.ipynb` file).\n\n**Future code:**\n- Include subsurface analysis and more statistics\n- Create a MHW index or impact index\n- Perform wavelet analysis on MHW index\n\n**Attention**! This repository is still under construction!! \u003cbr\u003e                                                                                                          \n                                                                                                               \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrebelem%2Fpymhw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrebelem%2Fpymhw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrebelem%2Fpymhw/lists"}