I'm kind of new in python. I have an xarray DataArray which contains a variable made of floats. These floats are supposed to be seconds. I would like to add these floats to a given date:
2021-01-01 00:00:00 + 1 = 2021-01-01 00:00:01
...
2021-01-01 00:00:00 + 120 = 2021-01-01 00:02:00
in order have an array of datetime I can work with (for example to extract the events between a given interval of time)
I tried to use timedelta but it does not like DataArray. Is there a workaround for that?