# Tag Archives: reference

## Using Linux Shell Command within Python

If you just want to do some simple task, this would do:

Posted in Uncategorized | Tagged , , , | Leave a comment

## Half-Light Radii for Various Profiles

For a radial profile of , the enclosed flux within the radius is given by     I’m only concerned about azimuthal symmetric cases, so .  The idea is to solve     for . Gaussian Profile Say the Gaussian … Continue reading

Posted in Uncategorized | Tagged , , , | 7 Comments

## Comparing the Efficiencies of Gaussian Convolution Routines

These days I quite often need to convolve (i.e., smooth) 2D images by some Gaussian. There are quite a few routines that can do this with varying efficiencies. So I compared a couple of them. On my laptop, this script … Continue reading

Posted in Uncategorized | | Leave a comment

## Some Physics Units Cheat Sheet

Before I forget: In CGS:     where

Posted in Uncategorized | Tagged , , , | Leave a comment

## Estimating Standard Deviation from N Data Points

In astronomy people often estimate a standard deviation in, say, background counts from the observed data themselves, since it is very difficult to know what true standard deviations are. Then the question is this: How many measurements (e.g., the number … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

## Linux Image Manipulation Cheat Sheet

This will be my cheat sheet for doing image manipulation on Linux. Scale Images ImageMagick has a command mogrify to do this: This will scale all .jpg images to half the original size. Create a GIF Animation More to be … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

## Uncertainty in Flux and Magnitude

I keep forgetting this sort of simple algebra (aging is no fun), so here’s a note. Define magnitude to be related to flux as follows:     where is the zero point flux which defines the magnitude scale.  Let be … Continue reading

Posted in Astro, Research | Tagged , , | Leave a comment

## Using Some Python 3 in Python 2.6.x

This is just a note for myself to start getting used to the Python 3 coding practices. In order to use some Python 3 features in Python 2.6.x, use this statement in my script: It’s not a very good idea … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment