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

installation woes #5

Closed
teuben opened this issue Sep 25, 2018 · 5 comments
Closed

installation woes #5

teuben opened this issue Sep 25, 2018 · 5 comments

Comments

@teuben
Copy link

teuben commented Sep 25, 2018

would be useful to add an installation note, since imgcube isn't something available in an obvious way. Not via pip, but
git clone https://github.com/richteague/imgcube
inside of the notebooks directory make it work.

Had to comment out the plt.style.use('paper') My anaconda didn't have it. Now looks awfully small, what's the trick to get it working with 'paper' option?

@richteague
Copy link
Owner

I've included a new function, data_from_fits which will extract the necessary values from the cube without having to call the imgcube function. This should mean that you can still pip install.

I've also removed plt.style.use('paper') from the Notebook as that was just used to set the styles for making the plots. This should now default to whatever default the user has.

@teuben
Copy link
Author

teuben commented Oct 2, 2018

I should revisit the fits ingestion in both cases, as I only got a correct comparison if i shifted the pixels by 1 comparing yours and mine. It's an easy thing to miss, using 0 based or 1 based... I'd like to think mine is correct. If you feel your is correct too, we should revisit. I'll redo mine with your new function and open a new issue if need be.

@richteague
Copy link
Owner

richteague commented Oct 2, 2018 via email

@teuben
Copy link
Author

teuben commented Oct 2, 2018

Oh, i meant positional pixels, not spectrally. As for the fits definition: the value is defined at the center of the pixel, where the first pixel is 1. But let me redo the comparison with your new function and it should be more clear.

@richteague
Copy link
Owner

Ah yeah, that makes sense. I didn't really do this very thoroughly as typically people may want to handle their coordinates in different ways, for example using Astropy's WCS package.

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

2 participants