CNES/swot_simulator

Last generated swath can possibly go past the last date

robin-cls opened this issue · 0 comments

When specifying the first_date and last_date of a simulation, it is possible that the simulator generates a swath that ends after the specified last_date (see https://github.com/CNES/swot_simulator/blob/master/swot_simulator/orbit_propagator.py#L298)

In my case, I try to simulate data over the MITGCM time span but my plugin raises an error stating that I do not have sufficient interpolation data:
Exception: Out of bounds, mitgcm files spans [2011-09-13T00:00:00.000000000,2012-11-15T14:00:00.000000000]which does not cover the required time period [2012-11-15T13:59:27.280938, 2012-11-15T14:03:52.230859]

How should we handle this case ?

  • Should the plugin be returning invalid values when out of bounds
  • Should the last swath be omitted from the simulation if its last date is out of bounds
  • Should the user tune its first and last date of simulation so that the simulated swath falls in-bounds