Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nden committed Jun 20, 2018
1 parent 3d137b3 commit 42f38e3
Showing 1 changed file with 28 additions and 16 deletions.
44 changes: 28 additions & 16 deletions gwcs/wcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ def pixel_bounds(self):
def world_axis_physical_types(self):
# Need to match with UCD type
return self.output_frame.axes_types

def world_axis_units(self):
return self.output_frame.unit

Expand All @@ -580,20 +580,32 @@ def world_to_pixel_values(self, *world_arrays):
# needs **kwargs
return self.invert(*world_arrays, **kwargs)

@property
def world_axis_object_components(self):
components = []
outframe = self.output_frame
if isinstance(outframe, cf.CompoundFrame):
for frame in outframe.frames:
components.append(self.output_frame.axes_names[axis])
return components
def pixel_to_world(self, *pixel_arrays):
"""
Convert pixel values to world coordinates.
"""
pass

def world_to_pixel(self, *world_objects):
"""
Convert pixel values to world coordinates.
"""
pass

#@property
#def world_axis_object_components(self):
#components = []
#outframe = self.output_frame
#if isinstance(outframe, cf.CompoundFrame):
#for frame in outframe.frames:
#components.append(self.output_frame.axes_names[axis])
#return components

#@property
#def world_axis_object_classes(self):
#classes = {}
#for axis in self.output_frame.axes_order:
#classes[self.output_frame.axes_names[axis]] = ()
#return classes

@property
def world_axis_object_classes(self):
classes = {}
for axis in self.output_frame.axes_order:
classes[self.output_frame.axes_names[axis]] = ()
return classes


0 comments on commit 42f38e3

Please sign in to comment.