爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 18620|回复: 6

ncl报错

[复制链接]

新浪微博达人勋

发表于 2021-7-21 09:44:02 | 显示全部楼层 |阅读模式
2金钱
ncl报错
提取数据,中途出现错误   Dimension sizes of left hand side and right hand side of assignment do not match
赋值左侧和右侧尺寸不匹配???

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

新浪微博达人勋

发表于 2021-7-21 09:56:43 | 显示全部楼层
是的,左右矩阵大小不同,你把左右矩阵size输出输出看一下
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

发表于 2021-7-21 10:22:27 | 显示全部楼层
程序放出来看一下啊
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2021-7-21 10:33:21 | 显示全部楼层
[root@localhost 2000-2020gribdata]# ncl FNL-WCY.ncl
Copyright (C) 1995-2019 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 6.6.2
The use of this software is governed by a License Agreement.
See http://www.ncl.ucar.edu/ for more details.


Variable: DATADir1
Type: string
Total Size: 8 bytes
            1 values
Number of Dimensions: 1
Dimensions and sizes:        [1]
Coordinates:
(0)        ./200102/


Variable: FILES1
Type: string
Total Size: 8 bytes
            1 values
Number of Dimensions: 1
Dimensions and sizes:        [1]
Coordinates:
(0)        ./200102/20010102.nc


Variable: DATADir1
Type: string
Total Size: 8 bytes
            1 values
Number of Dimensions: 1
Dimensions and sizes:        [1]
Coordinates:
(0)        ./200102/


Variable: FILES1
Type: string
Total Size: 8 bytes
            1 values
Number of Dimensions: 1
Dimensions and sizes:        [1]
Coordinates:
(0)        ./200102/20010202.nc
fatal:Dimension sizes of left hand side and right hand side of assignment do not match
fatal:["Execute.c":8637]:Execute: Error occurred at or near line 36 in file FNL-WCY.ncl

[root@localhost 2000-2020gribdata]# ncl FNL-WCY.ncl
Copyright (C) 1995-2019 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 6.6.2
The use of this software is governed by a License Agreement.
See http://www.ncl.ucar.edu/ for more details.


Variable: DATADir1
Type: string
Total Size: 8 bytes
            1 values
Number of Dimensions: 1
Dimensions and sizes:        [1]
Coordinates:
(0)        ./200401/


Variable: FILES1
Type: string
Total Size: 8 bytes
            1 values
Number of Dimensions: 1
Dimensions and sizes:        [1]
Coordinates:
(0)        ./200401/20040101.nc


Variable: DATADir1
Type: string
Total Size: 8 bytes
            1 values
Number of Dimensions: 1
Dimensions and sizes:        [1]
Coordinates:
(0)        ./200401/


Variable: FILES1
Type: string
Total Size: 8 bytes
            1 values
Number of Dimensions: 1
Dimensions and sizes:        [1]
Coordinates:
(0)        ./200401/20040201.nc


Variable: DATADir1
Type: string
Total Size: 8 bytes
            1 values
Number of Dimensions: 1
Dimensions and sizes:        [1]
Coordinates:
(0)        ./200401/


Variable: FILES1
Type: string
Total Size: 8 bytes
            1 values
Number of Dimensions: 1
Dimensions and sizes:        [1]
Coordinates:
(0)        ./200401/20040301.nc


Variable: DATADir1
Type: string
Total Size: 8 bytes
            1 values
Number of Dimensions: 1
Dimensions and sizes:        [1]
Coordinates:
(0)        ./200401/


Variable: FILES1
Type: string
Total Size: 8 bytes
            1 values
Number of Dimensions: 1
Dimensions and sizes:        [1]
Coordinates:
(0)        ./200401/20040401.nc
fatal:Dimension sizes of left hand side and right hand side of assignment do not match
fatal:["Execute.c":8637]:Execute: Error occurred at or near line 36 in file FNL-WCY.ncl
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2021-7-21 10:35:25 | 显示全部楼层
FNL-WCY.ncl
...png
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2021-7-22 11:11:41 | 显示全部楼层
474620961 发表于 2021-7-21 09:56
是的,左右矩阵大小不同,你把左右矩阵size输出输出看一下

怎么查看矩阵size呢    月份数据不一样大  有影响吗
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2021-9-24 16:24:09 | 显示全部楼层
【已解决】未删除上一个读取的数据  删除后就不报错了
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

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

本版积分规则

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

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

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