polaris.tasks.ocean.realistic_global.init.remap_jra55.stress_to_cartesian
- polaris.tasks.ocean.realistic_global.init.remap_jra55.stress_to_cartesian(ds)[source]
Convert zonal and meridional wind stress on a latitude-longitude grid to Cartesian components.
- Parameters:
ds (xarray.Dataset) – A dataset with
tauxandtauyon(lat, lon)and the coordinateslatandlonin degrees- Returns:
xarray.Dataset –
dswithtauxandtauyreplaced by the Cartesian components named inCARTESIAN_VAR_NAMES, keeping the coordinates (and any bounds) thatncremapneeds to recognize the grid