Skip to content
Discussion options

You must be logged in to vote

Hi @whannah1, The gradient() operator in uxarray performs calculations on a unit sphere, so the output units are Kelvin per Radian (since your data is in Kelvin).

To convert this to Kelvin per 100km, I think you need to apply the scaling factor for the Earth's radius manually; something like:

Convert from K/rad to K/km by dividing by the Earth's radius (~6371 km).
Multiply by 100 to get K/100km.
So, gradient_k_per_100km = gradient_k_per_rad * (100 / 6371)."

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@whannah1
Comment options

Answer selected by whannah1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants