-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#19 converter #24
#19 converter #24
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick suggestions:
-
FITS header conversion method in the following line should be
tostring
, notto_string
.xarray-cube/xarray_cube/converter.py
Line 13 in 7141b93
header=cube.hdu.header.to_string(), -
The name of FITS
ImageHDU
class seems invalid (should start with capital letter).xarray-cube/xarray_cube/converter.py
Line 23 in 7141b93
cube = sc.SpectralCube.read(fits.imageHDU(data, header))
SpectralCube automatically modifies FITS header like below; are these behaviour OK for this project?
|
Dismissing, since new implementation problems are found.
It seems that |
cube.headerを用いた場合は、headerの中身によってはheaderを書き換えたものを返すように思われます。特に、cunit3のvalueがない場合などは、自動的にheaderにcunit3のvalueを追加する仕様です。いずれの方法を選んでもオリジナルから変更が行われるという点では大差ないように思われますが、どのようにいたしましょうか? |
a8eb574
to
a4710b4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution! It looks good to me.
No description provided.