Good Day,
I do not know how to fix my installation of OctCDF. I followed all of the
offered instructions in the installation section.
I am using Ubuntu 10.4, as I am not allowed to install files inside the
default directories, I configured CPPFLAGS and LDFLAGS as mentioned, also
the libsdir and the includedir for octave are set correctly.
Anyways, octave still fails to find the libnetcdf library file, and I
don't know anymore why that happens.
I would really appreciate if you could be able to help me in any way...
Are there any files that I forgot to check for the default directories?
All variables in octave look correct for me...
Thank you and with best regards,
Toni Kraja
PS: Feel free to take a look into my attached nctest.log
>>>>> processing nctest
***** shared fname, nc
fname = [tmpnam '-octcdf.nc'];
nc = netcdf(fname,'c');
!!!!! test failed
/home/kraja/octave/octcdf-1.1.2/netcdf.oct: failed to load: libnetcdf.so.7: cannot open shared object file: No such file or directory
shared variables
scalar structure containing the fields:
fname = [](0x0)
nc = [](0x0)
***** # Test reading/writing dimension
***** test
nc('time') = 5;
nc('space') = 3;
assert(length(nc('time')),5);
assert(length(nc('space')),3);
!!!!! test failed
assert (length (nc ('time')),5) expected
5
but got
4
values do not match
shared variables
scalar structure containing the fields:
fname = [](0x0)
nc = [](0x0)
***** # Test reading/writing global attributes
***** test
nc.byte_att = ncbyte(123);
nc.short_att = ncshort(123);
nc.int_att = ncint(123);
nc.long_att = nclong(123);
nc.float_att = ncfloat(123);
nc.double_att = ncdouble(123.4);
nc.string_att = "test string";
assert(nc.byte_att,123)
assert(nc.short_att,123)
assert(nc.int_att,123)
assert(nc.long_att,123)
assert(nc.float_att,single(123))
assert(nc.double_att,123.4)
assert(nc.string_att,"test string")
!!!!! test failed
assert (nc.byte_att,123) expected
123
but got
{
[1,1] = byte
[1,2] = 123
}
Dimensions don't match
shared variables
scalar structure containing the fields:
fname = [](0x0)
nc = [](0x0)
***** # Test reading/writing varaible of type byte
***** test
byte_var = reshape(1:15,5,3);
nc{'byte_var'} = ncbyte('time','space');
nc{'byte_var'}(:) = byte_var;
assert(nc{'byte_var'}(:),byte_var);
!!!!! test failed
invalid assignment to cs-list outside multiple assignment
shared variables
scalar structure containing the fields:
fname = [](0x0)
nc = [](0x0)
***** # Test reading/writing varaible of type short
***** test
short_var = reshape(1:15,5,3);
nc{'short_var'} = ncshort('time','space');
nc{'short_var'}(:) = short_var;
assert(nc{'short_var'}(:),short_var);
!!!!! test failed
invalid assignment to cs-list outside multiple assignment
shared variables
scalar structure containing the fields:
fname = [](0x0)
nc = [](0x0)
***** # Test reading/writing varaible of type int
***** test
int_var = reshape(1:15,5,3);
nc{'int_var'} = ncint('time','space');
nc{'int_var'}(:) = int_var;
assert(nc{'int_var'}(:),int_var);
!!!!! test failed
invalid assignment to cs-list outside multiple assignment
shared variables
scalar structure containing the fields:
fname = [](0x0)
nc = [](0x0)
***** # Test reading/writing varaible of type long
***** test
long_var = reshape(1:15,5,3);
nc{'long_var'} = nclong('time','space');
nc{'long_var'}(:) = long_var;
assert(nc{'long_var'}(:),long_var);
!!!!! test failed
invalid assignment to cs-list outside multiple assignment
shared variables
scalar structure containing the fields:
fname = [](0x0)
nc = [](0x0)
***** # Test reading/writing varaible of type float
***** test
float_var = reshape(1:15,5,3)/10;
nc{'float_var'} = ncfloat('time','space');
nc{'float_var'}(:) = float_var;
assert(nc{'float_var'}(:),float_var,1e-5);
!!!!! test failed
invalid assignment to cs-list outside multiple assignment
shared variables
scalar structure containing the fields:
fname = [](0x0)
nc = [](0x0)
***** # Test reading/writing varaible of type double
***** test
double_var = reshape(1:15,5,3)/10;
nc{'double_var'} = ncdouble('time','space');
nc{'double_var'}(:) = double_var;
assert(nc{'double_var'}(:),double_var);
!!!!! test failed
invalid assignment to cs-list outside multiple assignment
shared variables
scalar structure containing the fields:
fname = [](0x0)
nc = [](0x0)
***** # Test reading/writing varaible of type char
***** test
char_var = reshape('ajhkjhgkjhfdgkh',5,3);
nc{'char_var'} = ncchar('time','space');
nc{'char_var'}(:) = char_var;
assert(nc{'char_var'}(:),char_var);
!!!!! test failed
invalid assignment to cs-list outside multiple assignment
shared variables
scalar structure containing the fields:
fname = [](0x0)
nc = [](0x0)
***** # Test reading/writing variable attributes
***** test
nv = nc{'int_var'};
nv.byte_att = ncbyte(123);
nv.short_att = ncshort(123);
nv.int_att = ncint(123);
nv.long_att = nclong(123);
nv.float_att = ncfloat(123);
nv.double_att = ncdouble(123.4);
nv.string_att = "test string";
assert(nv.byte_att,123)
assert(nv.short_att,123)
assert(nv.int_att,123)
assert(nv.long_att,123)
assert(nv.float_att,single(123))
assert(nv.double_att,123.4)
assert(nv.string_att,"test string")
!!!!! test failed
matrix cannot be indexed with {
shared variables
scalar structure containing the fields:
fname = [](0x0)
nc = [](0x0)
***** # Test ncdim
***** test
dimlist = ncdim(nc);
assert(length(dimlist),2);
assert(dimlist{1}(:),5);
assert(dimlist{2}(:),3);
!!!!! test failed
/home/kraja/octave/octcdf-1.1.2/netcdf.oct: failed to load: libnetcdf.so.7: cannot open shared object file: No such file or directory
shared variables
scalar structure containing the fields:
fname = [](0x0)
nc = [](0x0)
***** # Test ncatt
***** test
attlist = ncatt(nc);
assert(length(attlist),7);
assert(ncname(attlist{1}),'byte_att');
assert(ncdatatype(attlist{1}),'byte');
assert(attlist{1}(:),123);
!!!!! test failed
/home/kraja/octave/octcdf-1.1.2/netcdf.oct: failed to load: libnetcdf.so.7: cannot open shared object file: No such file or directory
shared variables
scalar structure containing the fields:
fname = [](0x0)
nc = [](0x0)
***** # Test ncvar
***** test
varlist = ncvar(nc);
assert(length(varlist),7);
assert(ncname(varlist{1}),'byte_var');
assert(ncdatatype(varlist{1}),'byte');
!!!!! test failed
/home/kraja/octave/octcdf-1.1.2/netcdf.oct: failed to load: libnetcdf.so.7: cannot open shared object file: No such file or directory
shared variables
scalar structure containing the fields:
fname = [](0x0)
nc = [](0x0)
***** # Test to write a variable by slices
***** test
imax = 10;
jmax = 11;
kmax = 12;
nc('imax') = imax;
nc('jmax') = jmax;
nc('kmax') = kmax;
sliced_var = reshape(1:imax*jmax*kmax,imax,jmax,kmax);
nc{'sliced_var'} = ncdouble('imax','jmax','kmax');
for i=1:imax
nc{'sliced_var'}(i,:,:) = squeeze(sliced_var(i,:,:));
end
sliced_var2 = nc{'sliced_var'}(:);
assert(sliced_var2 == sliced_var)
!!!!! test failed
invalid assignment to cs-list outside multiple assignment
shared variables
scalar structure containing the fields:
fname = [](0x0)
nc = [](0x0)
***** # Test autoscale
***** test
var = rand(5,3);
add_offset = 1;
scale_factor = .1;
nc{'autoscale_var'} = ncdouble('time','space');
nc{'autoscale_var'}.add_offset = add_offset;
nc{'autoscale_var'}.scale_factor = scale_factor;
nc{'autoscale_var',1}(:) = var;
unscaled = nc{'autoscale_var'}(:);
assert(var,scale_factor*unscaled+add_offset,1e-6);
scaled = nc{'autoscale_var',1}(:);
assert(var,scaled,1e-6);
!!!!! test failed
invalid assignment to cs-list outside multiple assignment
shared variables
scalar structure containing the fields:
fname = [](0x0)
nc = [](0x0)
***** # Test autonan
***** test
nc{'variable_with_gaps'}=ncdouble('time');
nv = nc{'variable_with_gaps'};
nv = ncautonan(nv,1);
nv.FillValue_ = 99;
nv(:) = NaN;
nv = ncautonan(nv,0);
assert(all(nv(:) == 99))
nv = ncautonan(nv,1);
assert(all(isnan(nv(:))))
!!!!! test failed
invalid assignment to cs-list outside multiple assignment
shared variables
scalar structure containing the fields:
fname = [](0x0)
nc = [](0x0)
***** # Test size of vector
***** test
nc{'vector'} = ncfloat('time');
nc{'vector'}(:) = 0;
v = nc{'vector'}(:);
assert(size(v),[5 1])
!!!!! test failed
invalid assignment to cs-list outside multiple assignment
shared variables
scalar structure containing the fields:
fname = [](0x0)
nc = [](0x0)
***** # Test scalar
***** test
nc{'scalar'} = ncint();
nc{'scalar'}(:) = 10;
v = nc{'scalar'}(:);
assert(v,10)
!!!!! test failed
invalid assignment to cs-list outside multiple assignment
shared variables
scalar structure containing the fields:
fname = [](0x0)
nc = [](0x0)
***** # Close file
***** test
ncclose(nc);
delete(fname);
!!!!! test failed
/home/kraja/octave/octcdf-1.1.2/netcdf.oct: failed to load: libnetcdf.so.7: cannot open shared object file: No such file or directory
shared variables
scalar structure containing the fields:
fname = [](0x0)
nc = [](0x0)
***** # Test rename function
***** test
filename = [tmpnam '-octcdf.nc'];
nf = netcdf(filename,'c');
nf('longitude') = 5;
nf('latitude') = 5;
nf.old_name = 'example attribute';
d = ncdim(nf){1};
ncname(d,'new_name');
assert(ncname(d),'new_name')
a = ncatt(nf){1};
ncname(a,'new_name');
assert(ncname(a),'new_name');
nf{'old_name'} = ncdouble('new_name','latitude');
v = nf{'old_name'};
ncname(v,'new_name')
assert(ncname(v),'new_name');
ncclose(nf);
delete(filename);
!!!!! test failed
/home/kraja/octave/octcdf-1.1.2/netcdf.oct: failed to load: libnetcdf.so.7: cannot open shared object file: No such file or directory
shared variables
scalar structure containing the fields:
fname = [](0x0)
nc = [](0x0)
***** # Test 64bit-offset function
***** test
filename = [tmpnam '-octcdf.nc'];
nf = netcdf(filename,'c','64bit-offset');
ncclose(nf);
delete(filename);
!!!!! test failed
/home/kraja/octave/octcdf-1.1.2/netcdf.oct: failed to load: libnetcdf.so.7: cannot open shared object file: No such file or directory
shared variables
scalar structure containing the fields:
fname = [](0x0)
nc = [](0x0)
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev