Skip to main content

SMOS (Soil Moisture and Ocean Salinity) image data readers and TS converter

Project description

ci cov pip doc doi

SMOS (Soil Moisture and Ocean Salinity) data readers and time series conversion tools.

Works great in combination with pytesmo.

Documentation & Software Citation

To see the latest full documentation click on the docs badge at the top. To cite this package follow the Zenodo badge at the top and export the citation there.

Installation

Before installing this package via pip, please install the necessary conda dependencies:

$ conda create -n smos python=3.12
$ conda env update -f environment.yml -n smos

Then

$ pip install smos

should work.

Example installation script

The following script will install miniconda and setup the environment on a UNIX like system. Miniconda will be installed into $HOME/miniconda.

wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
git clone git@github.com:TUW-GEO/smos.git smos
cd smos
conda env create -f environment.yml
source activate smos

This script adds $HOME/miniconda/bin temporarily to the PATH to do this permanently add export PATH="$HOME/miniconda/bin:$PATH" to your .bashrc or .zshrc

The second to last line in the example activates the smos environment.

After that you should be able to run:

pytest

to run the test suite.

Supported Products

Currently the following products are supported, additional products can be added.

Build Docker image

  • Check out the repo at the branch/tag/commit you want bake into the image

  • Make sure you have docker installed and run the command (replace the tag latest with something more meaningful, e.g. a version number)

docker build -t smos:latest . 2>&1 | tee docker_build.log

This will execute the commands from the Dockerfile. I.e. install a new environment from the environment.yml file and install the checked out version of the smos package.

To build and publish the image online, we have a GitHub Actions workflow in .github/workflows/docker.yml

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 against our master branch for new features or bug fixes.

Guidelines

If you want to contribute please follow these steps:

  • Fork the smos repository to your account

  • make a new feature branch from the smos master branch

  • Add your feature

  • please include tests for your contributions in one of the test directories We use py.test so a simple function called test_my_feature is enough

  • submit a pull request to our master branch

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

smos-0.3.1.tar.gz (803.7 kB view details)

Uploaded Source

Built Distribution

smos-0.3.1-py2.py3-none-any.whl (34.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file smos-0.3.1.tar.gz.

File metadata

  • Download URL: smos-0.3.1.tar.gz
  • Upload date:
  • Size: 803.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.20

File hashes

Hashes for smos-0.3.1.tar.gz
Algorithm Hash digest
SHA256 6bb9c4372531536fdfffb2ca7be1e9176326d2da1f1fad73d426aec9dca35f4a
MD5 6fab7fb71b291f0bb6a6ff7274fa7d2b
BLAKE2b-256 0cb13abf993aed96f79974c70c070afee318fb048288d1dc53953298d1604e00

See more details on using hashes here.

File details

Details for the file smos-0.3.1-py2.py3-none-any.whl.

File metadata

  • Download URL: smos-0.3.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 34.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.20

File hashes

Hashes for smos-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5a2073f152d963766e820899afc27a34e54561adc249c4dc8e41e9df9cb8bd5f
MD5 f8b41d78902b27b5d1b13f614b12e637
BLAKE2b-256 30355e0988b9f1d989e49916dcead7053d776b1810bdee513b36f62b2023f531

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