innosat-mats / MATS-L1-processing

Python code for calibrating MATS images
MIT License
0 stars 1 forks source link

Processing fails when desmearing with negative index #160

Open skymandr opened 1 year ago

skymandr commented 1 year ago

🐛 Description

Several images from the beginning of 2023 fail with negative dimensions are not allowed in desmear.

🔢 To reproduce

This problem occurs when trying to process several files from around the end of January and beginning of February 2023.

✌🏽 Expected behaviour

Image should have processed, maybe?

💻 Traceback

ops-payload-level1a-v0.6/2023/2/1/4/MATS_OPS_Level0_VC1_APID100_20230131-135117_20230201-135801.parquet:
negative dimensions are not allowed
<class 'ValueError'>
line 832, in desmear_true_image; image = desmear(image, nrskip=fill_function.shape[0], exptimeratio=T_row_extra /
line 788, in desmear; 1) @ np.vstack((fill, np.zeros([nr, ncol])))