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

Full table using ImageFileCollection #802

Closed
miriamram96 opened this issue Feb 13, 2023 · 1 comment
Closed

Full table using ImageFileCollection #802

miriamram96 opened this issue Feb 13, 2023 · 1 comment

Comments

@miriamram96
Copy link

miriamram96 commented Feb 13, 2023

Hi, I am following this Space Telescope tutorial: https://spacetelescope.github.io/notebooks/notebooks/DrizzlePac/align_multiple_visits/align_multiple_visits.html

In Line 3, they use the following piece of code:

collect_ACS = ImageFileCollection('./', glob_include="*flc.fits", ext=0,
keywords=["asn_id","filter1","filter2","exptime","date-obs","pa_v3"])
ACS_table = collect_ACS.summary
ACS_table['exptime'].format='7.1f'
ACS_table

When I do it with my fits images, I also get a table, however, it doesn't print all the data that I need to. I get an output that says:
Table masked=True length=32
However, not the full 32 lines print. In the middle of my table, I get something like this (I am using an example from this user - https://mwcraig.github.io/ccd-as-book/01-11-reading-images.html):

img-0009.fits | True | -64 | 2 | 200 | 300 | DARK
... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ...
img-0018.fits | True | -64 | 2 | 200 | 300 | LIGHT

I get those "..." instead of all my data being displayed. How can I display all my data instead of getting those dots.
Please let me know and thank you!

@mwcraig
Copy link
Member

mwcraig commented May 25, 2023

Thanks for opening the issue @miriamram96 -- the easiest option (which I just had to look up so "easiest" doesn't mean obvious or easy to remember 😬 ) is to use the .pprint_all() method for the table, like this: ACS_table.pprint_all().

More documentation about this is at https://docs.astropy.org/en/stable/table/access_table.html#pprint-method

I'm going to close this, but if it doesn't answer your question please feel free to re-open it.

@mwcraig mwcraig closed this as completed May 25, 2023
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