Skip to content

Conversation

@caiz12
Copy link
Collaborator

@caiz12 caiz12 commented Nov 3, 2017

Just a test of a pull request in KCWI.

李琼 and others added 11 commits November 2, 2017 11:35
calculate the center of the QSO position for each target.
simple test for resampling
line 36: if a=b, a and b will change together. It's better to avoid using it.
line 40: 'image_sh' not 'image'
'''
image_sh= image # construct a new datacube called image_sh (image_shift)
###image_sh= image # construct a new datacube called image_sh (image_shift)
image_sh= np.copy(image) # construct a new datacube called image_sh (image_shift)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if a=b, a and b will change together. It's better to avoid using it.

image_sh[i,:,:]= np.roll(image[i,:,:], -int(round(shift_y)), axis=1)
###image_sh[i,:,:]= np.roll(image[i,:,:], -int(round(shift_y)), axis=1)
image_sh[i,:,:]= np.roll(image_sh[i,:,:], -int(round(shift_y)), axis=1)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'image_sh' not 'image'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants