1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
function tsgDeleteGridByName(sGridName)
%
% tsgDeleteGridByName(sGridName)
%
% deletes all of the background files used by the grid with name sGridName,
% this function is to be used if the grid class lGrid has been lost
%
% NOTE: lGrid containing the sGridName can no longer be used
%
% INPUT:
%
% sGridName: the name of the grid to be deleted, i.e. the sGridName
% parameter given to makeGrid(...)
%
lGrid.sName = sGridName;
tsgDeleteGrid(lGrid);
lGrid.sFilename = tsgMakeGridFilename(sGridName);
tsgDeleteGrid(lGrid);
end
|