astromodule.legacy.LegacyService#
- class LegacyService[source]#
High-level Legacy Survey API interface
- Parameters:
- replace: bool, optional
Replace file if exists in
save_path
location- width: float, optional
Stamp width.
- height: float, optional
Stamp height.
- pixscale: float, optional
Pixel scale of the sky.
- bands: str, optional
Image bands
- layer: str, optional
Legacy Survey image layer.
- use_dev: bool, optional
Use the dev env of Legacy Cutout API
- fmt: str, optional
File format. One of:
jpg
orfits
- compress_fits: bool, optional
Compress the downloaded fits stamp to
fits.fz
- workers: int, optional
Maximum spawned threads when
batch_cutout
is called
Methods
batch_cutout
(ra, dec[, save_path, ...])Downloads a list of objects defined by RA and DEC coordinates.
batch_sync_query
(queries, save_paths[, ...])crossmatch
(table, columns, radius, save_path)cutout
(ra, dec[, save_path, base_path, mag_r])Downloads a single Legacy Survey object RGB stamp defined by RA and DEC.
get_pixscale
(mag_r)sync_query
(query, save_path)- classmethod __new__(*args, **kwargs)#