Changeset 27605


Ignore:
Timestamp:
02/22/23 00:55:13 (2 years ago)
Author:
inwoo
Message:

CHG: export_netCDF.m - add "classgroup" for identifying names in "model()".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/contrib/defleurian/netCDF/export_netCDF.m

    r27264 r27605  
    8888                        disp(sprintf('===Now treating %s===',groups{i}));
    8989                end
    90                 if strcmp(groups{i}, 'qmu'),
     90                if any(strcmp(groups{i}, {'qmu'})),
    9191                        disp('qmu is skipped until it is more stable');
     92                        continue
     93                end
     94                if any(strcmp(groups{i},{'radaroverlay'})),
     95                        disp(sprintf('%s is skipped.',groups{i}));
    9296                        continue
    9397                end
     
    171175                                klass=class(md.(groups{i}));
    172176                                klasstring = strcat(klass, '.',klass);
     177                                netcdf.putAtt(groupID,netcdf.getConstant('NC_GLOBAL'),'classgroup',groups{i});
    173178                                netcdf.putAtt(groupID,netcdf.getConstant('NC_GLOBAL'),'classtype',klasstring);
    174179                                if sum(numel(Var) == size(Var)) == 0,  %this is a 2D array or more (and not a vector with dimension 2 = 1)
Note: See TracChangeset for help on using the changeset viewer.