This repository contains various routines written in IDL for my astronomy research projects. Most rocedures/functions in this collection were written as library codes for "general" purposes, but motivated by specific projects.
Astrophysics Models
- calc_nc.py calculate the critical density of common ISM molecular/atomic species
- calc_igmtau.pro compute a model IGM transmission function
Astronomical Utilities
- calc_qb.pro calculate the effective bandwidth (narrow-line) and gain (continuum) of an imaging filter
- deproj_beam.pro calculate the beam shape of a deprojected galaxy image.
- deproj_im.pro deproject a galaxy image
- fxreadx.pro a fast and memory-saving routine to extract sub-regions from a large 2D image.
- get_filter.pro query astronomical filter properties from a built-in database
- map_fits.pro display fits images with an arbitrary projection
- map_boundary.pro display the imaging boundary by looking up missing data
- mk_hd.pro make a reference image header
- query_refobj.pro query reference objects for astrometry correction
- check_point.pro validate a position in an astronomical image
- match_astro.pro derive astrometry solution with high-order distortions
- psfex_analyzer.pro an IDL wrapper of PSFEX, for analyzing PSF in optical images
- smooth3d.pro convolve a cube or image to a desired resolution
- pltmom_pv.pro plot PV maps
- pltmom.pro plot moment-0/1 maps
- maskmoment_pv.pro make moment-0 maps in the position-velocity dimension
- hrot3d.pro rotate 3D cubes
- err_cube.pro derive an error cube based on a noise pattern model
- gkernel.pro derive the kernel for convolving a gaussian beam to a desired shape
MISC
- amoeba_sa.py a Python implementation of the Nelder-Mead algorithm for function minimization
- pineps.pro combine eps/ps files into multi-page PDF.
- read_table.pro read tables fro google docs, excel, etc.
Download the update-to-date version of this library using the following command:
git clone http://github.com/r-xue/xlib.git
Add the library path to your IDL environment.