项目作者: cesar-rocha

项目描述 :
Code for a minimal NIW-QG model
高级语言: Python
项目地址: git://github.com/cesar-rocha/niwqg.git
创建时间: 2017-02-27T01:21:10Z
项目社区:https://github.com/cesar-rocha/niwqg

开源协议:Other

下载


Code for a special class of solutions of the Xie & Vanneste (2015) coupled model in a doubly periodic domain.

NIWQG organogram

Installation

This software is written in python3 and depends on numpy and h5py. I strongly
recommend the python3 pre-packaged on Anaconda.
This package comes with numpy. To install h5py, use Anaconda’s package manager:

  1. conda install h5py

For a more comprehensive installation or update with conda, run

  1. make install

Installing niwqg

If you’re a git user, fork and clone your fork of the niwqg repository.
Alternatively, just download the repository by clicking on the link on the
upper-right corner of this page.

Inside the root niwqg directory, install the package:

  1. python setup.py install

If you plan to make changes to the code, then setup the development mode:

  1. python setup.py develop

Testing niwqg

If you have pytest, then run

  1. make test

Alternatively, to in the test directory

  1. cd niwqg/tests

and run all unit tests using nose:

  1. nosetests

You can also run this simple example
and verify the energy budget.

Documentation

Some documentation is available here. Also check the docstrings of
classes and methods.

Development

The code is under rapid development by @crocha700
as part of the project “Stimulated Loss of Balance” (SLOB) with
@glwagner and @wry55.

Please, submit contributions via pull-request of
a cut-off branch (not master).

Funding

This project is funded by the National Aeronautics and Space Administration under grant NNX16AO5OH.