Skip to main content

No project description provided

Project description


Logo

GERG Plotting

Data plotting package for GERG
Explore the docs »

Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. License
  6. Contact
  7. Acknowledgments

About The Project

This project was created to streamline and standardize the process of generating plots at GERG.

Built With

Python

Getting Started

There are two ways to get started

  1. Create a fresh virtual environment using your favorite method and install the package
  2. Use an already established virtual environment and install the package

Dependencies

I have provided a list of the dependencies and their versions below.

List of dependencies:

  • python = 3.12
  • numpy = 2.0.0
  • pandas = 2.2.2
  • matplotlib = 3.9.1
  • xarray = 2024.6.0
  • attrs = 23.2.0
  • netcdf4 = 1.7.1.post1
  • cmocean = 4.0.3
  • scipy = 1.14.0
  • mayavi = 4.8.2

Installation

  1. Activate your virtual environment
  2. Use pip to install pip install gerg_plotting

Usage

Plot data at GERG using Python.

Example: Create a set of maps showing data point temperature, salinity, depth, and time

from gerg_plotting import MapPlot,Bounds,data_from_csv
import matplotlib.pyplot as plt
import cartopy.crs as ccrs

# Define bounds
bounds = Bounds(lat_min = 24,lat_max = 31,lon_min = -99,lon_max = -88,depth_top=-1,depth_bottom=1000)
# Let's read in the example data
data = data_from_csv('example_data/sample_glider_data.csv')
data.bounds = bounds

# Init subplots
fig,ax = plt.subplots(figsize=(10,15),nrows=4,subplot_kw={'projection': ccrs.PlateCarree()},layout='constrained')
# Init MapPlot object
plotter = MapPlot(data=data,grid_spacing=3)
# # Generate Scatter plots on one figure
plotter.scatter(fig=fig,ax=ax[0],var='temperature',show_bathy=True,pointsize=30)
plotter.scatter(fig=fig,ax=ax[1],var='salinity',show_bathy=True,pointsize=30)
plotter.scatter(fig=fig,ax=ax[2],var='depth',show_bathy=True,pointsize=30)
plotter.scatter(fig=fig,ax=ax[3],var='time',show_bathy=True,pointsize=30)
plt.show()
fig.savefig('example_plots/map_example.png',dpi=500,bbox_inches='tight')

png of maps

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Alec Krueger - alecmkrueger@tamu.edu

Project Link: https://github.com/alecmkrueger/gerg_plotting

Acknowledgments

  • Alec Krueger, Texas A&M University, Geochemical and Environmental Research Group, alecmkrueger@tamu.edu

(back to top)

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

gerg_plotting-0.0.34.tar.gz (57.4 MB view details)

Uploaded Source

Built Distributions

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

gerg_plotting-0.0.34-py3-none-any.whl (57.4 MB view details)

Uploaded Python 3

gerg_plotting-0.0.34-cp312-cp312-win_amd64.whl (57.4 MB view details)

Uploaded CPython 3.12Windows x86-64

File details

Details for the file gerg_plotting-0.0.34.tar.gz.

File metadata

  • Download URL: gerg_plotting-0.0.34.tar.gz
  • Upload date:
  • Size: 57.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.8 Windows/11

File hashes

Hashes for gerg_plotting-0.0.34.tar.gz
Algorithm Hash digest
SHA256 8f45a21525381c592ee3b640d4e2b7c06347f97040d93781e324dc923d436130
MD5 bb51d9ef30bf996af4198483e9732366
BLAKE2b-256 9b4bfdb3bbc31b80843abf23e7e4a7cc1bb996baf45ce060bd3ffa3991be731b

See more details on using hashes here.

File details

Details for the file gerg_plotting-0.0.34-py3-none-any.whl.

File metadata

  • Download URL: gerg_plotting-0.0.34-py3-none-any.whl
  • Upload date:
  • Size: 57.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.8 Windows/11

File hashes

Hashes for gerg_plotting-0.0.34-py3-none-any.whl
Algorithm Hash digest
SHA256 8231f76873a307f5f730bc4beee6f09e69ad6f4b25e0536ccb4143cee8de2489
MD5 8a2aab321ab2181043e68a2c01484033
BLAKE2b-256 895be7591856dbb9ce3cd6bed6544f3cf16e2b6992346742f9e0da82bcbe2568

See more details on using hashes here.

File details

Details for the file gerg_plotting-0.0.34-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for gerg_plotting-0.0.34-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a8d380404461a4e56308069fa10a7cf52dfaed2bff22980b554570397835ffaf
MD5 16289ba03663d1c5ceede1ac45c0f54c
BLAKE2b-256 f34f35c30b3dc290d214774af2a624dd6fa84193c8200c1e50ea61b3f721a6bc

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