astrobase.services.fortney2k7 module

This contains data from Fortney et al. 2007 on planet compositions, masses and radii. Also contains functions that return numpy arrays from these data based on specified input.

Requires numpy.

astrobase.services.fortney2k7.massradius(age, planetdist, coremass, mass='massjupiter', radius='radiusjupiter')[source]

This function gets the Fortney mass-radius relation for planets.

Parameters:
  • age (float) – This should be one of: 0.3, 1.0, 4.5 [in Gyr].
  • planetdist (float) – This should be one of: 0.02, 0.045, 0.1, 1.0, 9.5 [in AU]
  • coremass (int) – This should be one of: 0, 10, 25, 50, 100 [in Mearth]
  • mass ({'massjupiter','massearth'}) – Sets the mass units.
  • radius (str) – Sets the radius units. Only ‘radiusjupiter’ is used for now.
Returns:

A dict of the following form is returned:

{'mass': an array containing the masses to plot),
 'radius': an array containing the radii to plot}

These can be passed to a plotting routine to make mass-radius plot for the specified age, planet-star distance, and core-mass.

Return type:

dict