We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Often we see things like:
transport = ty_trans / 1034 / 1e5
to convert, e.g., ty_trans from kg/s to Sverdrup. (E.g. see https://cosima-recipes.readthedocs.io/en/latest/DocumentedExamples/Zonally_Averaged_Global_Meridional_Overturning_Circulation.html) But these conversions are ad hoc and one can easily make a mistake and forget a factor. A usual trick to see if we are missing a factor (e.g., forgot to divide by the depth of the fluid or by density) is to check the units. But if we are converting things like above there are no units attached.
ty_trans
pint and cf-xarray provide a way to attach units on variables.
pint
cf-xarray
Our aim is to have all documented examples use pint/cf-xarray for proper unit handling
The tutorial: https://cosima-recipes.readthedocs.io/en/latest/Tutorials/Model_Agnostic_Analysis.html
and the example: https://cosima-recipes.readthedocs.io/en/latest/DocumentedExamples/Transport_Through_Straits.html
are good starting points.
The text was updated successfully, but these errors were encountered:
If during Hackathon v3.0, you wanna tackle updating one of the documented examples to use pint/cf-xarray then:
Sorry, something went wrong.
TemperatureSalinityDiagrams.ipynb
Compare_SST_SSS_TemperatureSalinity_to_WOA13.ipynb
Equatorial_thermal_and_zonal_velocity_structure.ipynb
IcePlottingExample.ipynb
Sea_Ice_Seasonality_Statistics.ipynb
Spatial_selection.ipynb
#316, #322 move towards this direction
polinaesia
No branches or pull requests
Often we see things like:
to convert, e.g.,
ty_trans
from kg/s to Sverdrup. (E.g. see https://cosima-recipes.readthedocs.io/en/latest/DocumentedExamples/Zonally_Averaged_Global_Meridional_Overturning_Circulation.html) But these conversions are ad hoc and one can easily make a mistake and forget a factor. A usual trick to see if we are missing a factor (e.g., forgot to divide by the depth of the fluid or by density) is to check the units. But if we are converting things like above there are no units attached.pint
andcf-xarray
provide a way to attach units on variables.Our aim is to have all documented examples use pint/cf-xarray for proper unit handling
The tutorial:
https://cosima-recipes.readthedocs.io/en/latest/Tutorials/Model_Agnostic_Analysis.html
and the example:
https://cosima-recipes.readthedocs.io/en/latest/DocumentedExamples/Transport_Through_Straits.html
are good starting points.
The text was updated successfully, but these errors were encountered: