You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we are trying to run current FMask tool on current LANDSAT 8 images we are getting the following error:
Error
Dimensions of arrays being concatenated are not consistent.
Error in => Fmask_4_6.m at line 57
OK
Also FMask puts the following messages into the console:
Fmask 4.6 start ...
Cloud/cloud shadow/snow dilated by 2/5/0 pixels.
Cloud probability threshold of 22.50%.
Load or calculate TOA reflectances.
Error using horzcat
Dimensions of arrays being concatenated are not consistent.
Error in lndhdrread (line 287)
Error in nd2toarbt (line 33)
Error in LoadData (line 113)
Error in autoFmask (line 122)
Error in Fmask_4_6 (line 57)
MATLAB:catenate:dimensionMismatch
It's pretty simple to reproduce this issue even without any METRIC involving. Here are the steps:
Extract all the files from the downloaded archive into the separate folder.
Launch FMask tool in this folder. It can be launched without parameters or with the following parameters: "C:\Program Files\GERS\Fmask_4_6\application\Fmask_4_6.exe" 2 5 0 22.5
We have investigated the FMask code and it looks like it cannot find some files. For example it could seek for band 9 image, but there is no such image in these bundles.
The text was updated successfully, but these errors were encountered:
When we are trying to run current FMask tool on current LANDSAT 8 images we are getting the following error:
Error
Dimensions of arrays being concatenated are not consistent.
Error in => Fmask_4_6.m at line 57
OK
Also FMask puts the following messages into the console:
Fmask 4.6 start ...
Cloud/cloud shadow/snow dilated by 2/5/0 pixels.
Cloud probability threshold of 22.50%.
Load or calculate TOA reflectances.
Error using horzcat
Dimensions of arrays being concatenated are not consistent.
Error in lndhdrread (line 287)
Error in nd2toarbt (line 33)
Error in LoadData (line 113)
Error in autoFmask (line 122)
Error in Fmask_4_6 (line 57)
MATLAB:catenate:dimensionMismatch
It's pretty simple to reproduce this issue even without any METRIC involving. Here are the steps:
Download any images bundle we need to use in METRIC (Collection 2 Level 2). It can be done manually in USGS EarthExplorer (https://earthexplorer.usgs.gov/). Also it can be done using the API Url directly, for example https://landsatlook.usgs.gov/gen-bundle?landsat_product_id=LC08_L2SP_039037_20220305_20220314_02_T1&requestSignature=eyJjb250YWN0SWQiOjE3MTQyNTgsImRvd25sb2FkSWQiOjE0Mjg1MjgxNywiZGF0ZUdlbmVyYXRlZCI6IjIwMjItMDMtMThUMTE6MzY6NTYtMDU6MDAiLCJzaWduYXR1cmUiOiIkNSQkVGFMMjgwTy5qVzBoMHgwemtQWGZFQlRRSnJBUlRiT0FuSXFwdTNvTUdsOSJ9.
Extract all the files from the downloaded archive into the separate folder.
Launch FMask tool in this folder. It can be launched without parameters or with the following parameters: "C:\Program Files\GERS\Fmask_4_6\application\Fmask_4_6.exe" 2 5 0 22.5
We have investigated the FMask code and it looks like it cannot find some files. For example it could seek for band 9 image, but there is no such image in these bundles.
The text was updated successfully, but these errors were encountered: