General
Home
News
Services
Science
Web Statistics
IDL Speed Tips

DanIDL
Features
Subscription Rates
Installation Instructions
History Of Changes
v1.0
v1.1

Online Games
Be the shiniest star and play blackjack online games that will place you on the milky way where the best casino online sites offer the highest bonuses and win real money.

DanDIA
v1.0 - Coming Soon

Stock Photography by Daniel Bramich

Stock photography by Daniel+Bramich at Alamy

Stock Photos, Royalty Free Stock Photography, Photo Search

Contact
Daniel Bramich
dan.bramich "AT" hotmail.co.uk
    

DanIDL - Features

The latest version of the DanIDL library is v1.1. It contains 81 individual modules, each with full documentation and specifications on input/output. A few modules use functions from the IDL Astronomy User's Library and it is therefore advisable to also install this library for full functionality. Take care over the installation though, since this is not like a simple online poker application that can easily be installed in a few clicks. Certain modules have the option of using C++ versions of the code, also supplied within the library, in order to speed up the heaviest parts of the calculations. The IDL (and C++) code is highly optimised for speed and reliability.

Modules and functions in v1.1 of DanIDL are organised into broad subject areas. The following list describes the purpose of the modules/functions currently available within each subject area:

  • Astronomy.Algorithms
  • centroid_thresh_2d.pro - Calculates the centroid of an image cutout with a bad pixel mask and pixel variances.
  • choose_psf_stars.pro - Algorithm for selecting suitable PSF stars from an input star list.
  • findmatch.pro - Searches for matching points between two coordinate lists of two-dimensional points where each list corresponds to a different coordinate space. This is an IDL implementation of the Delaunay triangle matching algorithm designed by Pal & Bakos (2006).
  • findstars.pro - Routine for detecting PSF-like objects (stars) in images. This is an IDL implementation of the DAOFind routine for detecting stars as designed by Stetson (1987).

  • Checks.And.Tests
    • idltype.pro - Determines the IDL variable type code, and also returns a string describing the variable type.
    • test_fltdbl.pro - Checks that the input parameter is a scalar number of the type FLOAT or DOUBLE.
    • test_format_dec.pro - Checks that the input string is of the format "pDD:MM:SS.SSS" corresponding to the declination celestial coordinate.
    • test_format_hms.pro - Checks that the input string is of the format "HH:MM:SS.SSS" corresponding to a 24 hour time (or the right ascension celestial coordinate).
    • test_image.pro - Checks that the input parameter is a two-dimensional array with values of number type.
    • test_intlon.pro - Checks that the input parameter is a scalar number of the type INTEGER or LONG.
    • test_num.pro - Checks that the input parameter is a scalar of number type.
    • test_num_3d_arr.pro - Checks that the input parameter is a three-dimensional array with values of number type.
    • test_num_str.pro - Checks that the input parameter is a scalar of the type STRING that represents a number.
    • test_num_vec.pro - Checks that the input parameter is a one-dimensional vector with values of number type.
    • test_str.pro - Checks that the input parameter is a scalar of the type STRING.
    • test_str_vec.pro - Checks that the input parameter is a one-dimensional vector with values of the type STRING.

  • Difference.Imaging
    • dandia_ksol.pro - Determines the spatially invariant convolution kernel matching a pair of images of the same field. This is an IDL implementation of the discrete-pixel kernel solution method for difference imaging as described in Bramich (2008).
    • dandia_model_image.pro - Constructs an image model from a reference image and discrete-pixel kernel solution for subsequent use in creating a difference image.
    • dandia_subtract.pro - Performs image subtraction for a pair of images by employing the discrete-pixel kernel solution method for difference imaging as described in Bramich (2008).
    • kernel_indices_circ.pro - Generates a set of pixel indices for a kernel array that consists of a mixture of single-pixel and nine-pixel kernel elements.

  • FITS.Input.Output
    • extract_header_keyword.pro - Extracts the value and type of a user specified header keyword from a string array containing an image header. This module serves as a useful wrapper for the IDL Astronomy User's Library module "sxpar.pro".
    • safe_fits_read.pro - Tests that a FITS image file is available on disk before reading in the image data. This module avoids possible errors when using the IDL Astronomy User's Library module "fits_read.pro".
    • safe_fits_write.pro - Tests that a FITS image file is available on disk before writing out the image data. This module avoids possible errors when using the IDL Astronomy User's Library module "fits_write.pro".
    • safe_headfits.pro - Tests that a FITS image file is available on disk before reading in the header data. This module avoids possible errors when using the IDL Astronomy User's Library module "headfits.pro".

  • Fitting.Routines
    • fit_lintrans_2d.pro - Fits a linear transformation with six free parameters mapping a set of points in one two-dimensional coordinate system to the same set of points in another two-dimensional coordinate system.
    • fit_plane.pro - Fits a 3-parameter plane model to image data.
    • fit_proportional.pro - Fits a single parameter proportional model to a set of input data.

  • Image.Processing.Astronomy
    • fwhm.pro - Determines an estimate of the full-width half-maximum (FWHM) and ellipticity of the PSF of an input image.
    • fwhm_g1dfit.pro - Fits a one-dimensional Gaussian function to a set of input data, and it is designed for use by "fwhm_g2dfit.pro".
    • fwhm_g1dfunc.pro - This module is for use within the function "fwhm_g1dfit.pro".
    • fwhm_g2dchisq.pro - This module is for use within the function "fwhm_g2dfit.pro".
    • fwhm_g2dfit.pro - Fits a two-dimensional elliptical Gaussian function to image data, and it is designed for use by "fwhm.pro".
    • fwhm_g2dmodel.pro - This module is for use within the function "fwhm_g2dfit.pro".
    • noise_model_ccd.pro - Calculates the pixel variances for a set of calibrated image data using a standard CCD noise model, taking into account the scaled master dark image, the master flat field image, the CCD readout noise, the CCD gain, and the non-linearity correction coefficients.
    • rmcosmic.pro - Routine to remove cosmic rays from reduced/calibrated images, based on an algorithm employing Laplacian edge detection. This is an IDL implementation of the cosmic ray removal algorithm described by van Dokkum (2001).

  • Image.Processing.General
    • image_bp_interp.pro - Interpolates over the bad pixels in an image.
    • image_gaussian_smooth.pro - Smooths an image by convolving the image with a Gaussian kernel.
    • image_grid.pro - Determines the set of rectangular image regions created by partitioning an image using a regular grid.
    • image_median_replace.pro - Replaces masked pixels in an image with the median of surrounding good pixels.
    • image_median_smooth.pro - Smooths an image using a median filter.
    • image_partition.pro - Determines the set of rectangular image regions created by partitioning an image into a grid of equal size regions.
    • interp_coeffs_1d.pro - Calculates the vector of interpolation coefficients for an input vector of data and a given interpolation scheme.
    • interp_coeffs_2d.pro - Calculates the array of interpolation coefficients for input image data and a given interpolation scheme.
    • pixcoord_1d_vec.pro - Creates a coordinate vector representing the pixel coordinates of a vector of pixel data.
    • pixcoord_2d_arr.pro - Creates two-dimensional coordinate arrays representing the pixel coordinates of a two-dimensional pixel array.
    • region_overlap_1d.pro - Determines the overlap range between two index ranges in one dimension.
    • region_overlap_2d.pro - Determines the overlap region between two rectangular regions in two dimensions.
    • warpim.pro - A general purpose module for applying a coordinate transformation to an image, interpolating where necessary, and taking bad pixels into account in the correct fashion.

  • Math
    • binary_search_with_tol.pro - Employs a binary search algorithm to determine the set of values from an input vector of data that match a single value within a given tolerance.
    • distance_1d_vec.pro - Creates a one-dimensional pixel vector with values representing the distance of each pixel from a fiducial position.
    • distance_2d_arr.pro - Creates a two-dimensional pixel array with values representing the distance of each pixel from a fiducial position.
    • fwhm2sigma.pro - Converts a Gaussian FWHM to a Gaussian sigma.
    • gaussian_1d_vec.pro - Creates a one-dimensional pixel vector with values representing a Gaussian profile.
    • gaussian_2d_arr.pro - Creates a two-dimensional pixel array with values representing an (elliptical) Gaussian profile.
    • line2d.pro - Calculates the y-intercept and gradient of a straight line in two dimensions passing through two points with known coordinates.
    • mean_sigclip.pro - Calculates a sigma-clipped weighted mean of a set of data values.
    • median_with_mask.pro - Calculates the median and standard deviation of a set of data values.
    • pattern_scale_1d.pro - Fits a linear combination of a set of one-dimensional patterns to a one-dimensional set of data.
    • pattern_scale_2d.pro - Fits a linear combination of a set of two-dimensional patterns to a two-dimensional set of data.
    • sigma2fwhm.pro - Converts a Gaussian sigma to a Gaussian FWHM.
    • sign.pro - Determines whether an input parameter is positive, negative or zero.
    • solve_realroots_cubic.pro - Solves for the real root(s) of a cubic equation, of which there is always at least one. The module is implemented in such a way that it may solve multiple cubic equations in one call.
    • solve_realroots_quadratic.pro - Solves for the real root(s) of a quadratic equation, if they exist. The module is implemented in such a way that it may solve multiple quadratic equations in one call.
    • sympoint_match_2d.pro - Searches for matching coordinate pairs between a pair of coordinate lists of two-dimensional points using the same coordinate system. This is an IDL implementation of the symmetric point matching algorithm as described in Pal & Bakos (2006).
    • synfunc_bspline3.pro - Calculates the value of the cubic B-spline synthesis function.
    • synfunc_linear.pro - Calculates the value of the linear synthesis function.
    • synfunc_nn.pro - Calculates the value of the nearest neighbour synthesis function.
    • synfunc_omoms3.pro - Calculates the value of the cubic optimal maximum-order minimum-support (cubic O-MOMS) synthesis function.
    • triangle_space.pro - Calculates the triangle space coordinates and perimeter for each triangle in a set of triangles. This is an IDL implementation of the triangle space coordinate systems described in Pal & Bakos (2006).
    • triangles_merge.pro - Merges the triangles specified in two separate triangle lists.
    • triangulate_extend.pro - Generates an extended Delaunay triangulation of a set of unique points in two dimensions. This is an IDL implementation of the extended Delaunay triangulation procedure as described in Pal & Bakos (2006).
    • triangulate_full.pro - Generates the list of all possible triangles that can be formed from a finite set of points in two dimensions.
    • unique_elements.pro - Determines the set of unique elements in a set of input data.

  • String.Operations
    • chars2str.pro - Creates a string from a vector of characters/strings.
    • dir2name.pro - Extracts the file name from a file name including a full directory path.
    • dir2root.pro - Extracts the full directory path from a file name including a full directory path.
    • printv.pro - Prints a string to the screen only if the input flag is set correctly.
    • scmp.pro - Converts the input parameter to a string without any white space, and with optional formatting.
    • str2chars.pro - Splits a string into a vector of characters.

  • Text.File.Operations
    • read_ascii_file.pro - Reads in a set of lines from an ASCII file.
    • wlog.pro - Appends a string to a text file, creating the target file if necessary, and overwriting the target file if required.




  • This site is © Copyright Daniel Bramich 2009, All Rights Reserved.
    carbon neutral web hosting
    Free web templates