Skip to main content

Satellite data download, crop, and collocation with model outputs

Project description

OCSTrack: Ocean-Model-Data Collocation Tools

CI/CD PyPI version codecov Pylint Score License: CC0-1.0

OCSTrack is an object-oriented Python package for the along-track collocation of satellite (2D) and Argo Float (3D) data with ocean circulation and wave model outputs. It simplifies the process of aligning diverse datasets, making it easier to compare and validate model simulations against observational data.


Key Features

  • Automated Data Fetching: Downloads satellite altimetry and Argo float data from public repositories.
  • Model Support: Natively handles outputs from SCHISM, ADCIRC, and SWAN models.
  • Flexible Collocation: Performs temporal and spatial collocation for both 2D surface tracks and 3D profiles.
  • Efficient & Scalable: Uses xarray and dask for efficient, out-of-core computations on large datasets.
  • Customizable: Object-oriented design makes it easy to extend support for new models or observational data types.

Installation

You can install OCSTrack directly from PyPI:

pip install ocstrack

To install the latest development version directly from this repository:

pip install git+https://github.com/noaa-ocs-modeling/OCSTrack.git

Quick Start

Here is a minimal example of how to collocate satellite altimetry data with a SCHISM model run.

from ocstrack import Collocate
from ocstrack.Model import SCHISM
from ocstrack.Observation import Satellite

# 1. Define time range and region of interest
start_date = '2021-05-01'
end_date = '2021-05-05'
bbox = [-76, 34, -72, 38]  # [lon_min, lat_min, lon_max, lat_max]

# 2. Initialize the Model object
# This assumes a SCHISM run directory with standard outputs
schism_run_dir = '/path/to/your/schism/run/'
model = SCHISM(schism_run_dir, start_date=start_date, end_date=end_date)

# 3. Initialize the Observation object
sat_name = 'sentinel-3a' # Example satellite
observation = Satellite(sat_name, start_date=start_date, end_date=end_date, bbox=bbox)

# 4. Create a Collocation object and run the analysis
collocator = Collocate(model, observation)
collocated_dataset = collocator.run(output_path='collocated_data.nc')

print("Collocation complete!")
print(collocated_dataset)

Documentation

For more detailed examples and the full API reference, please see our documentation website:

https://noaa-ocs-modeling.github.io/OCSTrack/

Contributing

We welcome contributions! If you have ideas for new features, find a bug, or would like to improve the documentation, please open an issue or submit a pull request.

License

This project is licensed under the terms of the CC0 1.0 Universal license. See the LICENSE.txt file for details.


Disclaimer

This repository is a scientific product and is not official communication of the National Oceanic and Atmospheric Administration, or the United States Department of Commerce. All NOAA GitHub project code is provided on an "as is" basis and the user assumes responsibility for its use. Any claims against the Department of Commerce or Department of Commerce bureaus stemming from the use of this GitHub project will be governed by all applicable Federal law. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation or favoring by the Department of Commerce. The Department of Commerce seal and logo, or the seal and logo of a DOC bureau, shall not be used in any manner to imply endorsement of any commercial product or activity by DOC or the United States Government.

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

ocstrack-0.2.4.tar.gz (609.8 kB view details)

Uploaded Source

Built Distribution

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

ocstrack-0.2.4-py3-none-any.whl (42.2 kB view details)

Uploaded Python 3

File details

Details for the file ocstrack-0.2.4.tar.gz.

File metadata

  • Download URL: ocstrack-0.2.4.tar.gz
  • Upload date:
  • Size: 609.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for ocstrack-0.2.4.tar.gz
Algorithm Hash digest
SHA256 d0fcc2ee8b3ec143e97df8614b78999928590555d37eb6437d36ae2c724d16ba
MD5 3277ed1aebffd1dc85753e2ae5816f5c
BLAKE2b-256 ea5563a45c6ba14fcad938b6d25d445b2d027e3cae3c791f67fb153b766a0496

See more details on using hashes here.

File details

Details for the file ocstrack-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: ocstrack-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 42.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for ocstrack-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ee78c80c097055e3ea5f1d64f2616d1636b6ea474e3eab1af54cc94d99f6171c
MD5 e8e4bd7a5e57393533acd89275cbde01
BLAKE2b-256 9ff1c43c79757a262086c6fc95ae9f45ec9ac3cfd98f1c80f3a23695c50e7dea

See more details on using hashes here.

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