我有一个R的SpatialPointsDataFrame,我想保存为netCDF。我可以使用一些帮助格式。 > str(swe)
Formal class 'SpatialPointsDataFrame' [package "sp"] with 5 slots
[email protected] data :'data.frame': 3487 obs. of 5 variables
我有一段代码可以创建一堆.mat文件,但我想将它们保存为netcdf文件(csv或txt也可以),因此无法使用MATLAB的用户可以访问它们。这是我到目前为止的内容 %% Use function to read in
data = read_mixed_csv(filename,'"'); % Creates cell array of data
data = regexprep(data,