由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Computation版 - how to assign values to NETCDF file?
相关主题
请问这个mpi程序有什么问题?请教一个有限元的问题
C++ questionsmathematica问题
求教PCA[转载] 紧急求助关于fractal dimension calculator
问一个matlab简单的问题poisson equ with neumann boundary question
老板的程序在unix上运行没问题求助:DGBTRS
矩阵问题求解高维 PCA
急:Origin的3D画图问题一个循环的问题
再请教Re: 请教大家c++ arrayDeloitte Hong Kong -- Computer Science / IT Position
相关话题的讨论汇总
话题: netcdf话题: self话题: assign话题: file
进入Computation版参与讨论
1 (共1页)
r**********e
发帖数: 28
1
I am just start to learn use netcdf file.
I am wondering if anyone know how to assign a data value to a variable in
netcdf file.
Here is my matlab program
self=netcdf('test.cdf','clobber'); % THIS IS TO OPEN A netcdf FILE
self.myGlobalAttribute =ncchar('test') % ASSIGN A GLOBAL ATTRIBUTE
self('myRecordDimension')=1 % DEDFINE RECORD DEMINSION
r = self('myRecordDimension')
self('myDimension') = 40 % DEFINE VARIABLE DIMENSION
d=self('myDimension')
self{'myVariable'} = nc
l***s
发帖数: 11
2

actually,I got acquainted with NETCDF using c/fortran77,
in http://www.unidat.ucar.edu
there are lot of information about netcdf,
current version of netcdf is 3.5.0 or 3.5.1 maybe,
of course,there are netcdf for fortran90 and java,or perl,python,ruby,a
nd matlab
in my opinion, you'd better to begin with c, it's most compact, very easy to
understand.
hope it would make any sense.

【在 r**********e 的大作中提到】
: I am just start to learn use netcdf file.
: I am wondering if anyone know how to assign a data value to a variable in
: netcdf file.
: Here is my matlab program
: self=netcdf('test.cdf','clobber'); % THIS IS TO OPEN A netcdf FILE
: self.myGlobalAttribute =ncchar('test') % ASSIGN A GLOBAL ATTRIBUTE
: self('myRecordDimension')=1 % DEDFINE RECORD DEMINSION
: r = self('myRecordDimension')
: self('myDimension') = 40 % DEFINE VARIABLE DIMENSION
: d=self('myDimension')

1 (共1页)
进入Computation版参与讨论
相关主题
Deloitte Hong Kong -- Computer Science / IT Position老板的程序在unix上运行没问题
c++选择题求解矩阵问题求解
Database Administrator Job opportunity急:Origin的3D画图问题
Database Administrator Job opportunity再请教Re: 请教大家c++ array
请问这个mpi程序有什么问题?请教一个有限元的问题
C++ questionsmathematica问题
求教PCA[转载] 紧急求助关于fractal dimension calculator
问一个matlab简单的问题poisson equ with neumann boundary question
相关话题的讨论汇总
话题: netcdf话题: self话题: assign话题: file