admin管理员组文章数量:1310325
SDSLite package version 3.0.1
I hope to use the data I calculated as variables in the nc file, so I first need to create a Dimension structure, but when I create it, the definition of Dimension in the package is
namespace Microsoft.Research.Science.Data;
public struct Dimension
{
internal Dimension(string name, int length)
{
this.name = name;
this.length = length;
}
public string Name
{
get
{
return name;
}
internal set
{
name = value;
}
}
public int Length
{
get
{
return length;
}
internal set
{
length = value;
}
}
}
The set and constructor access types are internal, so I cannot create a Dimension structure or operate on the data in the Dimension.
I think there should be other ways to operate nc files, but I have looked for some classes related to nc files under Microsoft.Research.Science.Data
, but I haven't found a good way.
I hope someone familiar with the sdslite package or familiar with building NetCDF files can tell me if there is a better way to store C# data in nc files. I hope to store a List<List<List<List<double>>>> ESlist = new ();
data, the first layer list is latitude, the second layer is longitude, and the third and fourth layers are stored as a double[,,]
variable in NetCDF.
本文标签:
版权声明:本文标题:How to use the SDSLite package to convert C# objects into variables and dimensions and create a new NetCDF file to store them? - 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741810672a2398773.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论