Closed Mikejmnez closed 1 year ago
I just went through oceanspy.compute
and just realized that the suggestion above would require a lot of changes to each function (like curl, integral, weighted mean, etc etc). So I am closing this as I think it is really unnecessary at this point.
Description
Should we allow the grid object to be created incorporating the grid metrics?
So far, metrics have not been used to create and open the
od
object in any of the dataset. You can see this inoceanpy.ospy_utils
(lines 15-33):and in lines 60-66:
Incorporating grid metrics is advantageous and very simple. From xgcm's documentation:
Allowing the metrics to be passed into
Grid
allow one-line calculation of derivatives, integrals and such. This is:In reality
U_int1 == U_int2
.