爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 5741|回复: 2

wrf_user_ll_to_ij

[复制链接]

新浪微博达人勋

发表于 2017-3-31 16:53:46 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x
function wrf_user_ll_to_ij (nc_file, lons, lats, res)
Usage: loc = wrf_user_latlon_to_ij (a, 100., 40., res)
Usage: loc = wrf_user_latlon_to_ij (a, (/100., 120./), (/40., 50./), res)
Convert a lon/lat location to the nearest x/y location. This function makes use of map information to find the closest point, so this returned value may potentially be outside the model domain.
lons/lats can be scalars or arrays.
Optional resources:
res@returnInt - If set to False, the return values will be real (default is True with integer return values)
res@useTime - Default is 0. Set if want the reference longitude/latitudes must come from a specific time - one will only use this for moving nest output which has been stored

请问如果我把很多时次放在一个文件里了。然后想要看其中某个时次的某个经纬度是在第几个格点上应该怎么写啊?
我是按照官网上面的设置:
llres=True
llres@ReturnInt = True
llres@UseTime = 24
locij=wrf_user_ll_to_ij(f,100.0,20.0,llres)-1
结果发现locij算出的还是第一个时次的值。我想要这个文件中第24个时次的结果,求大神指教

密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2019-4-21 16:38:46 | 显示全部楼层
想问下你解决了吗
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表