Giter Club home page Giter Club logo

nmc_met_base's Introduction

气象应用开发基本程序库

提供一些关于气象科学计算的基础功能函数,包括数组处理、数学函数、物理常数、时间处理、客观分析等模块;
以及气象诊断分析程序,包括动力, 热力, 水汽和天气特征分析等。

Only Python 3 is supported. 建议安装Anaconda数据科学工具库, 已包括scipy, numpy, matplotlib等大多数常用科学程序库.

Install

Using the fellowing command to install packages:

  pip install nmc-met-base
  • 若要安装Github上的开发版(请先安装Git软件):
  pip install git+git://github.com/nmcdev/nmc_met_base.git
  • 或者下载软件包进行安装:
  git clone --recursive https://github.com/nmcdev/nmc_met_base.git
  cd nmc_met_base
  python setup.py install

可选支持库:

  • pyinterp, conda install pyinterp -c conda-forge

nmc_met_base's People

Contributors

nmc-dave avatar sprite2200 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nmc_met_base's Issues

关于积分水汽通量计算的问题

您好,在使用 https://github.com/nmcdev/nmc_met_base/blob/master/nmc_met_base/moisture.py 计算水汽通量时遇到以下问题,希望跟您交流:

1)第16-27行,函数定义为“def cal_ivt(q, u, v, lon, lat, lev, surf_pres=None):”,但在后面解释时,“lon (numpy array): vertical level, hPa, [nlev]; lat (numpy array): longitude, [nlon]; lev (numpy array): latitude, [nlat]”这三个参数的注释不匹配,根据后面的计算过程来看,应该是以定义时的参数为准吧?

2)在以定义参数为准代入相关数据进行计算时,第46行会报错“index 1 is out of bounds for axis 0 with size 1”,暂时还没理解是什么问题,不知您是否有代入相关数据计算?

期待得到您的解答,谢谢!

计算流函数、势函数 相关的问题

来自 Zhenchen LIU的问题:

在使用 https://github.com/nmcdev/nmc_met_base/blob/master/nmc_met_base/psi_phi.py 上发布的 Python 版 计算流函数、势函数 相关的问题,希望跟您交流:

1)第94行 “pq = optimize.minimize(ja,x,method='L-BFGS-B',jac=grad_ja,” 中的 ja、grad_ja 是否调用的子函数,这边写法是否应该是 有输入参数?

2)第88-89、185-186等含有“.shape[0]/2”的行,类似于“ x[:x.shape[0]/2] = IPSI.reshape(M1*N1)”中的下标引用“x.shape[0]/2”报错“#TypeError: slice indices must be integers or None or have an index method”,感觉可能要加个“int()”,

3)我用自己的数据,会在第94行报错如下:。
不知道是否是我的数据问题。基于3),冒昧问一声,这个系列程序是否有对应的 样本数据,可供试验。^_^

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.