Open mohseniaref-InSAR opened 3 years ago
Hi Mohammed,
It could be an issue with using a different version of LiCSBAS. This was written for 1.5 I think. Two ideas:
1) If you're happy to share our LiCSBAS folder with me, I will run it myself and work out what is going on and add something to produce a more meaningful error if this is encountered in the future. I think you have my email from Fringe. WeTransfer is good.
2) If you want to debug it yourself, I would add a break or something in the lines above the error:
mask_coh_water = np.isnan(cumulative) # get where masked
displacement_r3["cumulative"] = ma.array(cumulative, mask=mask_coh_water) # rank 3 masked array of the cumulative displacement
displacement_r3["incremental"] = np.diff(displacement_r3['cumulative'], axis = 0) # displacement between each acquisition - ie incremental
n_im, length, width = displacement_r3["cumulative"].shape
and have a look at that. Do the ifgs in displacement_r3 make sense? Are n_im, length, and width all what they should be? The function that is giving an error takes the interferograms in rank 3 format and requires that the same pixels are used in each interferogram. My outputs from LiCSBAS always do this (ie consistent mask of which pixels are used through time), but a difference here could cause the error.
Regards, Matt
Hi Matt,
Thanks so much, I sent you the data.
Best regards, Mohammad
Hi Mathew,
I think my test example is not working. I used LICSBAS output but I don't know why there is an error in the output I used your example to get output. Your example dataset works without any problem. I really appreciate it if you can help me regarding this issue. the same issue has happened with ICASAR example_spatial_02.py with a new dataset from LICSBAS!
best, Mohammad
the code is
The output