Skip to content

castelao/OceanColor

Repository files navigation

Ocean Color

Documentation Status

Search and subset NASA Ocean Color data

NASA provides great resources to search and access its data. This package is intended to fill a gap in obtaining chlorophyll data to be compared with in situ observations by searching pixels within a given time and distance tolerance. For instance, it is used to calibrate chlorophyll fluorescence measurements from Spray underwater gliders.

The OceanColor package was developed at the Instrument Development Group of Scripps Institution of Oceanography in support for the California Underwater Glider Network operations, which is funded by:

  • Global Ocean Monitoring and Observing (GOMO) Program - NOAA
  • Southern California Coastal Ocean Observing System (SCCOOS)

Quickstart - terminal

Let's install it

$ pip install OceanColor

or

$ conda install OceanColor

Let's get the L2 chlorophyll measurements from MODIS-Aqua nearby Scripps' Pier. On the terminal, let's run:

$ OceanColor InRange \
  --username=<earthdata-username> \
  --password=<earthdata-password> \
  --data-type=L2 \
  --time-tolerance=12 \
  --distance-tolerance=15e3 \
  2019-05-21T12:00:00,32.867066,-117.257408

Using it inside Python is more flexible than in the terminal. Check the manual on how to use it.

Alternatives

  • pyModis is a well established and mature package. If you are not satisfied with OceanColor, consider using pyModis. If you are interested in working with full frames (granules), instead of the subset of pixels nearby some reference, pyModis might be a better solution for you.