Skip to content

Project your maritime dataset onto the World Ocean.

License

Notifications You must be signed in to change notification settings

rtlemos/spilhaus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spilhaus

Project your maritime data onto the World Ocean.

SST on Sep 16, 2019

To know more about the Spilhaus projection, see:

Currently, the Spilhaus projection is missing in PROJ, making it unavailable for R and Python enthusiasts, among others: OSGeo/PROJ#1851. This repo contains four scripts:

  • spilhaus.R and spilhaus.py, which contain the main functions that you may want to use, and
  • example.R and example.py, which demonstrate how to use the functions to create and plot a dataset using the Spilhaus projection.

In spilhaus.*, the functions

  • from_lonlat_to_spilhaus_xy and
  • from_spilhaus_xy_to_lonlat

let you move between Mercator and Spilhaus projections; the function

  • make_spilhaus_xy_gridpoints

lets you create a square grid of Spilhaus coordinates; and the function

  • prettify_spilhaus_df

cleans the Spilhaus dataframe and moves a few pixels around (bottom/top and left/right) to make a contiguous ocean.

About

Project your maritime dataset onto the World Ocean.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors