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

Av units and WCS display #194

Open
chukus opened this issue Nov 15, 2023 · 0 comments
Open

Av units and WCS display #194

chukus opened this issue Nov 15, 2023 · 0 comments

Comments

@chukus
Copy link

chukus commented Nov 15, 2023

Hello. Never used the astrodendro package before. I have two probably very newbie questions.

a) My image is an extinction map, in units of Av. Is there a way to pass these units in the metadata?

b) I installed WCSaxes via pip. Then passed the wcs info from the header into the dendogram but I cannot make
it to display it in the viewer . I am doing something like

image, header = getdata(myfitsfile, header=True)
wcs=wcs.WCS(header)
d0p5=Dendrogram.compute(image, wcs=wcs, min_value=0.5, min_delta=1.0, min_npix=30.0, verbose=True)
v=d0p5.viewer()

(I tried with fits.open too with same result)

The viewer only displays the image in units of pixels and sends an error saying that I do not have WCSaxes installed...

/anaconda3/lib/python3.8/site-packages/astrodendro/viewer.py:95: UserWarning: WCSAxes package required for wcs coordinate display.
warnings.warn("WCSAxes package required for wcs coordinate display.")

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

No branches or pull requests

1 participant