Giter VIP home page Giter VIP logo

wave-energy-hindcast's Introduction


CONFIGURATION

Rename hindcast-config as $HOME/.hindcast and edit it to configure the database connection:

cp hindcast-config $HOME/.hindcast chmod u=rw,g=,o= $HOME/.hindcast vim $HOME/.hindcast

Create a user "hindcast_admin":

psql -U postgres -d template1 -c
"create role hindcast_admin with password '...password...' login inherit;"


CREATING THE DATABASE

First create a PostGIS database:

createdb -U postgres -O hindcast_admin hindcast psql -U postgres -d hindcast -c
"create extension postgis;" psql -U postgres -d hindcast -f postgis_owner.sql

Load the hindcast schema:

psql -U hindcast_admin -d hindcast -f hindcast.sql


LOADING THE GRID

Create a directory 'data' under this directory and copy the grid file there:

mkdir data cp /...path-to-grid-file.../fort.14 data/

Run the grid loading script:

python load_grid.py


LOADING THE MODEL DATA

Run the model data loading script:

python load_model_data.py [variable] [year] [file_path]

E.g.: python load_model_data.py tmm10 1999 /...path-to-file.../swan_TMM10.63

wave-energy-hindcast's People

Contributors

nassibnassar avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.