Issue in Stamps Step(1,1)
While running the stamps step(1,1) I've encountered this error.
Found inc angle file, will load the data
Loading data into matlab...
Index exceeds the number of array elements. Index must not exceed 0.
Error in ps_load_initial_isce (line 82) bperp=bperp(day_ix);
Error in stamps (line 281) ps_load_initial_isce(data_inc)****
Kindly help me with this.
Did you solve this?
Yes, I managed to fix that issue. The error happens when there’s a mismatch between the dates listed in your files 'day.1.in' and 'calamp.out' present in your processing folder 'INSAR_masterdate' ..........
The file calamp.out always contains n + 1 dates, because it includes the master/reference date plus all the slave/secondary (interferogram) dates.
The file day.1.in, on the other hand, only contains n dates — it does not include the master date.
When StaMPS runs the command stamps(1,1), it tries to align the dates from both files. If even one date is mismatched or missing between the two, MATLAB throws an error.
To avoid this problem, before running stamps(1,1), you should:
Open both day.1.in and calamp.out.
Compare the date lists carefully.
Delete or correct any mismatched or extra dates so that both files correspond properly — the dates in day.1.in should match the interferogram slave dates in calamp.out (excluding the master).
Once the dates in both files match exactly, StaMPS runs without the indexing error.
They are completely matched. I sent you both, but my pscands are 0 bits!! [image: image.png]
On Wed, Oct 22, 2025 at 2:51 PM krsunil17 @.***> wrote:
krsunil17 left a comment (dbekaert/StaMPS#53) https://github.com/dbekaert/StaMPS/issues/53#issuecomment-3431884494
Yes, I managed to fix that issue. The error happens when there’s a mismatch between the dates listed in day.1.in and calamp.out.
The file calamp.out always contains n + 1 dates, because it includes the master date plus all the slave (interferogram) dates.
The file day.1.in, on the other hand, only contains n dates — it does not include the master date.
When StaMPS runs the command stamps(1,1), it tries to align the dates from both files. If even one date is mismatched or missing between the two, MATLAB throws an error.
To avoid this problem, before running stamps(1,1), you should:
Open both day.1.in and calamp.out.
Compare the date lists carefully.
Delete or correct any mismatched or extra dates so that both files correspond properly — the dates in day.1.in should match the interferogram slave dates in calamp.out (excluding the master).
Once the dates in both files match exactly, StaMPS runs without the indexing error.
— Reply to this email directly, view it on GitHub https://github.com/dbekaert/StaMPS/issues/53#issuecomment-3431884494, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARXX2P7L2MUWCWR3LNYPFWT3Y5SCXAVCNFSM6AAAAACJ4JCL7WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTIMZRHA4DINBZGQ . You are receiving this because you commented.Message ID: @.***>
I cannot see your image. Since, your pscands are empty try running the mt_prep_isce command again and then check.