Skip to main content

No project description provided

Project description

Environmental measures from mediterranean see

PyPi Version License

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

medenv-2.0.0.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

medenv-2.0.0-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

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

Hashes for medenv-2.0.0.tar.gz
Algorithm Hash digest
SHA256 ac5f29f4bd80be00625ece87eea02ac0a8f6208406df3ff51419ebf883e485c9
MD5 f533e204d5741f1da39b53fe1dd34369
BLAKE2b-256 af7e75bce1c3a3f0caf65e5cf20a550b1fa3c501a1251eab5981082f2316eda2

See more details on using hashes here.

Provenance

The following attestation bundles were made for medenv-2.0.0.tar.gz:

Publisher: ci-cd.yml on jeremyfix/medenv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for medenv-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9d1fa4b9894803a1f05b755ecb31465fbc49b588dc04e35608c54be3bd4a6c2
MD5 99b97f7c89fc05237955ed6429d79471
BLAKE2b-256 ca768593a52d19cfa4f273d11cf90e0085452810bc08251abf6b99cba2faf3df

See more details on using hashes here.

Provenance

The following attestation bundles were made for medenv-2.0.0-py3-none-any.whl:

Publisher: ci-cd.yml on jeremyfix/medenv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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