Skip to main content

ascat

PyPi Readthedocs Downloads Linux actions status Windows actions status Coveralls

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

Citation

Zenodo

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 the GRIB reader does not work on Windows, so if you need that format then Linux or OS X are your only options.

Install the latest release from PyPI:

pip install ascat

Reading H SAF GRIB products requires pygrib, which is available through the optional grib extra (Linux/OS X only):

pip install ascat[grib]

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.

  • H SAF
    • Surface Soil Moisture (SSM) and Root Zone Soil Moisture (RZSM) products
  • Copernicus Global Land Service (CGLS)
    • CGLS Soil Water Index (SWI) products
  • EUMETSAT
    • ASCAT Soil Moisture at 12.5 km Swath Grid - Metop
    • ASCAT Soil Moisture at 25 km Swath Grid - Metop
    • ASCAT GDS Level 1 Sigma0 resampled at 12.5 km Swath Grid - Metop
    • ASCAT GDS Level 1 Sigma0 resampled at 25 km Swath Grid - Metop

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.

By default, data from all Metop satellites will be aggregated together. To aggregate from a subset of satellites, pass a regex matching any combination of "A", "B", and "C" to the --sat argument. E.g. --sat A, --sat [AB], --sat *, --sat [ABC], etc.

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 --sat [AB]

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

Re-gridding 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 using a nearest neighbor approach. Either a single swath file or folder containing the swath files can be used as input argument.

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

Resampling 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 using an inverse distance weighting. Either a single swath file or folder containing the swath files can be used as input argument.

ascat_swath_resample /path/to/input/file /path/to/output 0.1 --grid_store /path/to/tmp/folder --suffix _resample_0.1deg --neighbour 6 --radius 10000

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.
  • Set up the development environment with uv: uv sync (add --extra grib for GRIB support)
  • 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
  • Run the tests with uv run pytest
  • Submit a pull request

Metadata

Release files for ascat 2.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ascat 2.8.0
File Size Uploaded
ascat-2.8.0.tar.gz 347.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ascat 2.8.0
File Interpreter ABI Platform
ascat-2.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 742.1 kB

Release files / ascat-2.8.0.tar.gz

Download URL ascat-2.8.0.tar.gz
Size 347.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e5d642711d10090f67824e6d647bf6644b17fd9858d3eedfade2253bd9a95437
BLAKE2b-256 checksum
How to use checksums
22df69cb6c970dd681adb28e1e6bcb10aa3fae33bb2281be8f724f364179916c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ascat-2.8.0-py3-none-any.whl

Download URL ascat-2.8.0-py3-none-any.whl
Size 395.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f689a6b4c439851baaa551123a6fedb62e0f2488bc842dfab223ec5a5880b737
BLAKE2b-256 checksum
How to use checksums
726e71bfb26ddd3bd2c7c51a3380b7d1a6a2fe65c1626d7aeb41c3faa0fa88f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

2.8.1

2 release files

This release

2.8.0 This release

2 release files

2.7.0

2 release files

2.6.5

2 release files

2.6.4

2 release files

2.6.3

2 release files

2.6.2

2 release files

2.6.1

2 release files

2.6.0

2 release files

2.5.5

2 release files

2.5.4

2 release files

2.5.3

2 release files

2.5.2

2 release files

2.5.1

2 release files

2.4.4

2 release files

2.4.3

2 release files

2.4.2

2 release files

2.4.1

2 release files

2.4.0

2 release files

2.3.1

1 release file

2.3.0

1 release file

2.2.0

1 release file

2.1.1

2 release files

2.1.0

2 release files

2.0.6

2 release files

2.0.5

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.2.0

2 release files

1.1.2

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.2

1 release file

1.0

1 release file

0.10

1 release file

0.9

1 release file

0.8

1 release file

0.7

1 release file

0.6

1 release file

0.5

2 release files

0.4

2 release files

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page