oas_dev/util/eusaar_data/histc_vars.py
def load_var_as_xarray(var):
    """Loads variable list from HISTC and creates xarray dataarray
    with dims station and time
    :param var:
    :return: xr.DataArray
    """
    attrs = dict(
        units='cm-3',
    )
    if var in long_name_var_dic:
        attrs['long_name'] = long_name_var_dic[var]
        attrs['fancy_name'] = long_name_var_dic[var]

    df = load_var_as_dtframe(var)
    da = df.to_xarray().to_array(dim='station', name=var)
    for att in attrs:
        da.attrs[att] = attrs[att]
    return da
Loads variable list from HISTC and creates xarray dataarray
    with dims station and time
    :param var:
    :return: xr.DataArray
    
Loads variable list from HISTC and creates xarray dataarray
with dims station and time
Loads variable list from HISTC and creates xarray dataarray with dims station and time
def load_var_as_xarray(var):
    attrs = dict(
        units='cm-3',
    )
    if var in long_name_var_dic:
        attrs['long_name'] = long_name_var_dic[var]
        attrs['fancy_name'] = long_name_var_dic[var]
    df = load_var_as_dtframe(var)
    da = df.to_xarray().to_array(dim='station', name=var)
    for att in attrs:
        da.attrs[att] = attrs[att]
    return da
def load_var_as_xarray ( var ) : attrs = dict ( units = 'cm-3' , ) if var in long_name_var_dic : attrs [ 'long_name' ] = long_name_var_dic [ var ] attrs [ 'fancy_name' ] = long_name_var_dic [ var ] df = load_var_as_dtframe ( var ) da = df . to_xarray ( ) . to_array ( dim = 'station' , name = var ) for att in attrs : da . attrs [ att ] = attrs [ att ] return da
Loads variable list from HISTC and creates xarray dataarray
with dims station and time
Loads variable list from HISTC and creates xarray dataarray with dims station and time
"""Loads variable list from HISTC and creates xarray dataarray
    with dims station and time
    :param var:
    :return: xr.DataArray
    """
None
var
None