bug in nc_read.m?

Bug reports, work arounds and fixes

Moderators: arango, robertson

Post Reply
Message
Author
uranoscopus
Posts: 26
Joined: Sat Mar 17, 2012 4:54 pm
Location: CNR - IAMC
Contact:

bug in nc_read.m?

#1 Unread post by uranoscopus »

In the matlab/netcdf routines just downloaded from svn,
in nc_read.m there are lines 429-430 (about) like that

Code: Select all

    case {nc_int, nc_short, nc_byte}
        f = double(f).*scale+offset;   
wich give me an error about undefined variable nc_int when launching from d_ecmwf2roms.m

I fixed just commenting them, but maybe they could be wrote like the others "cases":

Code: Select all

 case {netcdf.getConstant('nc_int') 
Is it correct?
Cheers,
Antonio

Post Reply