Skip to main content

Small module to retrieve cutouts from the Legacy Survey.

Project description


CI license pyversion pkgversion ascl

A tiny Python module to allow easy retrieval of a cutout from the Legacy survey.


This package can be installed simply by running pip install legacystamps. It can also be installed manually with python install.


To use it in a script, import and use the module as follows. To get a FITS cutout:

import legacystamps, dec=dec, mode='fits', bands='grz', size=cutsize)

or to get a JPEG cutout:

import legacystamps, dec=dec, mode='jpeg', bands='grz', size=cutsize)

It can also run standalone. See -h for available options after installation.


The following packages are required:

  • requests
  • tqdm


If you use legacystamps in your work, please consider acknowledging this package through

This work made use of the legacystamps package (

and the acknowledgements associated to

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

legacystamps-1.2.2.tar.gz (5.1 kB view hashes)

Uploaded source

Built Distribution

legacystamps-1.2.2-py3-none-any.whl (20.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page