Skip to content
PL1

Subsets of ESAMissionEvents error when events at boundaries

When trying to subset an ESAMissionEvents class based on an event class with such operation: segmentation.between(eclipse.start, eclipse.stop) I get an error because there are events in the segmentation object that are within the eclipse.start time. The error in particular is: LookupError: JA_PE1 (2031-07-19 -> 2031-07-23 | 5 events) < 2031-07-24 07:42:31

This behaviour is not desirable given that limits strongly the ability yo subset these classes.

My proposal is that when an event is "cut" by such operation, the event should be updated to start at the start of the resulting "timeline", the tool should provide a warning message indicating such update:

ESAMissionEvents:

   ------ Event_1
          ----------- Event_2 
                   ----------- Event_3
      ------- Event_4               
-------------------------------------- Event_5

Event:
       |-------------------|
       t0                  t1


ESAMissionEvents(between(Event.start, Event.stop)):

        -- Event_1*
          ----------- Event_2 
                   --------    Event_3-
        ------ Event_4*      
        ------------------- Event_5+     

* Event Start time modified        
- Event Stop time modified
+ Event Start and Stop time modified

This behavior should be expected in any other operations of the same nature.