爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 6522|回复: 0

[作图] 纬度的提取总是报错

[复制链接]
发表于 2019-5-16 18:03:40 | 显示全部楼层 |阅读模式

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

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

x
这是我的数据
Variable: f
Type: file
filename:       cru_ts4.02.1901.2017.pre.dat
path:   /cygdrive/f/ML/shuju/cru_ts4.02.1901.2017.pre.dat.nc/cru_ts4.02.1901.201                                                                                            7.pre.dat.nc
   file global attributes:
      Conventions : CF-1.4
      title : CRU TS4.02 Precipitation
      institution : Data held at British Atmospheric Data Centre, RAL, UK.
      source : Run ID = 1811131722. Data generated from:pre.1804231108.dtb
      history : Tue 13 Nov 2018 20:31:27 GMT : User ianharris : Program makegrid                                                                                            sauto.for called by update.for
      references : Information on the data is available at http://badc.nerc.ac.u                                                                                            k/data/cru/
      comment : Access to these data is available to any registered CEDA user.
      contact : support@ceda.ac.uk
   dimensions:
      lon = 720
      lat = 360
      time = 1404  // unlimited
   variables:
      float lon ( lon )
         long_name :    longitude
         units :        degrees_east
      float lat ( lat )
         long_name :    latitude
         units :        degrees_north
      float time ( time )
         long_name :    time
         units :        days since 1900-1-1
         calendar :     gregorian
      float pre ( time, lat, lon )
         long_name :    precipitation
         units :        mm/month
         correlation_decay_distance :   450
         _FillValue :   9.96921e+36
         missing_value :        9.96921e+36
      integer stn ( time, lat, lon )
         description :  number of stations contributing to each datum
然后我想提取北半球降水数据
Pre = f->pre(0:1403,{0:90},:)
lat = f->lat
lon = f->lon
结果画出来只有南半球有图,北半球反而没图,不知为何?我想这是不是因为数据上说lat=360
所以我又尝试了这样做
Pre = f->pre(0:1403,{180:359},:)
结果说Pre没有定义
望各位大佬可以解决我的问题
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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