No project description provided
Project description
Environmental measures from mediterranean see
This package provides several utilities for requesting environmental measures in the Mediterrannean see.
Installation
In order to install the package, you can install the latest release with :
pip install medenv
You can also install, using pip, the current version on the main branch by either :
python3 -m pip install git+https://github.com/jeremyfix/medenv.git
Or, you can also install it by cloning the repository
git clone https://github.com/jeremyfix/medenv.git
python3 -m venv venv
source venv/bin/activate
python -m pip install medenv
Usage
Check the examples in the examples/ directory, but basically, grabbing environmental variables require a Fetcher to which you specify which features you want to grab and then provides (latitude, longitude, time, depth) requests:
features = [
"sea-surface-temperature",
"sea-surface-salinity",
"bathymetry",
"temperature",
"salinity",
"chlorophyl-a",
"nitrate",
"phosphate",
"ammonium",
"phytoplankton-carbon-biomass",
"oxygen",
"net-primary-production",
"ph",
"alkalinity",
"dissolved-inorganic-carbon",
"northward-water-velocity",
"eastward-water-velocity",
# 2D features
"mixed-layer-thickness",
"sea-surface-above-geoid",
"surface-partial-pressure-co2",
"surface-co2-flux",
]
fetcher = medenv.Fetcher(features, reduction="mean")
date = datetime.datetime(year=2012, month=9, day=22, hour=14)
long, lat = 13.63, 43.55
tol_spatial = 0.2
long0 = (long - tol_spatial / 2, long + tol_spatial / 2)
lat0 = (lat - tol_spatial / 2, lat + tol_spatial / 2)
depth = 6
values, info_values = fetcher.get_values(date, (long0, lat0), depth)
The request accepts a range for the longitude/latitude and a single value for the date and depth. For both the date and depth, the fetcher will grab the closest values.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file medenv-2.0.0.tar.gz.
File metadata
- Download URL: medenv-2.0.0.tar.gz
- Upload date:
- Size: 22.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac5f29f4bd80be00625ece87eea02ac0a8f6208406df3ff51419ebf883e485c9
|
|
| MD5 |
f533e204d5741f1da39b53fe1dd34369
|
|
| BLAKE2b-256 |
af7e75bce1c3a3f0caf65e5cf20a550b1fa3c501a1251eab5981082f2316eda2
|
Provenance
The following attestation bundles were made for medenv-2.0.0.tar.gz:
Publisher:
ci-cd.yml on jeremyfix/medenv
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
medenv-2.0.0.tar.gz -
Subject digest:
ac5f29f4bd80be00625ece87eea02ac0a8f6208406df3ff51419ebf883e485c9 - Sigstore transparency entry: 979718642
- Sigstore integration time:
-
Permalink:
jeremyfix/medenv@b2a77e2f275fbedf470c5b6553772adffc1acb80 -
Branch / Tag:
refs/tags/2.0.0 - Owner: https://github.com/jeremyfix
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-cd.yml@b2a77e2f275fbedf470c5b6553772adffc1acb80 -
Trigger Event:
push
-
Statement type:
File details
Details for the file medenv-2.0.0-py3-none-any.whl.
File metadata
- Download URL: medenv-2.0.0-py3-none-any.whl
- Upload date:
- Size: 24.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9d1fa4b9894803a1f05b755ecb31465fbc49b588dc04e35608c54be3bd4a6c2
|
|
| MD5 |
99b97f7c89fc05237955ed6429d79471
|
|
| BLAKE2b-256 |
ca768593a52d19cfa4f273d11cf90e0085452810bc08251abf6b99cba2faf3df
|
Provenance
The following attestation bundles were made for medenv-2.0.0-py3-none-any.whl:
Publisher:
ci-cd.yml on jeremyfix/medenv
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
medenv-2.0.0-py3-none-any.whl -
Subject digest:
d9d1fa4b9894803a1f05b755ecb31465fbc49b588dc04e35608c54be3bd4a6c2 - Sigstore transparency entry: 979718754
- Sigstore integration time:
-
Permalink:
jeremyfix/medenv@b2a77e2f275fbedf470c5b6553772adffc1acb80 -
Branch / Tag:
refs/tags/2.0.0 - Owner: https://github.com/jeremyfix
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-cd.yml@b2a77e2f275fbedf470c5b6553772adffc1acb80 -
Trigger Event:
push
-
Statement type: