source: issm/trunk-jpl/src/m/geometry/planetradius.m

Last change on this file was 25751, checked in by Eric.Larour, 4 years ago

CHG: new partition vector for solidearthsettings. New handling of rigid and
elastic table precomputations. New Europa planet radius. New earth default in
model constructor.

File size: 386 bytes
Line 
1function radius=planetradius(planet)
2%PLANETRADIUS - return planet radius according to planetary body name.
3%
4% Usage:
5% radius=planetradius(planet);
6%
7% Examples:
8% earthradius=planetradius('earth');
9
10if strcmpi(planet,'earth'),
11 radius=6.371012*10^6;
12elseif strcmpi(planet,'europa'),
13 radius=1.5008*10^6;
14else
15 error(['planet type ' planet ' not supported yet!']);
16end
Note: See TracBrowser for help on using the repository browser.