爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 6894|回复: 6

[其他] 各位大佬,我有一个逐月降水数据文件,请问怎么提取每年3、4、5月份降水数据

[复制链接]
发表于 2019-5-13 21:24:07 | 显示全部楼层 |阅读模式

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

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

x
各位大佬,我有一个逐月降水数据文件,请问怎么提取每年3、4、5月份降水数据,数据具体内容在附件里,不知道咋回事,我以图片上传上去是一个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

图片1.png
图片1.png
图片2.jpg
密码修改失败请联系微信:mofangbao
发表于 2019-5-13 22:13:15 | 显示全部楼层
时间函数配合ind了解一下
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2019-5-15 16:36:41 | 显示全部楼层
time = cd_canlender(time,-1)
timestart  = 198101
timeend = 201601
tistart = ind(time .eq. timestart)
tiend = ind(time .eq. timeend)
preci = month to season
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2019-5-16 13:20:01 | 显示全部楼层
month_to_season
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-5-16 17:28:51 | 显示全部楼层
尽头的尽头 发表于 2019-5-13 22:13
时间函数配合ind了解一下

谢谢,已经解决了
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-5-16 17:31:23 | 显示全部楼层
HDdd 发表于 2019-5-15 16:36
time = cd_canlender(time,-1)
timestart  = 198101
timeend = 201601

谢谢大佬,问题已解决
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2019-9-30 17:07:23 | 显示全部楼层
wsjj 发表于 2019-5-16 17:31
谢谢大佬,问题已解决

可以教一下吗,,我正好也不会~
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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