Skip to content

Instantly share code, notes, and snippets.

View tomsail's full-sized avatar

Thomas Saillour tomsail

  • European Commission (JRC)
  • Ispra (VA), Italy
View GitHub Profile
@tomsail
tomsail / world_maritime_sectors.json
Last active June 28, 2024 12:00
World maritime sectors. 2 levels of Hierarchy - oceans and names - simplified version of the world maritime borders from https://www.naturalearthdata.com/downloads/10m-physical-vectors/10m-physical-labels/. Created with this notebook: https://tomsail.github.io/static/renumber.html
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tomsail
tomsail / world_surfspots.json
Created June 9, 2024 16:50
surf spots of the whole world
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tomsail
tomsail / decluster_seaset_.ipynb
Created February 28, 2024 22:15
This notebook tries to illustrate the declustering method used for the forcing the nodes inside the meshing of the world model
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tomsail
tomsail / mesh_global.py
Last active February 28, 2024 09:44
Mesh world coastlines (loop from 40km up 1km target resolution)
from shapely.geometry import Point
from sklearn.cluster import DBSCAN
import matplotlib.pyplot as plt
import pyposeidon.model as pm
import pyposeidon.utils.pplot
import shapely
import geopandas as gp
import pandas as pd
import numpy as np
import os
@tomsail
tomsail / pyposeidon_get_started.md
Created January 8, 2024 14:02
PyPoseidon Dev Guide for Linux Users

PyPoseidon Dev Guide for Linux Users

This guide was done initially by @pmav99 for dealing with restricted LINUX environments (without sudo permissions)


❗ This guide has been written for Linux users. Some functions could work or be adapted for Windows / macOs users but it hasn't been tested yet.


After having installed the pyposeidon libraries, you'll be able to

  • mesh automatically using :
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.