在Panoply中绘制Netcdf文件时出现问题 [英] Problems plotting Netcdf files in Panoply

查看:272
本文介绍了在Panoply中绘制Netcdf文件时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法使用Panoply从.nc文件创建图.错误消息显示为:轴包含NaN".有解决方法吗?

I can't create plot from .nc files using Panoply. The error message reads: "Axis contains NaN". Is there a workaround ?

推荐答案

将NaN更改为正常的缺失值",然后使用Panoply. netCDF运算符(NCO)命令ncatted与NaN一起使用. 首先设置缺少的值(即_FillValue的值 属性),将有问题的变量设置为IEEE NaN值:

Change the NaNs to normal "missing values", then use Panoply. The netCDF Operator (NCO) command ncatted works with NaNs. First set the missing value (i.e., the value of the _FillValue attribute) for the variable(s) in question to the IEEE NaN value:

ncatted -a _FillValue ,, o,f,NaN in.nc

ncatted -a _FillValue,,o,f,NaN in.nc

然后将缺少的值从IEEE NaN值更改为 普通的IEEE编号,例如1.0e36(或其他原始编号) 缺失值是).现在使用Panoply.

Then change the missing value from the IEEE NaN value to a normal IEEE number, like 1.0e36 (or to whatever the original missing value was). Now use Panoply. More at

http://nco.sf.net/nco.html#NaN

这篇关于在Panoply中绘制Netcdf文件时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆