Skip to main content

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

medenv-1.1.0.tar.gz (21.9 kB view details)

Uploaded Source

Built Distribution

medenv-1.1.0-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file medenv-1.1.0.tar.gz.

File metadata

  • Download URL: medenv-1.1.0.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for medenv-1.1.0.tar.gz
Algorithm Hash digest
SHA256 0ad06a50478a5657f83c099d5f428478d737df77d955f7ce393eee81b9bde94c
MD5 2ea445c4c8935385ff83b38525534cb0
BLAKE2b-256 29f43693caafe9a95cb3b81ea04369027b4fb4548ce8e59b5a4185dc7f707b61

See more details on using hashes here.

File details

Details for the file medenv-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: medenv-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 24.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for medenv-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 415f2c10c940cb33c95af3559dfcba13c969566551fcf38caaff4b832a177fe6
MD5 a91fcf32230e684e98ae8304545e28b1
BLAKE2b-256 e85a228cecb6ca10f6fa686aaa819ff8dec3b108d308de76a6560989a03ad3c8

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