Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • kadlu kadlu
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 17
    • Issues 17
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • public_projects
  • kadlukadlu
  • Issues
  • #73

Closed
Open
Created Sep 10, 2020 by Oliver Kirsebom@kirsebomOwner

gebco bathy data looks weird

The script below uses the ocean class to load and interpolate gebco bathy data. The results look very weird: gebco

from kadlu.geospatial.ocean import Ocean
import numpy as np
import matplotlib
import matplotlib.pyplot as plt

kwargs = dict(south=43.2, north=46.2, west=-61, east=-58)
o = Ocean(load_bathymetry='gebco', **kwargs)
lat = np.linspace(43.2, 46.2, 250)
lon = np.linspace(-61,-58,250)
bathy = o.bathy(lat=lat, lon=lon, grid=True)
fig, ax = plt.subplots()
img = ax.contourf(lon, lat, bathy, 100, cmap=matplotlib.cm.get_cmap('viridis_r'))
fig.colorbar(img, ax=ax, format='%2.0f')# colobar
plt.show()
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking