Reverse dimnesion of an xarray
I have a xarray Dataset with dimensions time, latitude, longitude and pressure levels. The latitude goes from 90° to -90°. But I need them from -90° to 90°. How can I turn around the dimension in a way that also the dimension of the variables are changed?
You can use reindex:
da.reindex(lat = da.lat[::-1])