Skip to main content

Read and visualize for data from the Advanced Scatterometer (ASCAT)

Project description

# ascat #

[![PyPi](https://img.shields.io/pypi/v/ascat)](https://pypi.org/project/ascat/) [![Readthedocs](https://readthedocs.org/projects/ascat/badge/?version=latest)](http://ascat.readthedocs.org/) [![Downloads](https://img.shields.io/pypi/dm/ascat)](https://pypi.org/project/ascat) [![Linux actions status](https://github.com/TUW-GEO/ascat/actions/workflows/ubuntu.yml/badge.svg)](https://github.com/TUW-GEO/ascat/actions/workflows/ubuntu.yml) [![Windows actions status](https://github.com/TUW-GEO/ascat/actions/workflows/windows.yml/badge.svg)](https://github.com/TUW-GEO/ascat/actions/workflows/windows.yml) [![Coveralls](https://coveralls.io/repos/github/TUW-GEO/ascat/badge.svg?branch=master)](https://coveralls.io/github/TUW-GEO/ascat?branch=master)

Read and visualize data from the Advanced Scatterometer (ASCAT) on-board the series of Metop satellites.

## Citation ##

[![Zenodo](https://zenodo.org/badge/DOI/10.5281/zenodo.4610836.svg)](https://doi.org/10.5281/zenodo.4610836)

If you use the software in a publication then please cite it using the Zenodo DOI. Be aware that this badge links to the latest package version.

Please select your specific version at https://doi.org/10.5281/zenodo.4610836 to get the DOI of that version. You should normally always use the DOI for the specific version of your record in citations. This is to ensure that other researchers can access the exact research artefact you used for reproducibility.

You can find additional information regarding DOI versioning at http://help.zenodo.org/#versioning

## Installation ##

ASCAT data are distributed in BUFR, NetCDF, EPS Native and GRIB format. Unfortunately neither BUFR nor GRIB readers work on Windows so if you need these formats then Linux or OS X are your only options.

The following script will download and install all the needed packages.

Linux:

> `bash > conda env create -f environment.yml > `

Windows:

> `bash > conda env create -f environment_win.yml > `

## Supported datasets ##

This gives a short overview over the supported products. Please see the documentation for detailed examples of how to work with a product.

Read ASCAT data from different sources into a common format supported by pytesmo.

## Command line interface ##

The latest ASCAT swath files (H122, H29, H129, H121) can be aggregated and/or regridded using a command line interface (CLI) provided by the ascat package.

### Aggregation of ASCAT SSM swath files ###

Surface soil moisture and backscatter40 from ASCAT swath files can be aggregated over a user-defined time period (e.g. 1 day, 10 days, 1 month) choosing one of the following methods: “mean”, “median”, “mode”, “std”, “min”, “max”, “argmin”, “argmax”, “quantile”, “first”, “last”. The time span for processing is determined by the start and end times specified. Additionally, thresholds can be set for masks - such as those for frozen soil probability, snow cover probability, subsurface scattering probability, and surface soil moisture sensitivity - to filter surface soil moisture data as part of the aggregation process.

> `bash > ascat_swath_agg /path/to/input/h129_v1.0/swaths/ /path/to/output --start_dt 2020-06-15T00:00:00 --end_dt 2020-06-17T00:00:00 --t_delta 1D --agg mean --snow_cover_mask 80 --frozen_soil_mask 80 --subsurface_scattering_mask 10 --ssm_sensitivity_mask 1 > `

There is also an option that no masking is applied using the argument --no-mask.

### Regridding of ASCAT SSM swath files ###

ASCAT swath files contain data that are provided on a Discrete Global Grid (DGG) and can be converted to a regular lat/lon grid. Either a single swath file or folder containing the swath files can be used as input argument.

> `bash > ascat_swath_regrid /path/to/input/file /path/to/output 0.1 --grid_store /path/to/tmp/folder --suffix _regrid_0.1deg > `

## Contribute ##

We are happy if you want to contribute. Please raise an issue explaining what is missing or if you find a bug. We will also gladly accept pull requests for new features or bug fixes.

## Guidelines ##

If you want to contribute please follow these steps:

  • Fork the ascat repository to your account

  • Clone the repository, make sure you use git clone --recursive to also get the test data repository.

  • Make a new feature branch from the ascat master branch

  • Add your feature

  • Please include tests for your contributions in one of the test directories

  • Submit a pull request

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ascat-2.4.0.tar.gz (5.0 MB view details)

Uploaded Source

Built Distribution

ascat-2.4.0-py3-none-any.whl (346.4 kB view details)

Uploaded Python 3

File details

Details for the file ascat-2.4.0.tar.gz.

File metadata

  • Download URL: ascat-2.4.0.tar.gz
  • Upload date:
  • Size: 5.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.19

File hashes

Hashes for ascat-2.4.0.tar.gz
Algorithm Hash digest
SHA256 7a06b8d451f784d4edf614570727bc16e312d9de85c096d4f6e02ac3cf6ed299
MD5 5ceb90b89e3a54d069bf142e5723662d
BLAKE2b-256 8fd723990823db69e209e15f5bc473ca1bac23dc3b79bacbdb97dfd86ce3292d

See more details on using hashes here.

File details

Details for the file ascat-2.4.0-py3-none-any.whl.

File metadata

  • Download URL: ascat-2.4.0-py3-none-any.whl
  • Upload date:
  • Size: 346.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.19

File hashes

Hashes for ascat-2.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c0aa6f98685de60a6fdeafb542949760b2ab705f357f563d9a8fc9ec4a797ee
MD5 1e24c91494101a8f0b0d03767fe11b08
BLAKE2b-256 fd990863faba7f1786ef16905ea9495a96f875b113b9700c2439060e710a2fef

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page