Changeset 100 for trunk/src/nc2struct.m


Ignore:
Timestamp:
Jun 8, 2010, 8:19:10 PM (14 years ago)
Author:
sommeria
Message:

nc2struct.m: convert variables to double after reading (civ gives single)
series.m: prob of initialisation solved
civ.m: gestion of button 'experimental' for new patch

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src

    • Property svn:ignore
      •  

        old new  
         1@xmltree
         2PARAM.xml
        13PARAM_WIN.xml
         4XML_SCHEMAS
         5bin
         6toolbox_calib
         7uvmat_doc
  • trunk/src/nc2struct.m

    r89 r100  
    256256                VarName(indstr)=[];
    257257            end
    258             eval(['Data.' VarName '=netcdf.getVar(nc,var_index(ivar)-1);'])%read the variable data
     258            eval(['Data.' VarName '=double(netcdf.getVar(nc,var_index(ivar)-1));'])%read the variable data
    259259            %eval(['siz=size(Data.' VarName ');'])
    260260           % if numel(siz)<=2
Note: See TracChangeset for help on using the changeset viewer.