Giter VIP home page Giter VIP logo

qgsolver's Introduction

Overview

This library implements a 3D z-level QG solver in regular grid or in lon/lat grid. It relies on petsc4py for parallelized PV inversions but should also work in serial in the future

Install

qgsolver

Download and install with:

git clone https://github.com/apatlpo/qgsolver.git
cd qgsolver

Install dependencies with conda

The principal dependcy is petsc4py

Download Miniconda3 from the conda website

bash Miniconda3-latest-Linux-x86_64.sh
(specify .miniconda3 and not miniconda3 as target dir for conda)
bash
conda update conda
conda create -n petsc -c conda-forge python=3.6 petsc4py netcdf4 matplotlib snakeviz xarray
source activate petsc

Run on datarmor

Generate input files if necessary on your workstation

cd qgsolver/input/
python create_input_roms.py -o roms_in/

On datarmor, copy input files if necessary:

cp -r /home/slyne/aponte/natl60/qgsolver/input/roms_in /home1/datawork/aponte/qgsolver/

Run qgsolver on Datarmor:

bash
source activate petsc
cd /home/slyne/aponte/natl60/qgsolver/run/
python run_datarmor.py qgsolver/roms_out roms.py /home1/datawork/aponte/qgsolver/roms_in/

API

See doc

qgsolver's People

Contributors

apatlpo avatar slgentil avatar

Stargazers

GitCloner avatar  avatar Ales Kuchar avatar

Watchers

James Cloos avatar  avatar

qgsolver's Issues

reorganize folders

  • clean up dev/run dev/input dev/output codes

  • move dev/run dev/input dev/output to run, input and output

recheck bstate

with analytical implementation

make sure state and bstate are different at initial step

Clean code of 'casename'

One should instead create a new qg class with methods overriding defaults ones

class Dog:
    def bark(self):
        print "WOOF"

class BobyDog( Dog ):
    def bark( self ):
        print "WoOoOoF!!"

otherDog= Dog()
otherDog.bark() # WOOF

boby = BobyDog()
boby.bark() # WoOoOoF!!

cleanup omegainv

  • use state objects, propagate da, grid, state, pvinv objects rather than qg

  • improve doc

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.