innosat-mats / MATS-L1-processing

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

Processing fails due to incompatible binning size. #161

Open skymandr opened 1 year ago

skymandr commented 1 year ago

🐛 Description

Binning image sometimes fails due to incompatible binning size.

🔢 To reproduce

This seems to happen only for the file referenced in the traceback below.

✌🏽 Expected behaviour

File should have been processed, maybe?

💻 Traceback

ops-payload-level1a-v0.6/2023/5/4/2/MATS_OPS_Level0_VC1_APID100_20230503-134305_20230504-135043.parquet:
the size of the image and the binning size are incompatible
<class 'Exception'>
line 601, in bin_image_with_BC; sumbinned_image = totbin*meanbin_image_with_BC(CCDitem, image_nonbinned)
line 653, in meanbin_image_with_BC; raise Exception(;)