nmcdev / nmc_met_base Goto Github PK
View Code? Open in Web Editor NEW提供一些关于气象应用开发的基础功能函数,包括数组处理、数学函数、物理常数、时间处理、客观分析等模块。
License: GNU General Public License v3.0
提供一些关于气象应用开发的基础功能函数,包括数组处理、数学函数、物理常数、时间处理、客观分析等模块。
License: GNU General Public License v3.0
来自 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”,暂时还没理解是什么问题,不知您是否有代入相关数据计算?
期待得到您的解答,谢谢!
求给一份接口说明文档
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.