Re: [OctDev] ncenddef problem in octcdf

2010-03-18 Thread Alexander Barth
On Fri, Mar 5, 2010 at 11:15 AM, wrote: > Hi all. > > For "cdf=ncenddef(cdf)", I get the following error: > > error: Error chaning mode: NetCDF: Not a valid data type or _FillValue type > mismatch > > What am I supposed to do? The netcdf library requires that _FillValue has the same type as the

Re: [OctDev] octcdf: defining attribute

2010-03-18 Thread Alexander Barth
On Thu, Mar 18, 2010 at 3:20 PM, Jaroslav Hajek wrote: > On Thu, Mar 18, 2010 at 3:02 PM, Alexander Barth > wrote: >> you could do this like this: >> >> setfield(cdf{'var'},['NOTE_',int2str(N)],'This is fifth note') >> >> setfield allows you to add fields whose names are determined at >> run-time

Re: [OctDev] Error installing octcdf-1.0.17 for octave 3.2.3

2010-03-18 Thread Alexander Barth
Hi Nands and Ron, Ron is right. octcdf can work with the netcdf or libnc-dap libraries. First it checks nc-config, then ncdap-config and then it just tries if -lnetcdf and netcdf.h are present and usable. So if you do not need opendap and you have 'plain' netcdf already installed, you can use thi

Re: [OctDev] octcdf: defining attribute

2010-03-18 Thread Jaroslav Hajek
On Thu, Mar 18, 2010 at 3:02 PM, Alexander Barth wrote: > you could do this like this: > > setfield(cdf{'var'},['NOTE_',int2str(N)],'This is fifth note') > > setfield allows you to add fields whose names are determined at > run-time to a struct. It also works for addition attributes in octcdf. > A

Re: [OctDev] octcdf: defining attribute

2010-03-18 Thread Alexander Barth
you could do this like this: setfield(cdf{'var'},['NOTE_',int2str(N)],'This is fifth note') setfield allows you to add fields whose names are determined at run-time to a struct. It also works for addition attributes in octcdf. Another way could be the use of eval. But it is a good idea to avoid e

Re: [OctDev] NC_UNLIMITED in Octcdf

2010-03-18 Thread Alexander Barth
Hi Nands, if you set the dimension to zero, it means unlimited, e.g. nc('TIME') = 0 Cheers Alexander On Wed, Feb 24, 2010 at 9:50 AM, wrote: > Hi everyone. > > In Matlab, if the dimension's size is not known the following is used : > mexcdf('DIMDEF',nc,'TIME','NC_UNLIMITED'); > I wanted to k

Re: [OctDev] question about subdirs in package/inst

2010-03-18 Thread Michael Creel
On Thu, Mar 18, 2010 at 1:03 PM, Carlo de Falco wrote: > > On 18 Mar 2010, at 10:35, Michael Creel wrote: > > Hi all, >> Is it possible for a package to have subdirectories within the >> package/inst directory? Would .m files in subdirectories be found >> automatically? The reason I ask is becaus

Re: [OctDev] question about subdirs in package/inst

2010-03-18 Thread Carlo de Falco
On 18 Mar 2010, at 10:35, Michael Creel wrote: > Hi all, > Is it possible for a package to have subdirectories within the > package/inst directory? Would .m files in subdirectories be found > automatically? The reason I ask is because I would like to expand > the econometrics package to inc

[OctDev] question about subdirs in package/inst

2010-03-18 Thread Michael Creel
Hi all, Is it possible for a package to have subdirectories within the package/inst directory? Would .m files in subdirectories be found automatically? The reason I ask is because I would like to expand the econometrics package to include some new thing, but I would like to avoid mixing files toget