IBCAO_py / 27 Jul 2015
tags: ibcao / arctic / python / numpy / scipy

IBCAO_py: A python class which sets up the IBCAO (projection and loads file) for use with Matplotlib.

Usage

Download the IBCAO grid: ngdc.noaa.gov

Run test with:

$ python ibcao.py

or in your code do something like:

  print ("testing ibcao class")
  import matplotlib.pyplot as plt
  import matplotlib.cm as cm
  import cartopy.crs as ccrs

  i = IBCAO ()

  f = i.template (10) # only plot every 10th data point

  # lets put some text along the parallels
  lat = np.arange (65, 90, 5)
  lon = np.repeat (0, len(lat))

  # regular lat, lon projection
  g = ccrs.Geodetic ()

  for lon, lat in zip (lon, lat):
    plt.text (lon, lat, str(lat), transform = g)

  # and some along the meridians
  lon = [-45, 45, 135, -135]
  lat = np.repeat (70, len(lon))

  for lon, lat in zip (lon, lat):
    plt.text (lon, lat, str(lon), transform = g)

  # also; the north pole
  plt.text (0, 90, "NP", transform = g)

  plt.show ()

check out the test cases in tests/ for some inspiration on how to use the class.

Reference

The IBCAO is provided by:

Jakobsson, M., L. A. Mayer, B. Coakley, J. A. Dowdeswell, S. Forbes, B. Fridman, H. Hodnesdal, R. Noormets, R. Pedersen, M. Rebesco, H.-W. Schenke, Y. Zarayskaya A, D. Accettella, A. Armstrong, R. M. Anderson, P. Bienhoff, A. Camerlenghi, I. Church, M. Edwards, J. V. Gardner, J. K. Hall, B. Hell, O. B. Hestvik, Y. Kristoffersen, C. Marcussen, R. Mohammad, D. Mosher, S. V. Nghiem, M. T. Pedrosa, P. G. Travaglini, and P. Weatherall, The International Bathymetric Chart of the Arctic Ocean (IBCAO) Version 3.0, Geophysical Research Letters, doi: 10.1029/2012GL052219.

Author: Gaute Hope / gaute.hope@nersc.no

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.