We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在读取第一类数据时,出现如下bug: File D:\Software\Miniconda3\envs\data_get\Lib\site-packages\nmc_met_io\read_micaps.py:84, in read_micaps_1(fname, limit) 82 if (len(txt) % 24) == 0: 83 txt = np.array(txt) ---> 84 txt.shape = [number, 24] 85 else: 86 txt = np.array(txt) ValueError: cannot reshape array of size 80184 into shape (3084,24)
原因是number=80184既是24也是26的公倍数,我的文件中有26列数据。因此应该将txt的shape变为(3084,26)。
将报错描述中的“if (len(txt) % 24) == 0: ”代码修改如下,即可正常运行 if (len(txt) % 24 == 0) & (number * 24 == len(txt)):
if (len(txt) % 24 == 0) & (number * 24 == len(txt)):
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: