Published November 30, 2022 | Version v2.0.0

FrontDetection: A python module to detect fronts in xarray data

  • 1. Monash University
  • 2. UNSW
  • 3. Australian Earth-System Simulator National Research Infrastructure (ACCESS-NRI)

Description

This is an updated version of https://zenodo.org/record/6456581#.Y4atDy8RrBI which will now be maintained on GitHub.

This repository contains a python3 file ('fronts.py') to be used as a module to automatically detect cold, warm and stationary fronts on a range of gridded datasets, and a script that is an example of how the module can be used ('test_front.py'). The module currently relies on inputs being in xarray format.

This code is based on the detection method described in Berry et al. (2011), which itself was based on Hewson (1998). Note that results are more spurious towards the poles, and ideally the code should only be used between 70N and 70S

This code has now been updated to use functions from the Metpy module to calculate the dewpoint and wetbulb temperature.

2 jupyter notebooks are avaible to show how to use this module in /example_notebooks.

 

The module itself has the following dependencies:

  • xarray
  • numpy
  • scipy
  • geopy
  • metpy

And to plot the data you need:

  • matplotlib
  • cartopy

 

Full usage documentation can be found in the GitHub repo. Bugs and issues should be logged in the GitHub repo: https://github.com/coecms/frontdetection/issues . This code has been tested and is confirmed as working on the linux system of NCI's Gadi supercomputer.

Files

coecms/frontdetection-v2.0.0.zip

Files (323.6 kB)

Name Size
md5:e5f1ae4a096f104ea37c7e6dc03b7ca4
323.6 kB Preview Download

Additional details

Related works

Funding

Australian Research Council
ARC Centres of Excellence - Grant ID: CE170100023 CE170100023