Skip to content

pedromontero/CLEANATLANTIC

Repository files navigation

CLEANATLANTIC

All the code of CleanAtlantic developed by INTECMAR

AIM:

The main goal of these programs is to count the beaching particles of the outputs of MOHID Langrangian model (old version) and insert in segments of coastlines. These segments are stored in PostGIS database.

SCRIPTS:

  • hdflitter: Count particles from a HDF5 MOHID Lagrangian file with LITTER option into each poligon of a buffer stored in a CleanAtlantic Database, and insert the results into the same db.

  • insertbuffer: Insert origin, buffers and poligons reading a shapefile. It is old fashion code

  • insertorde: Insert a order table for some polygons of a buffer.

  • pegspeed: Calculate the velocity of a peg, and the velocitiy from a MOHID Hydrodynamic output on the peg spots, and save the results in csv and xlsx format

  • windspeed: Read a WRF output of wind and save the lefdown node matching the locations from a CSV file.

  • cleanatlantic: Some libs for deal with buffers and partics, read mohid hdf files, and find ij from a lat, lon position

  • stuff: Folder with old code

MORE:

In order to use these scripts, some previous requirements must be done:

  1. A former version MOHID Lagrangian model output with LITTER option ON is needed. The scripts will count the beached particles from this output. More information in www.mohid.com

  2. A PostGIS Database with the next schema:

image info

  • buffers: A buffer means a set of polygons for a segmented coastline

    • nome name
  • poligonos: (polygons) Each polygon belongs to a buffer.

    • id_buffer: foreign key of buffers table
    • poligono: geometry of a polygon
  • cantidade: (ammount): Amount of pilled-up particles

    • cantidade: Integer with the amount of pilled-up particles
    • data: Datetime
    • id_orixe: Foreign key of origin
    • id_poligono: Foreign key of polygon
    • tempo: Pilled-up duration hours
  • orixes: (origins): reference to the simulation

    • tipo: Name of the origin (simulation) of the particles.
  1. A shapefile with the polygons of a buffer regarding to a segmentated coastline. This shape will be inserted into the PostGIS database using insertbuffer script.

About

All the code of CleanAtlantic

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages