Changeset 667 for trunk/src/read_field.m
- Timestamp:
- Jul 15, 2013, 2:50:08 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/read_field.m
r654 r667 74 74 ListVar=[ListVar InputField(ilist)]; 75 75 if check_colorvar(ilist) 76 77 ProjModeRequest{numel(ListVar)}='';76 Role{numel(ListVar)}='ancillary';% not projected with interpolation 77 ProjModeRequest{numel(ListVar)}=''; 78 78 else 79 Role{numel(ListVar)}='scalar';80 ProjModeRequest{numel(ListVar)}='interp_lin';%scalar field (requires interpolation for plot)79 Role{numel(ListVar)}='scalar'; 80 ProjModeRequest{numel(ListVar)}='interp_lin';%scalar field (requires interpolation for plot) 81 81 end 82 82 else % an operator 'vec' or 'norm' is used … … 84 84 Role{numel(ListVar)}='vector_y'; 85 85 Role{numel(ListVar)-1}='vector_x'; 86 87 88 89 90 91 92 86 if ~check_colorvar(ilist) && strcmp(r.Operator,'norm') 87 ProjModeRequest{numel(ListVar)-1}='interp_lin';%scalar field (requires interpolation for plot) 88 ProjModeRequest{numel(ListVar)}='interp_lin'; 89 else 90 ProjModeRequest{numel(ListVar)-1}=''; 91 ProjModeRequest{numel(ListVar)}=''; 92 end 93 93 end 94 94 end … … 96 96 [Field,var_detect,ichoice]=nc2struct(FileName,'TimeDimName',ParamIn.TimeDimName,num,[ParamIn.Coord_x (ParamIn.Coord_y) ListVar]); 97 97 else 98 [Field,var_detect,ichoice]=nc2struct(FileName,[ParamIn.Coord_x (ParamIn.Coord_y) ListVar]);98 [Field,var_detect,ichoice]=nc2struct(FileName,[ParamIn.Coord_x (ParamIn.Coord_y) ListVar]); 99 99 end 100 100 if isfield(Field,'Txt') … … 108 108 end 109 109 Field.VarAttribute{ivar+2}.ProjModeRequest=ProjModeRequest{ivar}; 110 end 110 end 111 111 case 'video' 112 112 if strcmp(class(ParamIn),'VideoReader')
Note: See TracChangeset
for help on using the changeset viewer.