Skip to content

HadGEM3-GC5 conservative to potential ocean temperature and absolute to practical salinity conversion #503

@matthew-mizielinski

Description

@matthew-mizielinski

Migrated Jira Issue CDDSO-579
Jira creation date 10/01/2025 15:27

Need to install gsw package after which processor for thetao for this set of models should include code that is something like the following:

thetao


def thetao_from_conservative(thetao_c, so_abs):
    potential_temp = gsw.pt_from_CT(so_abs, thetao_c)
    thetao = thetao_c.copy()
    thetao.data = potential_temp
    return thetao```

*so*

`code:python`import gsw

def so_psu_from_abs(so_abs):
    so = so_abs.copy()
    pressure = gsw.p_from_z(
      so_abs.coord('depth').points[0], # should be the deptht variable
      so_abs.coord('latitude').points
    )
    so_psu = gsw.SP_from_SA(
      so_abs.data, 
      pressure,
      so_abs.coord('longitude').points,
      so_abs.coord('latitude').points)
    so.data = so_psu
    return so`code`



Package available from [https://github.com/TEOS-10/GSW-Python|https://github.com/TEOS-10/GSW-Python|smart-link]  and conda – will need to pin versions within environment file.
-------

Metadata

Metadata

Assignees

No one assigned

    Labels

    migratedissues migrated from JIRA

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions