innosat-mats / MATS-L1-processing

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

Conversion to PyArrow table fails for calibrated images #100

Closed skymandr closed 1 year ago

skymandr commented 1 year ago

🐛 Description

When trying to store the calibrated image, the following error occurs:

Can only convert 1-dimensional array values
Conversion failed for column ImageCalibrated with type object

It is a little unclear where in the code this occurs, but probably this line is the culprit:

https://github.com/innosat-mats/MATS-L1-processing/blob/7ad0af559f617143f78086d42e349aafb51a7bce/l1b_lambda/level1b/handlers/level1b.py#L123

(It may also be one of the lines in its vicinity. We could find out for sure by making the try/except clause more granular, but searching the internet for the error message points to this one.)

We need to figure out how to properly store arrays in parquet.

✌🏽 Expected behaviour

Data should be stored in an accessible format.

🥇 Definition of done