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

Buiiding MOC from images located in ant FITS extension #68

Closed
lmichel opened this issue Nov 23, 2021 · 1 comment
Closed

Buiiding MOC from images located in ant FITS extension #68

lmichel opened this issue Nov 23, 2021 · 1 comment

Comments

@lmichel
Copy link

lmichel commented Nov 23, 2021

The current API allows to build a MOCs from a set of FITS files located in a given folder:

MOC.from_fits_images(path_l, max_norder)

It is however not possible to use the same convenient method when the images are in a FITS extension. This is a case e.g. when we want to build a MOC from exposure maps which are usually not in the primary extension.
In this case we have to build MOCs for each individual file by using MOC.from_fits_image(hdu, max_norder, mask=None) and to merge them. This is a bit boring.

Having a function like this:

MOC.from_fits_dhu(path_l, hdu, max_norder)

Would be very helpful.

@fxpineau
Copy link
Member

The method now takes as optional parameter the index of the HDU iin FITS files,
see this line:

def from_fits_images(cls, path_l, max_norder, hdu_index=0):

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

2 participants