Skip to content
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

to_CASA or .image writer method #71

Open
keflavich opened this issue Apr 21, 2014 · 1 comment
Open

to_CASA or .image writer method #71

keflavich opened this issue Apr 21, 2014 · 1 comment

Comments

@keflavich
Copy link
Contributor

We should come up with a method to generate CASA-compatible formats. Since CASA seems to deal with things entirely on disk (or almost so), this probably just means building a .image writer, presumably with some capability to write a .mask file in parallel.

This could serve as a drop-in replacement for importfits. For that reason, though, it may be redundant. Should we make it?

@akleroy
Copy link
Contributor

akleroy commented Apr 21, 2014

Cheapest possible route:

cube.write("dummy.fits")
importfits("dummy.fits", "my.image", kwargs)

Next easiest:

cp -r a template image and then putchunk, etc. into the new copy
(this cheats to get your coordsys right)

In both cases ia.putchunk using the mask option shoves the mask into the file, else you can add a mask flag to write the mask as an integer (avoid bool for CASA).

Right way:

ia includes a method to make a new image from an array and a method to attach a coordsys. The complexity is a general wcs->coordsys translation. Tom has a nice version of the reverse, but that's easier.

@ChrisBeaumont ChrisBeaumont added this to the 0.2 milestone Apr 23, 2014
@keflavich keflavich modified the milestones: 0.3, 0.2 Dec 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants