def required_atmosphere(conf, DataT):
    """
    This function looks into the data configuration and defines if atmospherical are required
    Parameters:
    -----------
    conf
            obj, configuration from user conf file
    DataT
            str, data type to be simulated

    Returns:
    --------
    AMrange 
            list, of AM range required for the current simulated object
    """
    AMrange = []
    if DataT in ['Combined', 'Photo']:
        for i in conf.PHOT['Band_list']:
            am = conf.PHOT['Band_list'][i][-2]
            if am not in AMrange:
                AMrange.append(am)
    if DataT in ['Combined', 'Spectro']:
        for i in conf.SPEC['types']:
            am = conf.SPEC['types'][i]['Atm']
            if am not in AMrange:
                AMrange.append(am)
    return AMrange
