如何在Ubuntu-Linux中安装的python3中打开NC4文件?

how to open a nc4 file in python3 installed in ubuntu-linux?

提问人:Maryam 提问时间:9/13/2023 最后编辑:BarmarMaryam 更新时间:9/13/2023 访问量:17

问:

我在 Ubuntu 上的 python3 上输入了这些命令,我希望打开我的文件,但似乎我没有关闭参数,当我按回车键时,>>>出现在下一行。我错过了什么?

import netCDF4 as nc
fn = the path to my file
ds = nc.Dataset(fn)

什么也没发生!

使用 NetCDF4 导入 Python Linux

评论

0赞 Barmar 9/13/2023
>>>是顶级提示。如果您没有关闭,则参数将出现在下一行。...
2赞 Barmar 9/13/2023
键入以查看变量的值。ds

答: 暂无答案