Exemple #1
0
def exoparams_to_lmfit_params(planet_name):
    '''
        Args:
        planet_name
        Returns:
        Parameters (Period, Transit center, ApRs, Inclinaiton, Transit depth, 
        Eccentricity, Omega) for the specified planet taken from the exoparams 
        module. (not tested yet)
    '''
    try:
        import exoparams
    except:
        raise ImportError(
            'requires downloading `exoparams` as '
            '\npip install git+https://github.com/bmorris3/exoparams')

    ep_params = exoparams.PlanetParams(planet_name)
    iApRs = ep_params.ar.value
    iEcc = ep_params.ecc.value
    iInc = ep_params.i.value
    iPeriod = ep_params.per.value
    iTCenter = ep_params.tt.value
    iTdepth = ep_params.depth.value
    iOmega = ep_params.om.value

    return iPeriod, iTCenter, iApRs, iInc, iTdepth, iEcc, iOmega
Exemple #2
0
def exoparams_to_lmfit_params(planet_name):
    ep_params = exoparams.PlanetParams(planet_name)
    iApRs = ep_params.ar.value
    iEcc = ep_params.ecc.value
    iInc = ep_params.i.value
    iPeriod = ep_params.per.value
    iTCenter = ep_params.tt.value
    iTdepth = ep_params.depth.value
    iOmega = ep_params.om.value

    return iPeriod, iTCenter, iApRs, iInc, iTdepth, iEcc, iOmega