mkelley / calviacat Goto Github PK
View Code? Open in Web Editor NEWCalibrate star photometry by comparison to a catalog.
License: MIT License
Calibrate star photometry by comparison to a catalog.
License: MIT License
The issue arises when using xmatch on a small sample of stars. In the example below 7 out of 10 stars queried with xmatch are identified initially. After dropping the previously unidentified stars from the sample, even fewer stars are matched with the catalogue (5 out of 7).
import os
import requests
import numpy as np
from astropy.coordinates import SkyCoord
import calviacat as cvc
stars_a = SkyCoord(np.array([[ 51.59972163, -33.4187023 ],
[ 51.50927589, -33.34720165],
[ 51.55715711, -33.2792019 ],
[ 51.5297432 , -33.34189481],
[ 51.61213712, -33.21934623],
[ 51.46795353, -33.28833715],
[ 51.45707061, -33.29099188],
[ 51.57198152, -33.27501493],
[ 51.63216919, -33.36443673],
[ 51.57411875, -33.40474173]]), unit='deg')
rc2 = cvc.RefCat2('cat.db', min_matches=1)
if len(rc2.search(stars_a)[0]) < 500:
rc2.fetch_field(stars_a)
objids, distances = rc2.xmatch(stars_a)
print(objids)
stars_b = SkyCoord(np.array([
[ 51.50927589, -33.34720165],
[ 51.55715711, -33.2792019 ],
[ 51.5297432 , -33.34189481],
[ 51.46795353, -33.28833715],
[ 51.45707061, -33.29099188],
[ 51.57198152, -33.27501493],
[ 51.57411875, -33.40474173]]), unit='deg')
objids, distances = rc2.xmatch(stars_b)
print(objids)
Very large fields violate the 0.5 deg limit at MAST. Make a way for the user to query a specific location and radius.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.