fusion-flap / flap

Fusion Library of Analysis Programs
MIT License
11 stars 5 forks source link

Slicing with non-equidistant coordinate #71

Closed mvecsei closed 3 years ago

mvecsei commented 4 years ago

I am currently trying to slice data with a dataobject along a "Time" coordinate. This coordinate is non-equidistant and the value ranges of the coordinate varies also considerably. The problems I have bumped into so far:

Since I do not fully understand the slicing algorithm, I did not want to implement these into the code, as I don't know whether they will cause a problem somewhere else. I still have not managed to get the slicing to work, as it seems that in contrast to the equidistant time coordinate slicing, calling mean on the sliced dataobject along the "Rel. XY in int. XY" coordinate converts the data to a scalar, and not a vector as I expected.

mvecsei commented 4 years ago

Update:

mvecsei commented 4 years ago

I rather decided to implement a section of the data processing in my own code and not try to force it into flap. However, the five points in my first comment should still be implemented in my opinion. Nevertheless, it seems that my the other points come from trying to do something specific which would require restructuring parts of flap. I do not think that it would make much sense to make the code even more complicated than as it is now.