gpt4 book ai didi

matlab - 读取 .nc 文件时出现问题

转载 作者:太空宇宙 更新时间:2023-11-03 20:25:49 27 4
gpt4 key购买 nike

我得到了这个 .nc 文件。但是,当我这样阅读文件时

ncid = netcdf.open(ncfile)

它只给我一个数字。它应该包含一些数据。我不确定它有什么问题。
谁能提供一些信息?

最佳答案

根据documentation , netcdf.open 只返回 NetCDF ID,不返回数据:

ncid = netcdf.open(source) opens source, which can be the name of a NetCDF file or the URL of an OPeNDAP NetCDF data source, for read-only access. Returns a NetCDF ID in ncid.

您可能想使用 ncread .

关于matlab - 读取 .nc 文件时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17836148/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com