0

I have dataset data and I found anomaly so the result was data array with coordinates (longitude, latitude) and time and the time as number of year.

How to change the Time as 1 June , 2 June... so far?

screenshot of xarray.DataArray

martineau
  • 119,623
  • 25
  • 170
  • 301

1 Answers1

0

i think you could just do

pandas.to_datetime(x['time'],origin=datetime.datetime(2020,1,1),unit="D")

(this assumes the int is day number of this year and jan 1 == 0)

Joran Beasley
  • 110,522
  • 12
  • 160
  • 179