Skip to main content

Tools for making DEIMOS slit masks

Project description

Utilities for designing DEIMOS slitmasks

Contact: <adwasser@ucsc.edu>

Website: <https://github.com/adwasser/masktools>

Required packages

  • numpy (tested on 1.11.0)

  • astropy (tested on 1.1.1)

  • matplotlib (tested on 1.5.0)

  • astroquery (tested on 0.3.1)

masktools.superskims

This package is for creating distributions of SKiMS (Stellar Kinematics with Multiple Slits) which optimally sample the integrated stellar light of a galaxy.

Authors: Nicola Pastorello and Asher Wasserman

This packages installs the superskims script, which creates dsim input files for a given galaxy.

> usage: superskims [-h] [-m MU_EFF] [-r RA] [-d DEC] [-q] > name R_eff axial_ratio position_angle num_masks > > This script generates dsim input files from the inputted galaxy parameters > > positional arguments: > name Name of galaxy for output and NED lookup > R_eff Effective radius of galaxy in arcseconds > axial_ratio Ratio of minor axis to major axis > position_angle In degrees counter-clockwise from North > num_masks Number of masks for the galaxy > > optional arguments: > -h, –help show this help message and exit > -m MU_EFF, –mu_eff MU_EFF > Effective surface brightness in mag/arcsec^2, default > is 22 > -r RA, –ra RA Right ascension, in degrees J2000. If name is findable > by NED, will use that one instead. > -d DEC, –dec DEC Declination, in degrees J2000. If name is findable by > NED, will use that one instead. > -q, –quiet If toggled, suppress console output.

For more fine-grained control, you can access the Mask and Galaxy classes through the masktools.superskims package while within a python environment, e.g.,:

from masktools import superskims
from astropy.coordinates import SkyCoord
center = SkyCoord('12h35m37.9s +12d15m50s')
galaxy = superskims.Galaxy(name='N4551', center=center, r_eff=16.6,
                           axial_ratio=0.75, position_angle=70.5)
galaxy.optimize(num_masks=4)
for mask in galaxy.masks:
    output_file = mask.name + '_PA{:0.1f}_superskims.dsim'.format(mask.mask_pa)
    superskims.outputs.save_to_dsim(mask, galaxy.center, output_file)

masktools.stars

This package is for obtaining good guide stars and align stars for a mask. Work in progress. The get_table method in the query_usno model is likely to be reorganized at some point.

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

masktools-0.0.6.tar.gz (11.9 kB view details)

Uploaded Source

File details

Details for the file masktools-0.0.6.tar.gz.

File metadata

  • Download URL: masktools-0.0.6.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for masktools-0.0.6.tar.gz
Algorithm Hash digest
SHA256 66f86499fe419af07010a915732082ca395944b54b951e514bfbd234b5c61d77
MD5 464560d587ec0e00dd7f7ad988a89f74
BLAKE2b-256 4f7cceaf45e28e6cb5d1f5e483a4213cd7d4b1bc8712878a2a8d74fc0d1016de

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page