Many fixes and improvements to codebase.
Improved blending of masks with sim water.
Improved control of the mask parameters and distance correction.
Improvement to both single and multiple water type processing.
Fixed a few timing issues with processing steps
fixed a looping issue in some cases where files already exist in output folders.
A whole bunch of improvements to the code structure.
improvement to default blend values making the blend settings slightly more sensitive, allowing more room for adjustment.
Fix inadvertent code error preventing process to complete.
This version has been fully tested to process single water type masks.
Currently testing the multiple water type mask creation as this too has issues, will release a fix for this in the coming week. (apologise for this, lost some code which broke the process).
Major bug fixed with duplicate processing of files for single mask processing.
Set default processing method to Single Mask (still some things to sort out with multiple water types based on feedback and more testing).
Added sample files to process a small area of New Zealand (top of the North Island) to demonstrate the required files.
You can set memory limits as this app is memory intensive and will use everything you can give it.
I recommend setting the memory to 80% of your total capacity or at least 8GB. Set this in the appsettings.json config file in the program folder.
A default processing cycle can use ~6 - 6.5GB on my machine and no less than 4GB. The default setting is 4GB, processing that requires above 4GB will cache to the hard drive path specified in the config file. Caching does take longer so an SSD is suggested.
If you find the mask process slow then up your memory limit if possible or cache to an SSD drive.
Added functionality to remove final output mask files after processing based on the deletemaskfiles= setting in the appsettings.json config file. This way you can choose to keep the mask files or remove them to save storage space.
Also removed some unused processing files used in testing.