Archive for February, 2011

Kepler’s first results

Posted February 21, 2011 By grigoris

Kepler is a space based telescope to study a small area between Cygnus and Lyra for exoplanet transits of all possible targets but mainly to find Earth sized candidates in the habitable zone. A fist publication reveals these numbers: “On 1 February 2011 the Kepler Mission released data for 156,453 stars observed from the beginning […]

External variable inside awk

Posted February 16, 2011 By grigoris

Sometimes, a variable may be needed to get inside awk (for or while loop for example). In order to pass the variable inside awk, include it like: awk -v i=$i ‘{ .. }’ test

Checking header field in IRAF

Posted February 10, 2011 By grigoris

In order to get a specific field from the header of a file you can use the command: cl> imhead l+ | grep name_of_field In case you want to do it for many files you just use the wildcard: cl> imhead inage*.fit l+ | grep name_of_field Not very sophisticated … but worked fine in […]

IRAF: add packages with precompiled binaries

Posted February 9, 2011 By grigoris

IRAF has a variety of tools but more packages can be added really easy (when there are precompiled binaries at least!). Download the package you want (let it be … testpackage-1.4.0) and extract it inside the directory /pathto/iraf/extern/ ,where all external packages are placed [if scisoft is installed then the path is /scisoft/share/iraf/extern/ ]. Download […]