登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 贪吃熊 于 2023-12-1 10:34 编辑
a = addfile("met_em.d01.2016-10-06_00:00:00.nc","w") txtfile = "parameters.txt" asciiwrite(txtfile,a) PRES = a->PRES txtfile = "PRES.txt" asciiwrite(txtfile,PRES) new_PRES = where(PRES .gt. 1.,1.,PRES) b = addfile("new_met_em.d01.2016-10-06_00:00:00.nc", "c") b->PRES = new_PRES 作用将原始文件的数据提取出来,赋值给参数PRES,将PRES中的数据与一对比,将大于1的数据全部换为1,存在new_PRES中。最后将new_PRES存在新创建的文件中。
|