Project your maritime data onto the World Ocean.
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
andspilhaus.py
, which contain the main functions that you may want to use, andexample.R
andexample.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
andfrom_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.