We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The get_cat function in differential_photometry/magnitude_transforms.py is
get_cat
differential_photometry/magnitude_transforms.py
I would suggest importing catalog_search.py into magnitude_transforms.py and delete
catalog_search.py
magnitude_transforms.py
def get_cat(image): our_coords = SkyCoord(image['RA'], image['Dec'], unit='degree') # Get catalog via cone search Vizier.ROW_LIMIT = -1 # Set row_limit to have no limit desired_catalog = 'II/336/apass9' a_star = our_coords[0] rad = 1 * u.degree cat = Vizier.query_region(a_star, radius=rad, catalog=desired_catalog) cat = cat[0] cat_coords = SkyCoord(cat['RAJ2000'], cat['DEJ2000']) return cat, cat_coords
and replace the call to cat, cat_coords = get_cat(one_image) in magnitude_transforms.py with a the following code:
cat, cat_coords = get_cat(one_image)
cat = catalog_search(one_image, None, 'II/336/apass9', ra_column='RAJ2000', dec_column='DEJ2000', radius= 1 * u.degree, clip_by_frame=False) cat_coords = SkyCoord(cat['RAJ2000'], cat['DEJ2000'])
which uses the existing catalog_search functionality.
catalog_search
The text was updated successfully, but these errors were encountered:
Remove redundant function get_cat
d35a332
Closes feder-observatory#96
mwcraig
Successfully merging a pull request may close this issue.
The
get_cat
function indifferential_photometry/magnitude_transforms.py
isI would suggest importing
catalog_search.py
intomagnitude_transforms.py
and deleteand replace the call to
cat, cat_coords = get_cat(one_image)
inmagnitude_transforms.py
with a the following code:which uses the existing
catalog_search
functionality.The text was updated successfully, but these errors were encountered: