Skip to content

redplanet.Crust.moho.get_registry

get_registry() -> DataFrame

Get a list of all available Moho models.

Returns:

Type Description
pd.DataFrame

DataFrame with the following columns: ['interior_model', 'insight_thickness', 'rho_south', 'rho_north']. For an explanation of these columns, see parameters of redplanet.Crust.moho.load().

Source code in src/redplanet/Crust/moho/consts.py
def get_registry() -> pd.DataFrame:
    """
    Get a list of all available Moho models.

    Returns
    -------
    pd.DataFrame
        DataFrame with the following columns: ['interior_model', 'insight_thickness', 'rho_south', 'rho_north']. For an explanation of these columns, see parameters of `redplanet.Crust.moho.load()`.
    """
    registry = pd.read_csv(
        _get_fpath_dataset('moho_registry'),
        usecols = ['model_name'],
    )
    registry = registry['model_name'].str.split('-', expand=True)
    registry.columns = ['interior_model', 'insight_thickness', 'rho_south', 'rho_north']
    registry.iloc[:,1:] = registry.iloc[:,1:].astype(int)
    return registry