There are a few settings specific to this case: FWHM solve_from_image ( '/path/to/image.fit' ) api_key = 'XXXXXXXXXXXXXXXX' wcs_header = ast. To use this method you must have the package photutils installed.įrom astroquery.astrometry_net import AstrometryNet ast = AstrometryNet () ast. Tuple specifying the units of the right ascension and declination in Name of the key in the FITS header that contains the RA. To use pointing information from the FITS header of the image: ra_key There are a few settings common to both cases that make it convenient
will detect sources and attempt to determine a solution.Īstroquery.astrometry_from_image. There are two ways to get a solution from an image:ĭetect sources in the image and upload the source list to get the plate solution. Testing for success, failure and time outs. If it is unable to find a solution an emptyĭictionary is returned instead. If is able to find a solution it is returned as anĪstropy.io.fits.Header. solve_from_source_list ( sources, sources, image_width, image_height, solve_timeout = 120 ) reverse () image_width = 3073 image_height = 2048 wcs_header = ast. sort ( 'FLUX' ) # Reverse to get descending order sources. read ( 'catalog.fits' ) # Sort sources in ascending order sources. api_key = 'XXXXXXXXXXXXXXXX' sources = Table. To be a longer time than the timeout set inĪstroquery.astrometry_, which is intended toĪct primarily as a timeout for network transactions.įrom astropy.table import Table from astroquery.astrometry_net import AstrometryNet ast = AstrometryNet () ast. The solve_timeout used below is the time, in seconds, to allow theĪ server to find a solution. Other columns, and that the image is 3073 by 2048 pixels. (columns X_IMAGE and Y_IMAGE) and flux (column FLUX) and perhaps
In the example below, assume that catalog.fits is a table of pixel positions The only important requirement is that the list must be sorted by flux in The data can be inĪn, pandas data frame or something other structure. Sources in an image instead of uploading the entire image. The most efficient way to use is to pass it a list of
DEFINITION OF ASTROMETRY DOWNLOAD
Links to download the FITS files for the image. The log will contain the RA/Dec of the solution.įor publicly viewable images or source lists includes Is accessible if one knows the job id regardless of the permissions setįor the image. Be aware that some information you submit to is publiclyĪvailable even if the raw image isn’t.