Skip to content

Commit

Permalink
Provide no default value of run_arcseconds.
Browse files Browse the repository at this point in the history
The correct behaviour when the radius of the sun in arcseconds can
not be found is to not know what it is, not to assume that the observer
is at the average sun-earth distance.
  • Loading branch information
Cadair committed Jun 9, 2014
1 parent ba14a2d commit 2209929
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sunpy/map/mapbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,10 @@ def yrange(self):

@property
def center(self):
"""Returns the offset between the center of the Sun and the center of
"""Returns the offset between the center of the Sun and the center of
the map."""
return {'x': wcs.get_center(self.shape[1], self.scale['x'],
self.reference_pixel['x'],
return {'x': wcs.get_center(self.shape[1], self.scale['x'],
self.reference_pixel['x'],
self.reference_coordinate['x']),
'y': wcs.get_center(self.shape[0], self.scale['y'],
self.reference_pixel['y'],
Expand All @@ -263,7 +263,7 @@ def rsun_meters(self):
def rsun_arcseconds(self):
"""Radius of the sun in arcseconds"""
return self.meta.get('rsun_obs', self.meta.get('solar_r',
self.meta.get('radius', constants.average_angular_size.to('arcsec').value)))
self.meta.get('radius', None)))

@property
def coordinate_system(self):
Expand Down Expand Up @@ -481,7 +481,7 @@ def resample(self, dimensions, method='linear'):
new_map.data = new_data
new_map.meta = new_meta
return new_map

def rotate(self, angle=None, rmatrix=None, scale=1.0,
rotation_center=(0, 0), recenter=False,
missing=0.0, interpolation='bicubic', interp_param=-0.5):
Expand Down

0 comments on commit 2209929

Please sign in to comment.