Skip to content

Commit

Permalink
Added save shoreline functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchharley committed Feb 1, 2021
1 parent bb3cf69 commit 77bcf3c
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions GUI/CSPGbulkRectAndMap.m
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,18 @@
%pause(0.3)


%%Save data to file
%imwrite(flipud(Iplan),fullfile(rect_path,rect_name))
%fname_rectified_mat = strrep(rect_name,'.jpg','.mat');
%save(fullfile(rect_path,fname_rectified_mat),'xgrid', 'ygrid', 'Iplan', 'metadata')
%%Save rectified data to file
imwrite(flipud(Iplan),fullfile(rect_path,rect_name))
fname_rectified_mat = strrep(rect_name,'.jpg','.mat');
save(fullfile(rect_path,fname_rectified_mat),'xgrid', 'ygrid', 'Iplan', 'metadata')

%Save shoreline to file
savedir = [shoreline_path filesep fileparts.site filesep fileparts.year filesep];
savefname = strrep(newfname,'snap','shoreline');
savefname = strrep(savefname,'timex','shoreline');
savefname = strrep(savefname,'.jpg','.mat');
save(fullfile(savedir,savefname),'sl')
disp('Shoreline saved to DB!')
end
end
end

0 comments on commit 77bcf3c

Please sign in to comment.