Skip to content

Commit

Permalink
Update autoPrepareDataESPA.m
Browse files Browse the repository at this point in the history
  • Loading branch information
qsly09 committed Jul 26, 2018
1 parent 71aacc9 commit feeed5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoPrepareDataESPA.m
Expand Up @@ -198,7 +198,7 @@ function autoPrepareDataESPA(varargin)
% have targt file
try
trgt_obj = GRIDobj(trgt_file);
trgt_obj.Z = 255;% empty memory
trgt_obj.Z = zeros(trgt_obj.size)+255;% empty memory initially masked as 255

% read cfmask
cfmask_obj = GRIDobj(tif_cfmask);
Expand Down Expand Up @@ -386,7 +386,7 @@ function autoPrepareDataESPA(varargin)
stack(:,:,7) = surf_b6;
end
else
trgt_obj.Z = -9999;% initially marked as non-data
trgt_obj.Z = zeros(trgt_obj.size)- 9999;% empty memory initially masked as non-data
if str2num(n_mtl(3)) < 8

n_surf = dir(fullfile(dir_out,n_tmp,'L*sr_band1.tif'));
Expand Down

0 comments on commit feeed5b

Please sign in to comment.