Giter Club home page Giter Club logo

nmc_met_base's Issues

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

来自 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),冒昧问一声,这个系列程序是否有对应的 样本数据,可供试验。^_^

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

您好,在使用 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”,暂时还没理解是什么问题,不知您是否有代入相关数据计算?

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

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.