Closed Mikejmnez closed 1 year ago
THETA and SALT are diagnostics (output from the diagnostics package), while Temp and S are state variables. THETA and SALT are often (but not necessarily) time averages. We need to check this, but it may be worth keeping both or think through the consequences of changing them to Temp and S.
That makes sense!
Following discussion: fix catalog to return LLC4320 variables to "Temp" and "S". Users who insist on computing density with "THETA" and "SALT" (which may be time-averages, like in ECCO), can call the density function directly.
Description
I ran the test notebook
LLC4320_tutorial_notebook
I used during Ocean Sciences Meeting. Somethings need to change since we have updated the code. But I ran into the following error when making the vertical section via oceanspy:The snippet above aims to make a vertical section of
THETA
(temperature) along a particular survey, while overlapping density contours. I get the following error :The problem is that
oceanspy
usesTemp
andS
by default, as the variable name by choice for temperature and salinity, respectively. You can see this, for example, inside the TSdiagram plot function (lines 180 of plot.py)I didn't have that problem when running the notebook during Ocean Sciences Meeting, because the intake catalog for LLC4320 renamed T as Temp, as it should be. I changed the intake catalog entry for LLC4320 to match that of, and therefore be consistent with, the catalog entry for ECCO data. See PR #282.
Solution
Make all variable names for temperature and salinity (an others?) consistent with the way oceanspy uses them (on intake catalog).