-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudmask.m
More file actions
executable file
·32 lines (22 loc) · 939 Bytes
/
cloudmask.m
File metadata and controls
executable file
·32 lines (22 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
%% This script takes the uses the cloud information and masks out the clouds in
% tbb data.
addpath '/Users/denny/OneDrive - Nanyang Technological University/Y4/FYP/H8_Codes'
Data_Folder = ...
'/Users/denny/OneDrive - Nanyang Technological University/Y4/FYP/H8_Processed_Data/Sinabung_201906/';
%------------------------Config to change-------------
Volcano = 'Sinabung';
YYYYMM = '201906';
DD = '09';
DayNight = 'Night';
%------------------------------------------------------
matdataname = [Volcano,'_',YYYYMM,DD,'_',DayNight,'.mat'];
matcloudname = [Volcano,'_',YYYYMM,DD,'_cloud.mat'];
% if file does not exist, script stopsw
if exist(matdataname,'file') == 0 || exist(matcloudname,'file') == 0
error('File Does Not Exist')
end
load ([Data_Folder,matdataname])
load ([Data_Folder,matcloudname])
%% This section indexes out the pixels that have clouds
fieldName = fieldnames(tbb_07);
NonZeroIDX = CLYTPE.(fieldName{1});