viz_utils/eoa_viz.py
def select_colormap(field_name):
    '''
    Based on the name if the field it chooses a colormap from cmocean
    Args:
        field_name:

    Returns:

    '''
    if np.any([field_name.find(x) != -1 for x in ('ssh', 'srfhgt', 'adt','surf_el')]):
        # cmaps_fields.append(cmocean.cm.deep_r)
        return cmocean.cm.curl
    elif np.any([field_name.find(x) != -1 for x in ('temp', 'sst', 'temperature')]):
        return cmocean.cm.thermal
    elif np.any([field_name.find(x) != -1 for x in ('vorticity', 'vort')]):
        return cmocean.cm.curl
    elif np.any([field_name.find(x) != -1 for x in ('salin', 'sss', 'sal')]):
        return cmocean.cm.haline
    elif field_name.find('error') != -1:
        return cmocean.cm.diff
    elif field_name.find('binary') != -1:
        return cmocean.cm.oxy
    elif np.any([field_name.find(x) != -1 for x in ('u_', 'v_', 'u-vel.', 'v-vel.','velocity')]):
        return cmocean.cm.speed

    Based on the name if the field it chooses a colormap from cmocean
    Args:
        field_name:

    Returns:

    
Based on the name if the field it chooses a colormap from cmocean
Based on the name if the field it chooses a colormap from cmocean
def select_colormap(field_name):
    if np.any([field_name.find(x) != -1 for x in ('ssh', 'srfhgt', 'adt','surf_el')]):
        return cmocean.cm.curl
    elif np.any([field_name.find(x) != -1 for x in ('temp', 'sst', 'temperature')]):
        return cmocean.cm.thermal
    elif np.any([field_name.find(x) != -1 for x in ('vorticity', 'vort')]):
        return cmocean.cm.curl
    elif np.any([field_name.find(x) != -1 for x in ('salin', 'sss', 'sal')]):
        return cmocean.cm.haline
    elif field_name.find('error') != -1:
        return cmocean.cm.diff
    elif field_name.find('binary') != -1:
        return cmocean.cm.oxy
    elif np.any([field_name.find(x) != -1 for x in ('u_', 'v_', 'u-vel.', 'v-vel.','velocity')]):
        return cmocean.cm.speed
def select_colormap ( field_name ) : if np . any ( [ field_name . find ( x ) != - 1 for x in ( 'ssh' , 'srfhgt' , 'adt' , 'surf_el' ) ] ) : return cmocean . cm . curl elif np . any ( [ field_name . find ( x ) != - 1 for x in ( 'temp' , 'sst' , 'temperature' ) ] ) : return cmocean . cm . thermal elif np . any ( [ field_name . find ( x ) != - 1 for x in ( 'vorticity' , 'vort' ) ] ) : return cmocean . cm . curl elif np . any ( [ field_name . find ( x ) != - 1 for x in ( 'salin' , 'sss' , 'sal' ) ] ) : return cmocean . cm . haline elif field_name . find ( 'error' ) != - 1 : return cmocean . cm . diff elif field_name . find ( 'binary' ) != - 1 : return cmocean . cm . oxy elif np . any ( [ field_name . find ( x ) != - 1 for x in ( 'u_' , 'v_' , 'u-vel.' , 'v-vel.' , 'velocity' ) ] ) : return cmocean . cm . speed
Based on the name if the field it chooses a colormap from cmocean
Based on the name if the field it chooses a colormap from cmocean
'''
    Based on the name if the field it chooses a colormap from cmocean
    Args:
        field_name:

    Returns:

    ''' # cmaps_fields.append(cmocean.cm.deep_r)
None
field_name
None