<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8011855273084554086</id><updated>2012-01-15T21:22:31.241+01:00</updated><category term='Photo'/><category term='Misc'/><category term='Astrophoto'/><category term='Fitspng'/><category term='Rawtran'/><category term='Guide'/><category term='Munipack'/><category term='Nightview'/><category term='Programming'/><category term='barnard'/><category term='Astro'/><title type='text'>hroch's diary</title><subtitle type='html'>If anything can be forget, it will be.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>59</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-1856554971192974939</id><published>2012-01-15T21:17:00.000+01:00</published><updated>2012-01-15T21:22:31.244+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Munipack'/><title type='text'>Konve and picko</title><content type='html'>&lt;br /&gt;&lt;br /&gt;I separated utilities konve and picko from main&amp;nbsp;Munipack's source tree. Sources of both converters&amp;nbsp;are unmaintained and I'm expecting just only small&amp;nbsp;interest about its. On the other side, there are&amp;nbsp;probably huge archives of frames in these formats&amp;nbsp;and the existence of the utility may be important.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Both utilities can be easy used by hand (from command&amp;nbsp;line). An integration to munipack/xmunipack is not planed&amp;nbsp;(although one is easy).&lt;br /&gt;&lt;br /&gt;Moreover, I prepared also:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;GNU autoconf/automake machinery (but simple&amp;nbsp;compilation by gcc will does the same job).&lt;/li&gt;&lt;li&gt;creating of DEB based packages (is there somebody&amp;nbsp;who will do it for RPM based?)&lt;/li&gt;&lt;li&gt;Homepages: &lt;a href="http://integral.physics.muni.cz/konve/"&gt;konve&lt;/a&gt;&amp;nbsp;and &lt;a href="http://integral.physics.muni.cz/picko/"&gt;picko&lt;/a&gt;&lt;/li&gt;&lt;li&gt;source is maintained under Mercurial vs.&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://upload.wikimedia.org/wikipedia/commons/8/84/A_Girl_with_a_Watering_Can.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://upload.wikimedia.org/wikipedia/commons/8/84/A_Girl_with_a_Watering_Can.JPG" width="228" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;Renoir's: A Girl with Watering Can.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-1856554971192974939?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/1856554971192974939/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=1856554971192974939' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/1856554971192974939'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/1856554971192974939'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2012/01/konve-and-picko.html' title='Konve and picko'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-3159771501231958797</id><published>2011-10-22T02:05:00.001+02:00</published><updated>2011-10-22T02:06:01.182+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Munipack'/><title type='text'>Astrometry Release</title><content type='html'>&lt;br /&gt;It's right time for an another development snapshot&amp;nbsp;of Munipack. I have no time and no strength to stay&amp;nbsp;in intense developing during our semester period.&amp;nbsp;Before two months of stagnation, I issuing a rolling&amp;nbsp;progress of Munipack.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;General notes&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The issue is still experimental. The debugging&amp;nbsp;is switched on by default. Don't be confused from&amp;nbsp;a lot of mash prints.&lt;br /&gt;&lt;br /&gt;&lt;div style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Many improvements in image loading, image manipulation&amp;nbsp;or safe thread handling leads to more usable and stable&amp;nbsp;application.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Also many improvements in GUI has been done. The most&amp;nbsp;important is remove of left panel (selector of HDU)&amp;nbsp;in Viewer and adding of zoom and coordinates panel.&amp;nbsp;The image zoom is probably more important than the selector.&amp;nbsp;The toolbar buttons must be relative small because&amp;nbsp;users can prefers no labels to ones.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Practically all main features are (at least partially)&amp;nbsp;currently developed, I plan to publish new issues more frequently.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Astrometry&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-7nOJ3nqJERY/TqIFhJX32KI/AAAAAAAAAdg/oy5YTwukKPM/s1600/Screenshot-Astrometry.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-7nOJ3nqJERY/TqIFhJX32KI/AAAAAAAAAdg/oy5YTwukKPM/s320/Screenshot-Astrometry.png" width="199" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The current issue is focused on astrometry. I developed&amp;nbsp;a GUI and improved importantly astrometry methods. Also&amp;nbsp;support for Virtual Observatory has been included:&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;/li&gt;&lt;li&gt;New matching algorithm on base of back-tracking&amp;nbsp;has been developed.&lt;/li&gt;&lt;li&gt;Dialog GUI for astrometry. Users can directly&amp;nbsp;change parameters and see results of the modifications.&lt;/li&gt;&lt;li&gt;Added (unfinished) GUI dialog for aperture photometry&amp;nbsp;and object detection.&lt;/li&gt;&lt;li&gt;First steps toward to direct editing of FITS files&amp;nbsp;has been implemented as a support of saving WCS to HDU.&lt;/li&gt;&lt;/ul&gt;There are three modes of operation:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;Manual specification of set of full parameters.&lt;/li&gt;&lt;li&gt;Fitting of predefined of set of parameters.&lt;/li&gt;&lt;li&gt;Matching against to a known catalogue.&lt;/li&gt;&lt;/ul&gt;Planed features:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;astrometry directly derived from an image&amp;nbsp;(transfer from image) by fitting of two images&amp;nbsp;by hand (?)&lt;/li&gt;&lt;li&gt;add object name resolver (coordinates position&amp;nbsp;by name)&lt;/li&gt;&lt;li&gt;using of WCS-library for support of more&amp;nbsp;projections and more precise algorithms&lt;/li&gt;&lt;li&gt;solve relative coordinates calibration&amp;nbsp;for wide-field images by digital camera,&amp;nbsp;or precise relative (mutual) positioning&amp;nbsp;of images&lt;/li&gt;&lt;/ul&gt;&lt;b&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;Virtual observatory support&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;This issue is a first which supports VO. Just&amp;nbsp;only cone search and simple analysis of VOtable&amp;nbsp;is implemented. Because there is a poor support&amp;nbsp;of VO in C/C++, I created a parser of VOtable on the top of the wxWidgets interface to&amp;nbsp;Expat library.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Plans:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;object name resolving&lt;/li&gt;&lt;li&gt;image, spectra and time series (?) search&amp;nbsp;implementation&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Munipack's FITS files&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;There are two important changes in FITS files&amp;nbsp;representations. The color format of FITS has been&amp;nbsp;changed during this developing period. The format is&amp;nbsp;more clearer now (see colorfits specification).&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Additionally, I rewrote all older subroutines to&amp;nbsp;store all output information as photometry and&amp;nbsp;object position as FITS tables. The tables are added&amp;nbsp;as a additional HDU of processed images. The&amp;nbsp;advantages are:&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;less chaos, additional information are partially&amp;nbsp;hidden for user&lt;/li&gt;&lt;li&gt;the information are directly accessible for&amp;nbsp;processing&lt;/li&gt;&lt;li&gt;due to binary representation, there are&amp;nbsp;no formatting complications for very small or&amp;nbsp;huge numbers&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;Generally speaking, the FITS files are more suitable for code to code data transfer than complicated set of text files.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Binary packages&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Binary packages are created for deb and rpm&amp;nbsp;based distributions now. Older binary packages&amp;nbsp;has been abandoned due (mainly) to dependency&amp;nbsp;hell and on base of an user feedback.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The packages are created for main current distributions.&amp;nbsp;A deb is designed for latest Ubuntu and&amp;nbsp;Mint and rpm for Fedora and openSUSE.&amp;nbsp;The packages are relative universal (just only&amp;nbsp;widely used libraries (libc, libgtk) in latest versions are required. The choice satisfy over 70% users. Any latest widely-spread distribution does not contain wxWidgets&amp;nbsp;in unstable branch flavor needed by Munipack.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Configuration files&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;All configuration files has been moved to ~/.xmunipack/. Additional changes are planed.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The place is not in conformance with Free&amp;nbsp;desktop recommendations, but there is no support&amp;nbsp;for the rules in wxWidgets.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;wxWidgets update&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Munipack is using the unstable branch of wxWidgets now.&amp;nbsp;It is absolutely necessary because stable branch&amp;nbsp;does not supports event handling for console applications.&amp;nbsp;That means that CLI cannot correctly run and work&amp;nbsp;with external processes.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Minor advantages of use of unstable branch are:&amp;nbsp;spins supporting of double values, more flexible&amp;nbsp;event handling (using of Bind), thread safe (really&amp;nbsp;working!) logging functions.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Also the external process handling and pipe-lining has been&amp;nbsp;rewrote (practically from scratch). The real pipe-lining&amp;nbsp;like a shell is supported via chain of external processes&amp;nbsp;which interacts with next and previous ones via captured&amp;nbsp;standard input and output processed by its overwritten&amp;nbsp;class methods.&amp;nbsp;Noteworthy, the running of external process (or pipe-lining and so on)&amp;nbsp;is implemented extremely poorly probably by all toolkits&amp;nbsp;or under other platforms.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;*&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Munipack has been tagged on version 0.5.2 during Oct 19, 2011.&lt;/div&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-3159771501231958797?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/3159771501231958797/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=3159771501231958797' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/3159771501231958797'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/3159771501231958797'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2011/10/astrometry-release.html' title='Astrometry Release'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-7nOJ3nqJERY/TqIFhJX32KI/AAAAAAAAAdg/oy5YTwukKPM/s72-c/Screenshot-Astrometry.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-6923767137193338977</id><published>2011-06-07T09:41:00.004+02:00</published><updated>2011-07-28T23:28:31.213+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Munipack'/><category scheme='http://www.blogger.com/atom/ns#' term='Fitspng'/><category scheme='http://www.blogger.com/atom/ns#' term='Rawtran'/><title type='text'>New Format of Color FITS for RAWTRAN, FITSPNG and Munipack</title><content type='html'>&lt;div&gt;Long-term experiences with processing of color FITSes has leaded me to drastic change of color-storing format. The separation of single-color bands to FITS image extension is really wrong way. It is less natural than storing in multi-dimensional single array. The data are logically grouped together with meta (header) information.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;However, main reason for the change has been simplifying of manipulations with color images. The simplifying is really drastic. I removed hundredth of code lines and a lot of (potentially) buggy code.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Another important change is replacement of COLORTYP to CSPACE describing of colorspace of stored color image. I suppose, the new keyword is more mnemonics. See also description of the exact structure &lt;a href="http://munipack.physics.muni.cz/colorfits.html"&gt;Color FITS format&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;The changes are included since versions 0.3.0 of rawtran and fitsng and 0.5.2 of Munipack.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-6923767137193338977?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/6923767137193338977/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=6923767137193338977' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/6923767137193338977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/6923767137193338977'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2011/06/new-format-of-color-fits-for.html' title='New Format of Color FITS for RAWTRAN, FITSPNG and Munipack'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-3766980127470721718</id><published>2011-03-15T10:38:00.005+01:00</published><updated>2011-03-15T10:58:46.608+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Astro'/><title type='text'>Photon rain statistics</title><content type='html'>&lt;div&gt;Following discussion with Mr. Pavel concerned on &lt;a href="http://fermi.gsfc.nasa.gov/ssc/data/analysis/documentation/Cicerone/Cicerone_Likelihood/"&gt;likelihood analysis of Fermi's data&lt;/a&gt; (see also the &lt;a href="http://en.wikipedia.org/wiki/Maximum_likelihood"&gt;general description of likelihood analysis&lt;/a&gt;) and a creation of an illustration for Practicum, I created a toy model demonstration of  capture of photons by event-counting area detectors. The key property of a fictions detector is to collect photons during unique time-samples by increasing pixel value in a random place. We can metaphorically designate the model as a photon raining detector.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;More precisely, the algorithm can be represented as (sources: &lt;a href="http://integral.physics.muni.cz/~hroch/ccdnoise.tar.gz"&gt;ccdnoise.tar.gz&lt;/a&gt;):&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;start&lt;/li&gt;&lt;li&gt;  generate random &lt;i&gt;X&lt;/i&gt; coordinate&lt;/li&gt;&lt;li&gt;  generate random &lt;i&gt;Y&lt;/i&gt; coordinate&lt;/li&gt;&lt;li&gt;  add +1 to pixel on &lt;i&gt;X,Y&lt;/i&gt;&lt;/li&gt;&lt;li&gt; back to 0.&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;(All, that's all).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The probability of capture of an event in the time period is given by &lt;a href="http://en.wikipedia.org/wiki/Poisson_distribution"&gt;Poisson distribution&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;p_k (fT) = (fT)^k&lt;/i&gt; e^&lt;i&gt;(fT) / k&lt;/i&gt;!&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;the &lt;i&gt;p_k&lt;/i&gt; is probability of capturing of &lt;i&gt;k&lt;/i&gt;-photons during time period &lt;i&gt;T&lt;/i&gt;  when averaged flux is &lt;i&gt;f&lt;/i&gt; photons per time unit&lt;/li&gt;&lt;li&gt;the events are statistically independent (photons doesn't interacts)&lt;/li&gt;&lt;li&gt;consequence is that the zero, one, or more photons can be captured in a single pixel during &lt;i&gt;T&lt;/i&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Final results has been displayed in following animations. Both show imaginary detector on the left and empirical distribution - histogram (number of detections in a given level) of photons.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/-8LwV68lvz_o/TX81KD_ljNI/AAAAAAAAATM/S4Q2orKGmF8/s1600/screenshot_first.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 148px;" src="http://3.bp.blogspot.com/-8LwV68lvz_o/TX81KD_ljNI/AAAAAAAAATM/S4Q2orKGmF8/s320/screenshot_first.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5584240509949676754" /&gt;&lt;/a&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://integral.physics.muni.cz/~hroch/first.avi"&gt;Shortly after star animation&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The first animation shows state shortly after start of raining. We can see:&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;the noise in start is relative huge, noise disappear with time&lt;/li&gt;&lt;li&gt;the mean gray goes from black to (light-)gray&lt;/li&gt;&lt;li&gt;the distribution histogram is highly non-symmetrical shortly after start&lt;/li&gt;&lt;li&gt;mean of the distribution increases proportionally to time&lt;/li&gt;&lt;li&gt;the distribution metamorphosing from Poisson to Gaussian&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Second animation shows status on a long-term scale:&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;the noise is strongly reduced, practically disappear with time&lt;/li&gt;&lt;li&gt;the noise is not visible at end of simulation (uniform color)&lt;/li&gt;&lt;li&gt;the width of distribution increases with time,&lt;/li&gt;&lt;li&gt;but relative uncertainty decreases as &lt;i&gt;sqrt(t)/t&lt;/i&gt; suppressing noise&lt;/li&gt;&lt;li&gt;distribution histogram approaching Gaussian, very nice illustration of the &lt;a href="http://en.wikipedia.org/wiki/Law_of_large_numbers"&gt;law of large numbers&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Note that imaging has been set to show increasing mean during first animation and reducing relative noise during second animation.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/-Gu0WKa9N09A/TX80-QwLkKI/AAAAAAAAATE/mPXRv_S5v8I/s1600/screenshot-finish.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 148px;" src="http://2.bp.blogspot.com/-Gu0WKa9N09A/TX80-QwLkKI/AAAAAAAAATE/mPXRv_S5v8I/s320/screenshot-finish.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5584240307216289954" /&gt;&lt;/a&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://integral.physics.muni.cz/~hroch/finish.avi"&gt;After long time animation.&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span"&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/-CN6lVW-SUzY/TX80wk-yEkI/AAAAAAAAAS0/MpDpGLEJMqc/s1600/stddev.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 240px;" src="http://2.bp.blogspot.com/-CN6lVW-SUzY/TX80wk-yEkI/AAAAAAAAAS0/MpDpGLEJMqc/s320/stddev.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5584240072128074306" /&gt;&lt;/a&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span"&gt;Along with the animations, I computed mean and standard deviation of rain. The results are in graph. The standard deviation is perfectly fitted by square root. One is excellent demonstration of the important property of Poisson distribution.&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-3766980127470721718?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/3766980127470721718/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=3766980127470721718' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/3766980127470721718'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/3766980127470721718'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2011/03/photon-rain-statistics.html' title='Photon rain statistics'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-8LwV68lvz_o/TX81KD_ljNI/AAAAAAAAATM/S4Q2orKGmF8/s72-c/screenshot_first.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-1471353398846427009</id><published>2011-03-04T22:11:00.008+01:00</published><updated>2011-03-04T22:29:12.401+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='barnard'/><category scheme='http://www.blogger.com/atom/ns#' term='Astro'/><title type='text'>Barnard star constantly in motion</title><content type='html'>&lt;div&gt;Just next short update to those posts &lt;a href="http://monteboo.blogspot.com/2007/12/barnard-in-time.html"&gt;Barnard in time&lt;/a&gt; and &lt;a href="http://monteboo.blogspot.com/2010/03/continuous-motion-of-barnards-star.html"&gt;Continuous motion of Barnard's star.&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/~hroch/Barnard_2010.gif"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 380px; height: 255px;" src="http://integral.physics.muni.cz/~hroch/Barnard_2010.gif" border="0" alt="" /&gt;&lt;/a&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span"&gt;Animation of proper motion of Barnard star&lt;/span&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/~hroch/barnard_2010s.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 380px; height: 255px;" src="http://integral.physics.muni.cz/~hroch/barnard_2010s.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;span class="Apple-style-span"&gt;&lt;div style="text-align: center;"&gt;Track of Barnard star since 2001. &lt;/div&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span"&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-1471353398846427009?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/1471353398846427009/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=1471353398846427009' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/1471353398846427009'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/1471353398846427009'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2011/03/barnard-star-constantly-in-motion.html' title='Barnard star constantly in motion'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-6841032848523799089</id><published>2010-10-17T13:43:00.005+02:00</published><updated>2010-10-17T14:15:32.631+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Munipack'/><title type='text'>Coloring release</title><content type='html'>&lt;div&gt;&lt;i&gt;Munipack development notes&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Version naming&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;I had introduced new naming schema for releases. The naming will be inspired by the crucial development feature.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Naming of the current release is emphasizing development of color handling utilities (coloring, color tuning, color space conversions, etc.).&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Release period&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;Last stable release has been issued on 2010, February. &lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;I think the period is really very long. &lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;The current release does not includes color related features, &lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;but many other important improvements. Namely, &lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;one offers a new command-line interface. So the issue naming would be also &lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;like "commander release", "general failure".;)&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;b&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;In addition, I forget many details developed half year ago, of course.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Also many crash reports (via build-in dialog) are due to errors in binary release which I fixed months ago. So it would be more useful to issue binary releases more frequently. In ideal case, one will immediately follow implementation of an important feature development.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Homepage design&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;I had modernized a schematic design of the homepage. CSS has been extensively used. The design is probably inspired by the design of guide for MS Fortran Powerstation 1994 edition. By my memories.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Also I tried to apply the rules used in classical typography to Web. The detailed application is not possible, but many rules can be simple used. The most visible is limiting number of characters in a single line on 80 characters. It may look little bit uncommonly, but I think the reading is more comfortable.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;I've worry about use of float elements (tables and images) in a Web page, which ugly breaks text flow. On the other side, the placement of all the elements on bottom or on separate pages is more disturbing. I'm expecting some progress in future.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://ilovetypography.com/2007/09/19/15-excellent-examples-of-web-typography/"&gt;The interesting navigation's post about typography&lt;/a&gt; (but no idea but from the examples has been used).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I had try to use rules:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;book-like design&lt;/li&gt;&lt;li&gt;column width of 80 characters&lt;/li&gt;&lt;li&gt;column width of 80 characters&lt;/li&gt;&lt;li&gt;minimized number of used fonts&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;XML serialization&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;When I implemented the archive and DND functions, I developed a XML serialization of FITS header, structure and thumbnail data (contents of ~/Munipack). The concept is partially similar to VO table format. The XML files (including thumbnails in png) can be easy pushed over tcp sockets, streams etc.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Sub-processes&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;This release is also proof of concept for invocation of external binaries within GUI session. The GUI is a controller (GUI wrapper) for the binaries. All working utilities (conversion of raw pictures, coloring, dark, flat averages and corrections) are implemented as sub-processes of GUI (via wxExec function, which is probably just only wrapper of exec(3) family functions under unix).&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;This concept separates GUI and working parts. Also importantly reduces complexity of full package. The utilities communicates via standard input/output. Therefore, there is a wide flexibility in replacing of required subroutines. Also it would be easy to use of the utilities under another environment (Web, etc).&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The successful prove of the concept is probably the most important experience of this release.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;Plplot&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;All plotting has been rewrote to use plplot library. This is just preparation for a more power-full plotting tools.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Displaying improvements&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;In previous release, images has been rendered by passing of every pixel to routines as single argument. The way looks slow. The rendering needs call of two or more functions (tone + color) which may be slow (in order of percent). More important aspect is display in progress. The extensive calling of events for every pixel to indicate progress is very bad idea. Therefore images was displayed when full frame rendering was completed. That may be stressed for user, which expect results immediately.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Therefore, I rewrote displaying in progress to tiling. The image is split-ted on tiles with suitable 137x137 (fine structure constant) pixels. Hence, rendering function works on whole array (not on single pixels). The rendering results can be displayed continuously (only a few events will usually needs) which is more comfortable for user. The rendering naively simulates a progress bar.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Another improvements is pre-scaling of images. One leads to rendering already scaled image. It importantly speed-up tuning of large pictures.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The speed for normal size gray images is satisfactory. Commonly, eye does not recognize any blinking (flickering). The rendering times are usually under 0.2 sec. Unfortunately, the tiling is clearly visible on color images because transformations are more expensive. Rendering may take seconds.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_UOcVemxNJNA/TLriBR2-LfI/AAAAAAAAANc/k_37KeaIR5E/s1600/renderstairs.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 267px;" src="http://4.bp.blogspot.com/_UOcVemxNJNA/TLriBR2-LfI/AAAAAAAAANc/k_37KeaIR5E/s400/renderstairs.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5528980004152421874" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;b&gt;New installer&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The most visible change is use of &lt;a href="http://epmhome.org/"&gt;ESP package manager&lt;/a&gt; which provides graphical installer similar to widely known installers of Windows or Mac OS worlds. The installation is pretty straightforward. All files are installed to /opt. There is no possibility to change the place.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;By the way, the google-chrome deb package installer does the same job. It is designed to unpack a set of binaries to /opt. The installer also create appropriate links to binaries and run &lt;a href="http://portland.freedesktop.org/wiki/"&gt;xdg&lt;/a&gt; tools to add google-chrome to the global menu and desktop.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The graphical installer does not offers ideal way to install when package system is available. In future, it would be better distribute binary packages (deb,rpm?) as well as.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;EPM installer (setup) has included &lt;a href="http://www.fltk.org/"&gt;fltk&lt;/a&gt; library. Also needs some binary libraries (in proper version number!) included in system (png, jpg and X-libs). Is there a way how to link its statically?&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_UOcVemxNJNA/TLrhsYw3eEI/AAAAAAAAANU/2WCN73HGYvE/s1600/Screenshot-Install.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 222px;" src="http://1.bp.blogspot.com/_UOcVemxNJNA/TLrhsYw3eEI/AAAAAAAAANU/2WCN73HGYvE/s400/Screenshot-Install.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5528979645228611650" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;div&gt;&lt;b&gt;Binary bundle&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;I spend very long time with developing of a new build script. &lt;/span&gt;&lt;span class="Apple-style-span" style="font-style: normal; "&gt;&lt;i&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;The script is relative solid and easy to use. So the generation &lt;/span&gt;&lt;span class="Apple-style-span" style="font-style: normal; "&gt;&lt;i&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;of a new binary release binaries will not too bother to me. &lt;/span&gt;&lt;span class="Apple-style-span" style="font-style: normal; "&gt;&lt;i&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;See dist/builder.sh.&lt;/span&gt;&lt;/div&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;The linux packaging systems (deb, rpm,... packages) &lt;/span&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;are really great ones. Unfortunately, there is really many &lt;/span&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;linux distribution and combination of various libraries &lt;/span&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;and tools. Distribution of third-party tools is really big &lt;/span&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;strange not satisfactory solved yet.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;The crucial point is library dependency. Theirs placing and presence &lt;/span&gt;&lt;span class="Apple-style-span" style="font-style: normal; "&gt;&lt;i&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;is important for run. The library mutual cyclic dependencies can &lt;/span&gt;&lt;span class="Apple-style-span" style="font-style: normal; "&gt;&lt;i&gt;&lt;div style="display: inline !important; "&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;cause big problems for binary distribution.&lt;/span&gt;&lt;/div&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;So, I has choose the way for the distribution:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;All files are placed to /opt/munipack. The hard-coded installation directory is required by EPM.&lt;/li&gt;&lt;li&gt;The distribution includes libraries out of typical distribution set (wxWidgets and plplot). The libraries also would correctly set compilation options and versions.&lt;/li&gt;&lt;li&gt;Some binaries (and .so libraries) sets rpath. Usually the rpath is hard-coded during compilation. The path is different from installation path. Therefore, I replace the rpath by patchelf utility (see &lt;a href="http://www.eyrie.org/~eagle/notes/rpath.html"&gt;http://www.eyrie.org/~eagle/notes/rpath.html&lt;/a&gt;).&lt;/li&gt;&lt;li&gt;The distribution script is dist/builder.sh&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-6841032848523799089?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/6841032848523799089/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=6841032848523799089' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/6841032848523799089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/6841032848523799089'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2010/10/coloring-release.html' title='Coloring release'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_UOcVemxNJNA/TLriBR2-LfI/AAAAAAAAANc/k_37KeaIR5E/s72-c/renderstairs.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-638200320647606071</id><published>2010-03-04T13:57:00.006+01:00</published><updated>2011-03-04T22:29:46.076+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='barnard'/><category scheme='http://www.blogger.com/atom/ns#' term='Astro'/><title type='text'>Continuous motion of Barnard's star</title><content type='html'>&lt;div&gt;&lt;div&gt;Some time ago, I published &lt;a href="http://monteboo.blogspot.com/2007/12/barnard-in-time.html"&gt;the article&lt;/a&gt; about visualising of the proper motion of Barnard's star. Now, I had added images of next two years. As we are expecting, the position of the object is nicely predictable.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The last two images (years 2008,2009) are taken during autumns opposite to solstice's images at 2005,2006. Any shift due to parallax is not visible. Simbad gives value for parallax about 0.5" which can be visible with our instruments. By my opinion, when we will more carefully selecting time between exposures.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Barnard's star images has no unique brightnes due to different observing conditions.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_UOcVemxNJNA/S4-vnCqsKKI/AAAAAAAAALo/bojjIfhM2rA/s1600-h/barnard_2009s.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 317px; height: 312px;" src="http://2.bp.blogspot.com/_UOcVemxNJNA/S4-vnCqsKKI/AAAAAAAAALo/bojjIfhM2rA/s320/barnard_2009s.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5444763559779903650" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;i&gt;Barnard's star motion between 2001 and 2009. &lt;/i&gt;&lt;a href="http://integral.physics.muni.cz/~hroch/barnard_2009.png"&gt;&lt;i&gt;Full  field of view&lt;/i&gt;&lt;/a&gt;&lt;i&gt;.&lt;/i&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-638200320647606071?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/638200320647606071/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=638200320647606071' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/638200320647606071'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/638200320647606071'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2010/03/continuous-motion-of-barnards-star.html' title='Continuous motion of Barnard&apos;s star'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_UOcVemxNJNA/S4-vnCqsKKI/AAAAAAAAALo/bojjIfhM2rA/s72-c/barnard_2009s.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-6904524430482327505</id><published>2010-02-11T00:22:00.008+01:00</published><updated>2010-02-11T02:06:56.767+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Munipack'/><title type='text'>A Graphical User Interface for Munipack</title><content type='html'>&lt;div&gt;&lt;div&gt;I had started work on the graphical user interface (GUI) for Munipack year ago. The issue of a first public experimental version including the GUI is ready for &lt;a href="http://integral.physics.muni.cz/munipack/download.html"&gt;downloading&lt;/a&gt;. Thus, I think the time to resume of my selected skills with the GUI development is coming now.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Why GUI?&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Steps towards development of GUI ripened inside me for a long time. The last story which rouse me was processing of large data sets of images from our digital camera. I scaled by manual way its intensities which was produced a very long sequence of commands with fine-tuning options.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_UOcVemxNJNA/S3NCMFxFeTI/AAAAAAAAALg/mfqKe-5zODA/s1600-h/tunnig-fitspng.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 279px; height: 320px;" src="http://3.bp.blogspot.com/_UOcVemxNJNA/S3NCMFxFeTI/AAAAAAAAALg/mfqKe-5zODA/s320/tunnig-fitspng.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5436761950640240946" /&gt;&lt;/a&gt;&lt;div style="text-align: center;"&gt;&lt;i&gt;Screenshot of my older terminal&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;Other reasons:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;simple complex visual manipulation with FITSes&lt;/li&gt;&lt;li&gt;processing of astronomical data by my students during migrating from another platforms&lt;/li&gt;&lt;li&gt;it is really shame that we have not a simple astronomical data manipulation tool in 21. century&lt;/li&gt;&lt;li&gt;command line utilities needs a lot of experiences to work with&lt;/li&gt;&lt;li&gt;I want save my skills with data processing (any kind of description is not satisfactory with respect to a dynamic actions,  a white paper is not a way).&lt;/li&gt;&lt;li&gt;More simple and interactive way of operations on images.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;Not all the aims are included in current versions, but they are planned.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Inspirations&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;I started work with long time experiences of using &lt;a href="http://hea-www.harvard.edu/RD/ds9/"&gt;ds9&lt;/a&gt; and &lt;a href="http://star-www.dur.ac.uk/~pdraper/gaia/gaia.html"&gt;Gaia&lt;/a&gt;. Both are my personal favorites. Unfortunately, both does not fully supports my needs and also the reasons above. Initially, I started work on GUI as a modernized copy of ds9. Lately, I abandoned the way but many of features introduced by the tools are presented.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;As a first step, I coded Help window as a simple copy of &lt;a href="http://www.gnome.org/"&gt;Gnome's&lt;/a&gt; &lt;a href="http://projects.gnome.org/epiphany/"&gt;Epiphany&lt;/a&gt; browser which can be used to display on-line help. Epiphany was one from first clear designed web browsers.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_UOcVemxNJNA/S3NBwjQSUVI/AAAAAAAAALY/KghNY_eCBDA/s1600-h/GUI-Help_thumb.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 292px;" src="http://2.bp.blogspot.com/_UOcVemxNJNA/S3NBwjQSUVI/AAAAAAAAALY/KghNY_eCBDA/s320/GUI-Help_thumb.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5436761477519397202" /&gt;&lt;/a&gt;&lt;i&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-style: normal; "&gt;&lt;i&gt;A help (&lt;a href="http://integral.physics.muni.cz/~hroch/GUI-Help.png"&gt;large&lt;/a&gt;)&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;/i&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The Browser window with thumbnails is similar to another Gnome's utility - &lt;a href="http://live.gnome.org/Nautilus"&gt;Nautilus&lt;/a&gt;, the file browser.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_UOcVemxNJNA/S3NBnaxY7zI/AAAAAAAAALQ/c1F0jRgFaN8/s1600-h/GUI-Workplace_thumb.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 201px;" src="http://3.bp.blogspot.com/_UOcVemxNJNA/S3NBnaxY7zI/AAAAAAAAALQ/c1F0jRgFaN8/s320/GUI-Workplace_thumb.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5436761320623501106" /&gt;&lt;/a&gt;&lt;i&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-style: normal; "&gt;&lt;i&gt;A browser (&lt;a href="http://integral.physics.muni.cz/~hroch/GUI-Workplace.png"&gt;large&lt;/a&gt;)&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;/i&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The dynamical behavior during image rendering/loading is similar to &lt;a href="http://www.apple.com/ilife/iphoto/"&gt;iPhoto&lt;/a&gt;. The load of large images can take many seconds and user is confused when see only a blinded menus or controls. So I used the hook: Firstly display appropriately scaled icon and display a rendered image later. This gives effect of "working application" without confusing of its user.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_UOcVemxNJNA/S3NBgrwYzKI/AAAAAAAAALI/uGVLQEUhNx8/s1600-h/GUI-Loading_thumb.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 215px;" src="http://4.bp.blogspot.com/_UOcVemxNJNA/S3NBgrwYzKI/AAAAAAAAALI/uGVLQEUhNx8/s320/GUI-Loading_thumb.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5436761204923616418" /&gt;&lt;/a&gt;&lt;i&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-style: normal; "&gt;&lt;i&gt;A view during loading (&lt;a href="http://integral.physics.muni.cz/~hroch/GUI-Loading.png"&gt;large&lt;/a&gt;)&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;/i&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;The design&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;I designed GUI practically randomly in early phases. A lot of features I'd take from ds9 or Gaia. After some period of frequent redesigning, I found the document &lt;a href="http://developer.apple.com/mac/library/documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGIntro/XHIGIntro.html"&gt;Apple Human Interface Guidelines&lt;/a&gt; and afterward I cleared concept. By my opinion, the chapter &lt;a href="http://developer.apple.com/mac/library/documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGCharGreatSoftware/XHIGCharGreatSoftware.html#//apple_ref/doc/uid/TP40002720-TPXREF101"&gt;Characteristics of Great Software&lt;/a&gt;  is on base of work and ideas of &lt;a href="http://en.wikipedia.org/wiki/Jef_Raskin"&gt;Jef Raskin&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The key principles:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;Keep everything simple as possible.&lt;/li&gt;&lt;li&gt;Don't distract the user from his/her ideas which working on.&lt;/li&gt;&lt;li&gt;The user is not a programmer. It is expert in astronomy  and I is not (not want to be) an expert in programming.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;See J.Raskin's &lt;a href="http://nitpicker.pbworks.com/The+Humane+Interface"&gt;rules&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;In astronomical processing, the user thinking in absolutely different working framework or technical terms (for example: spectral distribution, black holes, fluxes) than a programmer. So I tried design the GUI in that way. For example, a FITS file is displayed as a tree structure similar with single parts representing every HDUs. User can easy show info about image as well as image itself.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Don't expect that the GUI will cover all functionality of command line utilities. &lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;The programming language selection&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The code of Munipack has been developed in Fortran up today. I used Fortran 77 in early days, but now is everything except munimatch coded in Fortran 90. Unfortunately, there is no graphical toolkit for Fortran. &lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;I selected C++ after forethought. The C only is too primitive and too difficult for GUI programming. The Pascal or Ada has poor support of libraries. &lt;a href="http://golang.org/"&gt;Go&lt;/a&gt; looks attractively (is like C++ with garbage collector) but is not matured yet and also has no support for graphical toolkit.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;I abandoned Java, Python, Ruby, etc. for theirs very slow run and needs of a virtual machine. Also, I can not hustle users for installing some additional exotic virtual machines when they have running CPUs. By my opinion, it is very bad idea to write a image processing utility in interpreted language. The counterargument that the development is more fast is fake. I spend approximate same time while developing in Python and C++  under wxWidgets.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Also, theirs run-time speed is important. All interpreters are slow, really slow. The pull of menu is a great action spending many seconds.:) The replace of sub-elements in a window induces a pause for cup of coffee.:) But users have no time. User wants to see their results immediately. The one is less important in GUI elements but it is really important while displaying of large images. The image must be recomputed (rendered) before every displaying.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The operation must be done on CPU because I have not found a way how to done it onto a graphical card (if there is the way, I think OpenGL specification doesn't supports my needs). To illustrate the computations , please try code with loop over 1000x1000 pixels with a simple operation like sum of two real numbers in various languages. I got: C++ under 0.1 sec, Java, Python a few seconds. Because the operations are done very frequently the interpreted languages are unusable for me.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;The toolkit&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Alternatives for graphical toolkit:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.gtk.org/"&gt;Gtk+&lt;/a&gt; - With &lt;a href="http://www.gtkmm.org/"&gt;Gtkmm+&lt;/a&gt; may be useful. But relative rapid development and non-platform looks doesn't fit my needs.&lt;/li&gt;&lt;li&gt;&lt;a href="http://qt.nokia.com/products"&gt;Qt&lt;/a&gt; - controversial license. Development depends on one company. Unaesthetic look. &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.gnustep.org/"&gt;GnuStep&lt;/a&gt; - Very attractive alternative witch offers look, control and behavior like Mac OS X. Moreover it is programmed in Objective-C. Unfortunately, graphical look under Linux is like one from the past.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;All others are unmatured and too simple (Fltk, fox, ..) or they are in too many retro-style (Motif, Athena ..).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Finally, I selected &lt;a href="http://www.wxwidgets.org/"&gt;wxWidgets&lt;/a&gt;. The toolkit offers many amazing features.&lt;/div&gt;&lt;div&gt;&lt;div&gt;Two crucial features for me:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;Portable (multiplatform). It can be run under many possible environments including Unix, Mac OS X, Windows, smart phones.. The library is as the unified layer between portable code (developed by my) and  a native toolkit. Impressive! So it looks as a native application. Many additional features like portable configuration support, filesystem managements and many more helpers are implemented.&lt;/li&gt;&lt;li&gt;Memory management. wxWidgets has two approaches to memory management. Graphical widgets (like windows, controls, dialog.. elements..) are created as pointers and destroyed by the library itself so memory management is done by library itself. Second way is implementation of reference-counting into library core. Therefore all my data I'm using as reference (not pointers) without risk of memory leaks. Both techniques practically does a kind of automatic garbage collector. The memory is checked via valgrind.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;The GUI core&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I spend a large working time with:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;design and implementation of FITS representation on the top of &lt;a href="http://heasarc.nasa.gov/docs/software/fitsio/fitsio.html"&gt;cFITSIO&lt;/a&gt;. I developed a set of C++ classes as representation of a general FITS file. The implementation can be used as a simple library for cFITSIO. &lt;a href="http://heasarc.gsfc.nasa.gov/docs/software/fitsio/ccfits/"&gt;CCFits&lt;/a&gt; library does not fit my needs.&lt;/li&gt;&lt;li&gt;I'm using two sets of classes. First represents a original FITS file and the structure is fully used in View window. Second represents a FITS meta object containing only headers and icons without memory consuming bitmaps or tables. The structure is used in Browser window.&lt;/li&gt;&lt;li&gt;GUI design (see rest of the post).&lt;/li&gt;&lt;li&gt;Any interaction between different windows controls is implemented by all modern window systems via events. Unfortunately, the implementation is very primitive. Single object sends events to another specified object but it is very difficult to sent the signal to various objects, gets a  response and vice versa. The basic idiom used in this context is &lt;a href="http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller"&gt;model view-control&lt;/a&gt;. I'm using some ideas of its for displaying of images. But I developed it by little another way and independently.&lt;/li&gt;&lt;li&gt;Using of threads. One from big problems when I solved. The windowing system runs handlers for prepared actions without interruption. If any action takes longer periods (over 0.7 sec) user can see that the application hangups. This is very confusing behavior. The right way, how to solve, is via independent threads. The application responses very quickly and  it pleasure for use when threads are used. It is very nice when more than one CPU (or core) is installed. Than both threads can run on different CPUs to importantly speed up the application.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_UOcVemxNJNA/S3NBVxHNJMI/AAAAAAAAALA/e9Ti2IxN_wg/s1600-h/GUI-Hangup_thumb.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 216px;" src="http://2.bp.blogspot.com/_UOcVemxNJNA/S3NBVxHNJMI/AAAAAAAAALA/e9Ti2IxN_wg/s320/GUI-Hangup_thumb.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5436761017382937794" /&gt;&lt;/a&gt;&lt;i&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-style: normal; "&gt;&lt;i&gt;During hungup (&lt;a href="http://integral.physics.muni.cz/~hroch/GUI-Hangup.png"&gt;large&lt;/a&gt;)&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;/i&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;The GUI design&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;I choose untypical (with respect to ds9 or Gaia) layout as result on many experiments. The View window is divided onto two pars. The left is a control panel where a structure and additional info (histogram, size) of FITS is displayed and the right is for displaying of a contents. The window can show all images, tables and header.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The geometry is ideal for modern monitors (commonly in 16:9 format, &lt;a href="http://en.wikipedia.org/wiki/Xerox_Alto"&gt;Xerox Alto computers&lt;/a&gt; are very rare to meet today) when a maximal area of image can be displayed without compromises. The left part is near of other controls (menu or toolbar) to meet a right ergonomy (my personal preference is the close button on the left).&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Two important improvements over the ds9 and Gaia are included:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;The image is fitted on the size during load (like iPhoto's). This speed up loading of large images and also the image is completely and perfectly prepared for a quick inspection.&lt;/li&gt;&lt;li&gt;The image is automatically scaled in intensity. The user probably will see mostly details on the image.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;Some controversy can be creating of separated windows for tuning and detail view. Many peoples don't like the behavior. I checked both alternatives, the dialogs included in tabs in control area and the separated windows. Perhaps, the including is too restricting. The windows has limited space so you can't freely move or size windows. The layout and labels must fit the space. You can't have opened both windows together etc. A useful discussion can clarify the layout.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_UOcVemxNJNA/S3NBNPDgSVI/AAAAAAAAAK4/YJznovVb2XA/s1600-h/GUI-Detail_thumb.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 215px;" src="http://2.bp.blogspot.com/_UOcVemxNJNA/S3NBNPDgSVI/AAAAAAAAAK4/YJznovVb2XA/s320/GUI-Detail_thumb.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5436760870801656146" /&gt;&lt;/a&gt;&lt;i&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-style: normal; "&gt;&lt;i&gt;A detail (&lt;a href="http://integral.physics.muni.cz/~hroch/GUI-Detail.png"&gt;large&lt;/a&gt;)&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;/i&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Bugs&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The current version is relative stable but it was not tested on wide range of software configurations or operating systems. Therefore I expecting a lot of bugs to fix.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The are two channels to report any bugs:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;The &lt;a href="http://code.google.com/p/munipack/issues/list"&gt;issue tracker under Google code&lt;/a&gt;. You must have OpenID account to use it. You can also use the tracker to request of new features.&lt;/li&gt;&lt;li&gt; When application crashes, the application shows an dialog with a log which can be used to directly report to my ftp server. The log can contain some private information. Please check directly that the info can be read be me and when you will accept to pass a (really) small info about your configuration, please send the report.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_UOcVemxNJNA/S3NA5bzHBvI/AAAAAAAAAKw/MZcy0gYqyZw/s1600-h/GUI-Crash.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 318px;" src="http://2.bp.blogspot.com/_UOcVemxNJNA/S3NA5bzHBvI/AAAAAAAAAKw/MZcy0gYqyZw/s320/GUI-Crash.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5436760530625169138" /&gt;&lt;/a&gt;&lt;i&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-style: normal; "&gt;&lt;i&gt;A crash report&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;div&gt;You are also welcomed to &lt;a href="http://groups.google.com/group/munipack-users"&gt;Munipack's Google groups&lt;/a&gt; where you can report bugs or discuss more detaily other aspect of Munipack and the astronomical processing.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Discover of a New World&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The detailed structure of FITS files reveals a new world for me. With help of the one, many FITSes shows unexpected additional features. Do you know that &lt;a href="http://archive.stsci.edu/cgi-bin/dss_form"&gt;DSS images&lt;/a&gt; has two parts? The use of the parts is trivial not a complicated. The structure of FITS is displayed as an integral part of FITS world so users are not surprised by the complicated structure. Especially, it is important during inspection of any unknown file.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_UOcVemxNJNA/S3NAsw6YSNI/AAAAAAAAAKo/SLD7wfX85dM/s1600-h/GUI-horse_thumb.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 216px;" src="http://1.bp.blogspot.com/_UOcVemxNJNA/S3NAsw6YSNI/AAAAAAAAAKo/SLD7wfX85dM/s320/GUI-horse_thumb.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5436760312954505426" /&gt;&lt;/a&gt;&lt;i&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-style: normal; "&gt;&lt;i&gt;Horse nebula (&lt;a href="http://integral.physics.muni.cz/~hroch/GUI-horse.png"&gt;large&lt;/a&gt;)&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;/i&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Unimplemented features&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;List mode (don't show icons, show table with files) in Browser. It is probably useless, because thumbnails are not visible. I'm hesitating with its support.&lt;/li&gt;&lt;li&gt;Orthogonal intensity scaling. The well behaving applications has orthogonal controls. That means, that when one tune a quantity, other quantities are not affected. Unfortunately, the intensity scaling in not implemented orthogonally. The image is brighter of darker by using of  both sliders. I have no idea how orthogonalise it.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;Please, keep in mind that everything can be changed.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-6904524430482327505?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/6904524430482327505/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=6904524430482327505' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/6904524430482327505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/6904524430482327505'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2010/02/graphical-user-interface-for-munipack.html' title='A Graphical User Interface for Munipack'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_UOcVemxNJNA/S3NCMFxFeTI/AAAAAAAAALg/mfqKe-5zODA/s72-c/tunnig-fitspng.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-3984338284781609491</id><published>2010-01-15T22:35:00.005+01:00</published><updated>2010-01-15T23:19:19.806+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Munipack'/><title type='text'>Astrometry Calibration</title><content type='html'>&lt;div&gt;&lt;div&gt;I added experimental support for astrometry to Munipack. It is primary designed for astrometry on CCD. So only gnomonical projection and affine transformation (shift and rotation) are supported yet. Both limitation can be freed in future releases.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The astrometry code is available in &lt;a href="http://code.google.com/p/munipack/source/browse/"&gt;GoogleCode&lt;/a&gt; now.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;The algorithm&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;I coded my own implementation of the widely-known "Astrography plate &lt;/div&gt;&lt;div&gt;measurement" (&lt;a href="http://books.google.cz/books?id=wOpaUFQFwTwC&amp;amp;dq=smart+green+spherical+astronomy&amp;amp;printsec=frontcover&amp;amp;source=bn&amp;amp;hl=cs&amp;amp;ei=d5NPS4vAIpmCnQOLip2dCg&amp;amp;sa=X&amp;amp;oi=book_result&amp;amp;ct=result&amp;amp;resnum=4&amp;amp;ved=0CBsQ6AEwAw#v=onepage&amp;amp;q=&amp;amp;f=false"&gt;Smart &amp;amp; Green&lt;/a&gt;, &lt;a href="http://www.amazon.com/Computational-Spherical-Astronomy-Laurence-Taff/dp/047106257X"&gt;Tagg&lt;/a&gt;).&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;On input:&lt;/div&gt;&lt;div&gt;&lt;div&gt;The table with  Right Ascension,Declination (from any catalogue) and corresponding measured rectangular x and &lt;i&gt;y&lt;/i&gt; coordinates for every object.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The algorithm:&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Get center of a picture in pixels as half of both sizes.&lt;/li&gt;&lt;li&gt;Estimate a center of projection in spherical coordinates by mean.&lt;/li&gt;&lt;li&gt;Project spherical coordinates to rectangular ones.&lt;/li&gt;&lt;li&gt;Estimate scale as mean ratio between distances of projected and measured distances of objects.&lt;/li&gt;&lt;li&gt;Estimate angle of rotation between projected and measured coordinates by using of property of scalar product of vectors.&lt;/li&gt;&lt;li&gt;Compute the transformation by some minimization method with starting values given by items 3,4 and 5.&lt;/li&gt;&lt;li&gt;Check offsets between center of projected and measured coordinates. If one is too great, does better estimate of the center of projection and repeat from item 2, else finish.&lt;/li&gt;&lt;/ol&gt;On output:&lt;/div&gt;&lt;div&gt;Precise coordinates of center of projection, scale and position angle of image. Optionally, statistical parameters.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The described algorithm is relative general, so it can be easy modifies for another projections or more complex transformations of rectangular coordinates like distortions, pincushion, etc.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The algorithm is iterative due to fact that we need known the center of projection before we have calibrated image. Usually, only tree iterations are required.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;The Robust Algorithm&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The real-world usable algorithm needs to be robust. Small deviations can cause only small variances in output parameters. Outliners has only small fluency on the solution. The simple example of the use of robust method can be found in Launer &amp;amp; Wilkinson: Robustness in statistics: proceedings of a workshop (1979) or in &lt;a href="http://books.google.cz/books?id=1aAOdzK3FegC&amp;amp;dq=numerical+recipes&amp;amp;printsec=frontcover&amp;amp;source=bn&amp;amp;hl=cs&amp;amp;ei=YKFPS6mOJKLsmwPBzdWiCg&amp;amp;sa=X&amp;amp;oi=book_result&amp;amp;ct=result&amp;amp;resnum=4&amp;amp;ved=0CCUQ6AEwAw#v=onepage&amp;amp;q=&amp;amp;f=false"&gt;Numerical Recipes&lt;/a&gt;. Munipack implements robust mean estimator in lib/statistics.f90 as rmean. Another use of the robust algorithm is on &lt;a href="http://monteboo.blogspot.com/2010/01/fitting-of-straight-line.html"&gt;straight light fitting&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I applied the basic schema of robust algorithms to the above algorithm:&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Estimate median of absolute deviations (MAD) using of minimization of absolute deviation (Nelder-Mead).&lt;/li&gt;&lt;li&gt;Use method of maximal likelihood to estimate the proper transformation.&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Astrometry implements module in astrometry/astrometry.f90. The estimation of MAD is loop around nelmin. The maximum likelihood is loop around Minpack's hybrd.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The fitting is decomposed on tree single steps (estimate of center of projection, scale and affine transformation) so we works in parameter sub-spaces (we are not fitting all the parameters together). Numerical experiments gives me more robust behavior and more precise solutions than simultaneous fitting of all parameters. By my opinion, it is results of (non-)ignoring of their cross-correlations. It is interesting that QR decomposition does not solve the problem.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The algorithm is optimized on precision not on speed. So for a lot of objects may be slow.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;The Low Precision Algorithm&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The robust algorithm can be used only for many object (ideally for tens of stars and more). The absolute minimum is five stars. I'm supposing that sometimes will be required astrometry for less stars. In this case, I'm switching to a simple algorithm which uses median only to estimate of required parameters.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;For two stars, the transformation can be determined, but is is not possible to estimate uncertainties of parameters. It is not possible to estimate scale or rotation for only single star.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Input/Output "protocols"&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;I choose an unusual way to set an input and get an output data. The stream input is a text file consists a set of lines (records) with the same structure as FITS headers. By the user point of view, the routine performs as a transformation filter. The text file on input is modified by replacing and adding new lines to the output text file.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The output structure is perfectly suitable to be directly writable to a FITS header in standard WCS format. We need an external utility to merge of the output lines to an existing FITS file. Munipack provides munifits tool for the task.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;It is possible to add another type of output, but I think, there is no other widely used standard astrometric format. If the way will successful, I'll reimplement it for remaining utilities of Munipack.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The style can be little bit strange but absolutely the same as standard e-mail handling. An user interface (Thunderbird, elm, ..) creates well formatted input file and pass it to a SMTP daemon. The daemon (or its successors) delivers its (as copying filter) to a recipient and some client decode its. Note that many Unix utilities uses the same idioms (sed, awk,...). The main advantage of the style is a simple modification of format, also back and forward compatibility. [&lt;a href="http://catb.org/~esr/writings/taoup/"&gt;http://catb.org/~esr/writings/taoup/&lt;/a&gt;].&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The protocol is in detail described in included manual page and test example.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_UOcVemxNJNA/S1Dl8aiUUyI/AAAAAAAAAKg/bawLll8AyWU/s1600-h/barnard-calibrated-ds9ucac2-thumb.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 250px; height: 230px;" src="http://4.bp.blogspot.com/_UOcVemxNJNA/S1Dl8aiUUyI/AAAAAAAAAKg/bawLll8AyWU/s320/barnard-calibrated-ds9ucac2-thumb.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5427090377059619618" /&gt;&lt;/a&gt;&lt;div style="text-align: center;"&gt;A&lt;i&gt;n example of calibrated image with UCAC2 displayed stars. Thx. Mr. Pavel. &lt;a href="http://integral.physics.muni.cz/~hroch/barnard-calibrated-ds9ucac2.png"&gt;Large size&lt;/a&gt;.&lt;/i&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-3984338284781609491?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/3984338284781609491/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=3984338284781609491' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/3984338284781609491'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/3984338284781609491'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2010/01/astrometry-calibration.html' title='Astrometry Calibration'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_UOcVemxNJNA/S1Dl8aiUUyI/AAAAAAAAAKg/bawLll8AyWU/s72-c/barnard-calibrated-ds9ucac2-thumb.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-2892544950043808734</id><published>2010-01-05T21:01:00.009+01:00</published><updated>2010-01-06T01:20:01.419+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming'/><title type='text'>Fitting of Straight Line</title><content type='html'>One from most trivial problems of statistical &lt;a href="http://en.wikipedia.org/wiki/Regression_analysis"&gt;regression analysis&lt;/a&gt; is fitting of a &lt;a href="http://en.wikipedia.org/wiki/Curve_fitting#Fitting_lines_and_polynomial_curves_to_data_points"&gt;straight line&lt;/a&gt;. I selected this well-known problem to illustrate &lt;div&gt;&lt;ul&gt;&lt;li&gt;usage of &lt;a href="http://en.wikipedia.org/wiki/MINPACK"&gt;Minpack&lt;/a&gt; library to least square fitting by the &lt;a href="http://en.wikipedia.org/wiki/Least_squares"&gt;least square method&lt;/a&gt; (LS) together with &lt;/li&gt;&lt;li&gt;usage of r&lt;a href="http://en.wikipedia.org/wiki/Robust_regression"&gt;obust statistical methods&lt;/a&gt; and also to prepare &lt;/li&gt;&lt;li&gt;a simple reference example for testing of any software. &lt;/li&gt;&lt;/ul&gt;All required code can be found in &lt;a href="http://integral.physics.muni.cz/~hroch/straightline.tar.gz"&gt;the archive&lt;/a&gt;. Please read README for detailed description of included files.&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Reference Data and Solution&lt;/span&gt;&lt;/h3&gt;As data for a working example, I selected a tabulated values for a straight line from excellent mathematical handbook: Survey of Applicable Mathematics by K. Rektorys et al. (ISBN 0-7923-0681-3, Kluwer Academic Publishers, 1994). The data set is included in the archive as line.dat.&lt;br /&gt;&lt;br /&gt;Normal equations:&lt;br /&gt;&lt;pre&gt; 14*a +  125*b = 170&lt;br /&gt;125*a + 1309*b = 1148.78&lt;br /&gt;&lt;/pre&gt;and LS solution:&lt;br /&gt;&lt;pre&gt;a   = 29.223&lt;br /&gt;b   = -1.913&lt;br /&gt;S0  = 82.6997&lt;br /&gt;rms =  2.625&lt;br /&gt;sa  =  1.827&lt;br /&gt;sb  =  0.189&lt;br /&gt;&lt;/pre&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;img src="http://integral.physics.muni.cz/~hroch/straightline.png" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Using Minpack&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:130%;"&gt;&lt;span class="Apple-style-span"  style="font-size:16px;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;Simple usage of Minpack in LS case is straightforward. One calls hybrd (Jacobian is approximated by numerical differences) or hybrj (must specify second derivatives) and one pass a subroutine to compute vector of residuals in a Minpack required point. Minpack uses Powell's method which combines location of minimum with conjugate gradient method (locate minimum in direction of most steeper slope) far from minimum and Newton's method (fit the function with multidimensional paraboloid and locate minimum by intersection of tangent plane with coordinate axis) near of minimum.&lt;br /&gt;&lt;br /&gt;For the straight line, we define&lt;br /&gt;&lt;br /&gt;a +  b * x&lt;sub&gt;i&lt;/sub&gt;&lt;br /&gt;&lt;br /&gt;and minimizing of sum for i = 1 to N:&lt;br /&gt;&lt;br /&gt;S = ∑ (a + b * x&lt;sub&gt;i&lt;/sub&gt; - y&lt;sub&gt;i&lt;/sub&gt;)²&lt;br /&gt;&lt;br /&gt;The vector for Minpack is&lt;br /&gt;&lt;br /&gt;∂S/∂a = ∑ (a + b * x&lt;sub&gt;i&lt;/sub&gt; - y&lt;sub&gt;i&lt;/sub&gt;)&lt;br /&gt;∂S/∂b = ∑ (a + b * x&lt;sub&gt;i&lt;/sub&gt; - y&lt;sub&gt;i&lt;/sub&gt;)*x&lt;sub&gt;i&lt;/sub&gt;.&lt;br /&gt;&lt;br /&gt;The Jacobian is than&lt;br /&gt;&lt;pre&gt;∂²S/∂a²    ∂²S/∂a∂b&lt;br /&gt;∂²S/∂b∂a   ∂²S/∂b²&lt;br /&gt;&lt;/pre&gt;or&lt;br /&gt;&lt;pre&gt;N          ∑ x&lt;sub&gt;i&lt;/sub&gt;&lt;br /&gt;∑ x&lt;sub&gt;i&lt;/sub&gt;       ∑ x&lt;sub&gt;i&lt;/sub&gt;²&lt;br /&gt;&lt;/pre&gt;All the sums can be found in minfunj in straightlinej.f90.&lt;br /&gt;&lt;br /&gt;The call of hybrj search for a minimum of the function. On output, the located minimum is included in fvec and I added a code to compute covariance matrix to estimate statistical deviations of parameters and their correlation.&lt;br /&gt;&lt;br /&gt;With gfortran I get the solution on 64bit machine:&lt;br /&gt;&lt;span class="Apple-style-span"  style=" white-space: pre; font-family:monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" white-space: pre; font-family:monospace;"&gt;....&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;minfun: par =   29.22344    -1.91302  sum =  82.68976&lt;br /&gt;minfun: par =   29.22344    -1.91302  sum =  82.68976&lt;br /&gt;hybrj finished with code           1&lt;br /&gt;Exit for:&lt;br /&gt;algorithm estimates that the relative error between x and the solution is at most tol.&lt;br /&gt;qr factorized jacobian in minimum:&lt;br /&gt;q:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;0.10769513068469699       0.99418396628934158&lt;br /&gt;-0.99418396628934158       0.10769513068469688&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;pre&gt;r:&lt;br /&gt;152.97596122677001        1371.8039727109779&lt;br /&gt;1371.8039727109779        17.656368881644468&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;inverse of r (cov):&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;0.25799238244686612      -2.87651125847342495E-002&lt;br /&gt;-2.87651125847342495E-002  3.20772561895261684E-003&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;covariance:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;1.7777772679919355      -0.19821501231688973&lt;br /&gt;-0.19821501231688973      2.21038374592466315E-002&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;No. of data =           14&lt;br /&gt;solution =    29.223435764531654       -1.9130248056275454&lt;br /&gt;with dev =    1.3333331421636287       0.14867359368511487&lt;br /&gt;residual sum  =    82.689756238430220&lt;br /&gt;rms =    2.6250358130641160&lt;br /&gt;&lt;/pre&gt;The results must correspond (within precision of tree digits) to the reference solution. As we can see, there is a great discrepancy in deviations of parameters. The Minpack's estimation is little bit optimistic. I think that is due to difference between matrix inversion (which is usually used) and Minpack's covariance estimation. On the other side, the values are the same from practical point of view.&lt;br /&gt;&lt;br /&gt;Just for information. The inverse matrix (all by Octave) of Jacobian in minimum is (inv(.))&lt;br /&gt;&lt;pre&gt; 0.4846353  -0.0462792&lt;br /&gt;-0.0462792   0.0051833&lt;br /&gt;&lt;/pre&gt;and the QR factorization ([q,r,.]=qr(.)):&lt;br /&gt;&lt;pre&gt;q =&lt;br /&gt;-0.995472   0.095060&lt;br /&gt;-0.095060  -0.995472&lt;br /&gt;&lt;br /&gt;r =&lt;br /&gt;-2.0541e+00 -1.2576e+02&lt;br /&gt;0.0000e+00  -1.3150e+03&lt;br /&gt;&lt;/pre&gt;The Q matrix columns are base vectors (eigenvectors) of solution (the principal axes of covariance ellipsoid) and the diagonal elements are estimates of eigenvalues values (major and minor semiaxes of the ellipse) [l,v]=eig(.).&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;l =&lt;br /&gt;-0.995457   0.095208&lt;br /&gt;0.095208   0.995457&lt;br /&gt;&lt;br /&gt;v =&lt;br /&gt;2.0447e+00   0.0000e+00&lt;br /&gt;0.0000e+00   1.3210e+03&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;The second supplied routine straightline.f90 does the same work but without explicit knowledge of the second derivatives. The Jacobian is estimated by numerical differences.&lt;br /&gt;&lt;br /&gt;The solution can be also done via lmdef, lmder routines in Minpack. It is equivalent to presented solution but doesn't offers generalization toward robust methods.&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Robust Fitting&lt;/span&gt;&lt;/h3&gt;The reference robust fitting procedure is included in rstraightline.f90.&lt;br /&gt;&lt;br /&gt;The fitting is logically divided onto two parts. The first part implements minimizing of sum of &lt;a href="http://en.wikipedia.org/wiki/Absolute_deviation"&gt;absolute deviations&lt;/a&gt; to get robust estimation of proper solution and MAD (mean of absolute deviations). There is little change with respect on LS because minimizing function have no derivation in minimum. We need another method without using of derivatives. I'm using code prepared by &lt;a href="http://people.sc.fsu.edu/~burkardt/index.html"&gt;John Burkardt&lt;/a&gt;, namely using Nelder-Mead Minimization Algorithm (simplex method). I slightly rearranged the code to nelmin.f90.&lt;br /&gt;&lt;br /&gt;The resultant parameters are used to obtain MAD by looking for its median by a quick way algorithm described in Niklaus Wirth's &lt;a href="http://www.inf.ethz.ch/personal/wirth/books/AlgorithmE0/"&gt;Algorithms + Data Structures = Programs&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The solution is than passed as start point for hybrd which is the second part. The minfun is similar to non-robust version. Only difference between predicted and computed solution (residual) is not directly used, but a cut-off function is used (Tukey's function). This small change  does  robust fitting itself.&lt;br /&gt;&lt;pre&gt;.....&lt;br /&gt;medfun: par=   30.57930  -1.918842   sum=   29.9467137&lt;br /&gt;medfun: par=   30.57930  -1.920842   sum=   29.9506577&lt;br /&gt;ifault=           0   29.940157123526994&lt;br /&gt;t=   30.579306941153348       -1.9198428764730142&lt;br /&gt;4.3939266204833984        2.9615066&lt;br /&gt;minfun: par =  30.57931  -1.91984   sum =  106.17691&lt;br /&gt;.....&lt;br /&gt;&lt;br /&gt;minfun: par =  29.24548  -1.91425   sum =   82.69177&lt;br /&gt;hybrd finished with code:           1&lt;br /&gt;Exit for:&lt;br /&gt;algorithm estimates that the relative error between x and the solution is at most tol.&lt;br /&gt;qr factorized jacobian in minimum:&lt;br /&gt;q:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;-0.10942034931424138      -0.99399556696996860&lt;br /&gt;0.99399556696996860      -0.10942034931424133&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;r:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;29.315789045435952        295.17538616058539    &lt;br /&gt;295.17538616058539           4.3667770003656630&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;inverse:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;5.3177769129754946      -0.52802747846866527&lt;br /&gt;-0.52802747846866527      5.24418460845494372E-002&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;covariance:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;2.7756865626932967      -0.27561118127052436&lt;br /&gt;-0.27561118127052436      2.73727405045027551E-002&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;No. of data =           14&lt;br /&gt;solution =    29.245477844988198       -1.9142493591979692&lt;br /&gt;with dev =    1.6660391840209812       0.16544709276533920&lt;br /&gt;residual sum  =    82.691772460937500&lt;br /&gt;rms =    2.6250678159642766&lt;br /&gt;&lt;/pre&gt;The output values are practically the same as in non-robust case. Only the difference is estimation of parameter's deviation. I'm using the formula recommended by &lt;a href="http://books.google.cz/books?id=HQp2BKN-qWoC&amp;amp;lpg=PR6&amp;amp;ots=4LpvACji0V&amp;amp;dq=p%20j%20huber%20robust%20statistical%20book&amp;amp;pg=PA171#v=onepage&amp;amp;q=&amp;amp;f=false"&gt;Hubber (1980), eq. (6.6) p. 173&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The real power of the robust fitting can be easy demonstrated by adding any outlier (point with really different value) to the set, for example, a point with coordinate 10,100. Try to see the robust algorithm in action. It should be  practically the same while non-robust solution gives some strange values.&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Minpack Fortran Interface&lt;/span&gt;&lt;/h3&gt;The original Minpack is written in Fortran 77. I'm using modern Fortran (Fortran 90, 95 or 2003) which supports better type checking via interfaces. I prepared such interface which is included in Archive as minpack.f90 and must be passed to compiler during compilation. The module did not changed original API to Minpack routines to prevent any programming errors. So you also must pass to the routines "working arrays" (wa). One is used in modern Fortran more elegant way as automatic arrays (arrays allocated automatically when subroutine is entered and deallocatedon its exit).&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Estimation of an initial solution&lt;/span&gt;&lt;/h3&gt;The solution will not depend on starting point only in linear case. Every complex   real) case will lead to non-linear solution with a lot of local minimums which will attract the simplex or the gradient (Powell's method) to a "wrong" solution. To locate global minimum (eg. required solution), I recommends use of &lt;a href="http://en.wikipedia.org/wiki/Genetic_algorithm"&gt;genetic algorithms&lt;/a&gt; as predictors of a global minimum. The genetic algorithms will locate right minimum with a low precision and we can use some modification of above codes to determine the minimum with required precision.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-2892544950043808734?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/2892544950043808734/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=2892544950043808734' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/2892544950043808734'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/2892544950043808734'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2010/01/fitting-of-straight-line.html' title='Fitting of Straight Line'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-741780601936670620</id><published>2009-12-25T13:08:00.002+01:00</published><updated>2009-12-25T13:17:20.938+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Astrophoto'/><category scheme='http://www.blogger.com/atom/ns#' term='Photo'/><title type='text'>Photo Gallery</title><content type='html'>&lt;div&gt;Recently, I created a &lt;a href="http://integral.physics.muni.cz/~hroch/gallery/"&gt;photo gallery&lt;/a&gt; with my personal photos. The gallery is fashioned only as preview for fast look-up.  It contains only non-processed images. I think that it would be better than current state when I'm buffering images somewhere on disk(s). Images which waits for detailed image processing (panoramas, various image operations, etc), can be public available by this way.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The gallery is generated as a static web pages by &lt;a href="http://home.gna.org/llgal"&gt;llgal&lt;/a&gt;. The generation is very fast. It needs only manually download images from camera and running of some scripts. I have checked also &lt;a href="http://www.saillard.org/programs_and_patches/photon/"&gt;photon&lt;/a&gt;  which do similar job,  but neither full-evening hacking didn't fit my requirements on&lt;/div&gt;&lt;div&gt;&lt;div&gt;appearance and functionality.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;All images, in the galleries, are generated from RAW Canon files by dcraw and convert (&lt;a href="http://www.imagemagick.org/"&gt;Imagemagic&lt;/a&gt;). As output format, I choose JPEG to importantly reduce image sizes for fast browsing. The quality is poor, but images are small.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;for A in *.CR2; &lt;/div&gt;&lt;div&gt;  do&lt;/div&gt;&lt;div&gt;     # from RAW to 1000x666 pixel JPG&lt;/div&gt;&lt;div&gt;     dcraw -c -f -q 3 -w -h $A | convert - -geometry 1000 ${A%CR2}jpg&lt;/div&gt;&lt;div&gt;     # add copyright&lt;/div&gt;&lt;div&gt;     composite -dissolve 30 -gravity SouthEast copyright.png ${A%CR2}jpg ${A%CR2}jpg&lt;/div&gt;&lt;div&gt;  done&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;An important parameter for dcraw is -w which set color temperature from parameters supplied by a camera. It is important: when I have set the color temperate to a different one, my older images are toned to red. That is because of dcraw default uses 6500 (for &lt;a href="http://en.wikipedia.org/wiki/D65"&gt;D65 illuminant&lt;/a&gt;). I have set the temperature according of Sun (5700) which is bad idea because of illuminant D65 have no thermal spectral flux density.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;I'm adding a signature to every image as &lt;a href="http://en.wikipedia.org/wiki/Free_Culture_(book)"&gt;L.Lessig&lt;/a&gt; recommends. The signature itself is created as a muster by the command:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;convert -size 80x17 xc:none -font Courier-Bold  -pointsize 14 \&lt;/div&gt;&lt;div&gt;           -stroke black -strokewidth 5 -annotate +4+12 '© F.Jetel' \&lt;/div&gt;&lt;div&gt;           -fill white -blur 0x4  -stroke none   -annotate +4+12 '© F.Jetel' \&lt;/div&gt;&lt;div&gt;           copyright.png&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;and added with composite command (above in processing loop) to images. The signature image has transparent background (xc:none), and some decoration (options -stroke and -blur). The signature is partially transparent when it added to images to suppress thickness (-dissolve).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;For documentation purposes it is important include useful information about images. Unfortunately, JPEGs created by dcraw conversion has removed an important information as a time of exposure etc. So I'm adding selected exif information to JPEGs via exiftool:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;exiftool -tagsfromfile "%d%f.CR2" -r -ext jpg .&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;From files prepared by the described way, it is possible create of a gallery by the command:&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;llgal -f --exif "FileName,ImageWidth,ImageHeight,CameraModelName,CreateDate,ExposureTime,ISO,FocalLength,LensType" --title "Geminidy 2009" --cf&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Also, for updating of list of galleries, I'm using the command:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;llgal -L -S --exclude copyright.png --title "Photo Gallery"&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;That's all. Please, change the name in copyright when you will copy my scripts to your galleries.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-741780601936670620?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/741780601936670620/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=741780601936670620' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/741780601936670620'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/741780601936670620'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2009/12/photo-gallery.html' title='Photo Gallery'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-7728494681188570822</id><published>2009-12-10T00:24:00.002+01:00</published><updated>2009-12-10T01:17:06.782+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Munipack'/><title type='text'>Munipack vs. Mercurial</title><content type='html'>I uploaded Munipack's source version tree to Google's &lt;a href="http://mercurial.selenic.com/"&gt;Mercurial&lt;/a&gt; repository a few minutes ago. The step has been invoked by idea to provide of a public access of current code changes via Google's version repository. Munipack's archive is accessible on Google's code:&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;   &lt;a href="http://code.google.com/p/munipack/source/checkout"&gt;http://code.google.com/p/munipack/source/checkout&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I'd used classic CVS before two weeks ago. Unfortunately, Google doesn't offers CVS, so I explored SVN, Mercurial and Git. Therefore I explored these version systems. By my opinion, SVN isn't step forward. Features of both (CVS vs. SVN)  overlaps and the turnover practically offers only different codes (aliases) for operations. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Both Mercurial and Git are acceptable and with an excellent design. The selection Mercurial vs. Git is really difficult. Finally, I selected the Mercurial only for its wider portability, which is really important for me (and also for Mercurial's simple usage and nice &lt;a href="http://hgbook.red-bean.com/"&gt;guide&lt;/a&gt;). &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Beginning experiences are really amazing. The most important for me is absolute free modification of the code. It's possible to work on two or more parts of code together, so I can simply focus on an problem (feature) which I'm thinking about. The development is more free from causality now and I can do more risky actions without any fear.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The publishing of source code make a possibility to simply provide of two branches of Munipack. A stable branch created from a taged running version tree and a development branch with an experimental code.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Also, it opens door for an independent developing... &lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-7728494681188570822?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/7728494681188570822/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=7728494681188570822' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/7728494681188570822'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/7728494681188570822'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2009/12/munipack-vs-mercurial.html' title='Munipack vs. Mercurial'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-2580324159515429353</id><published>2009-07-19T23:32:00.003+02:00</published><updated>2009-07-20T00:21:34.086+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Munipack'/><title type='text'>Homepage, community and distribution update</title><content type='html'>Since February, I'm working hard on new properties of Munipack.  A long-time fine tuning of parameters of fitspng was the initial impulse for me. I spend a lot of time (hours) with selection of appropriate values to get a naturally looking picture.&lt;br /&gt;&lt;br /&gt;Of course, this is fault of any command line interface. So I've started working on a GUI to Munipack. It inspired me to did some additional changes.&lt;br /&gt;&lt;br /&gt;I think, that is one of ways to pass my photometric experiences to next generations.  A software in action, together with a source code, may help me describe all details of methods. They will illustrate more preciselly than a natural language. Any white-paper or a web article can't fully describe implementation details. From this point of view, Munipack is a part of my mind and experiences.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;Homepage&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The past-looking homepage of Munipack has been replaced to a new one. Its style is improved version of Nightview's homepage. All pages are static and they are generated directly from my version system one per day.&lt;br /&gt;&lt;br /&gt;I also moved main Munipack site to this new address:&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://integral.physics.muni.cz/munipack/"&gt;http://integral.physics.muni.cz/munipack/&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;to highlight connection between Munipack and Masaryk university using of .muni.cz domain. The original name is inspired by DAOPHOT originated at &lt;a href="http://en.wikipedia.org/wiki/Dominion_Astrophysical_Observatory"&gt;Dominion Astronomical Observatory&lt;/a&gt;. The -pack suffix means that a set routines isn't focused only to a specific photometry task.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;Community site&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I founded Munipack's side on Google code:&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://code.google.com/p/munipack/"&gt;http://code.google.com/p/munipack/&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;The site provides two important tools. Wiki which can be used by anybody to write some descriptions, experiences or to summarize some procedure of data processing useful for others. I'm expecting that the wiki will used generally for astronomical image processing. I'm will very gladly when Munipack will used for the processing.&lt;br /&gt;&lt;br /&gt;Google code also offers a bug-tracking system. It is an ideal place for reporting bugs and feature requests. I think that will provide for me some better arrangement of development needs.&lt;br /&gt;&lt;br /&gt;I think that a mailing list may be very useful to Munipack. So I also founded the Google group for Munipack:&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://groups.google.com/group/munipack-users/about?hl=en"&gt;http://groups.google.com/group/munipack-users/&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Again, It is intended for a general discuss about the astronomical photometry and I will greet with using of Munipack for this work.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;Binary distribution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;While average Munipack user is not familiar with a code compilation process, I'm providing binary distribution packages. At the time, only Linux 32-bit and 64-bit packages are generated from Munipack's source tree. The installation itself is really simple like installation of a Linux game. Unfortunately, the distributed binaries occupies a lot of space because they must contain wxWidgets, libpng and cfitsio libraries.&lt;br /&gt;&lt;br /&gt;The binary distribution tree stores two sets of binaries. The bin/ directory contains statically linked routines. They will work without any system setup. Opposite with this, the lib/munipack/bin/ contains shared binaries which needs libraries linked against in a system or a specified directory. The setup is done via a shell script in bin/ directory.&lt;br /&gt;&lt;br /&gt;Binary installators are created with help of &lt;a href="http://megastep.org/makeself/"&gt;Makeself&lt;/a&gt; utility. The packaging itself is done on base of ideas published in that article: &lt;a href="http://www.gamedev.net/reference/programming/features/linuxprogramming1/"&gt;Linux Game Development by Troy Hepfner&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The output binaries will probably work on any modern Linux. I haven't resources to directly prepare of packages for a specific Linux distribution like Ubuntu, Mandriva, Fedora etc. The script to generate of the binary packages is included in source distribution in dist/.&lt;br /&gt;&lt;br /&gt;In any case, I still recommends source code installation including compilation itself. The advantages are:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;smaller binaries, optionally with tuning&lt;/li&gt;&lt;li&gt;better setup of optimization, be faster&lt;/li&gt;&lt;/ul&gt;Especially, the compiled binaries are smaller and uses system libraries (usually optimized). They are occupied both less disk storage and a computer memory. The optimization on a target platform and a processor can significantly speed up of run. Especially using of advanced instructions (SSE,..) on 32-bit processors, which are not switched on by default, can be important.&lt;br /&gt;&lt;br /&gt;Also, I strongly recommends use of Intel Fortran compiler (ifc) which strongly boost run. Unfortunately, binaries created by ifc can't be freely distributed. Ones are created by GNU tools:  gfortran and C, C++ compilers.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;Warning&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Munipack is in rapid development phase now. You can find bugs, a strange behavior or something like this. Also anything can be changed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-2580324159515429353?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/2580324159515429353/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=2580324159515429353' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/2580324159515429353'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/2580324159515429353'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2009/07/homepage-community-and-distribution.html' title='Homepage, community and distribution update'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-4694735311586858813</id><published>2009-03-28T18:19:00.003+01:00</published><updated>2011-07-28T23:29:41.457+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Rawtran'/><title type='text'>Recent progress in RAWTRAN</title><content type='html'>There is a summary of last progress in rawtran (see previous posts: &lt;a href="http://monteboo.blogspot.com/2008/12/improvements-of-rawtran.html"&gt;Dec 2008&lt;/a&gt;, &lt;a href="http://monteboo.blogspot.com/2008/01/rawtran.html"&gt;Jan 2008&lt;/a&gt;).&lt;br /&gt;&lt;br /&gt;I specified more precissely of the definition of the FITS color format. Be inspired by PNG format (&lt;a href="http://www.libpng.org/pub/png/libpng.html"&gt;libpng&lt;/a&gt;), I introduced a new keyword to the first dummy header&lt;br /&gt;&lt;br /&gt;COLORTYP&lt;br /&gt;&lt;br /&gt;by PNG_COLOR_TYPE_* to be setup to (string) value RGB for color FITSes. It will be useful for any software to easy recognize of the color format. Also the definition require additional condition on size of the images that is required to be equal for all color bands.&lt;br /&gt;&lt;br /&gt;Another change is replace of the CBALANCE header keyword in header by the keyword COLORBAL (COLOR_BALANCE) with the same meaning. I think, it will be put better understanding to users. The CBALANCE is now obsolete and I don't expect any back-compatibility.&lt;br /&gt;&lt;br /&gt;I added another type of conversion. The new type 4 produces multi-band FITS file including of all four Bayer colors in separated FITS image arrays. The type provides absolutely raw access to RAW data. It is another multi-band FITS different of the color type.&lt;br /&gt;&lt;br /&gt;Some additional changes has been included to rawtran recently:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Cleanup of code.&lt;/li&gt;&lt;li&gt;CREATOR keyword.&lt;/li&gt;&lt;li&gt;EXIF information by dcraw is written in the header block with "begin" and "end" delimiters to be simple parsed.&lt;/li&gt;&lt;li&gt;Update of man page.&lt;/li&gt;&lt;li&gt;Run-time detection of dcraw.&lt;/li&gt;&lt;li&gt;A switch to pass additional parameters to dcraw.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;It is still uncertain of the true meaning of Daylight and camera multipliers provided by camera and its meaning on a color white balance.&lt;br /&gt;&lt;br /&gt;This post is a small virtual present to anniversary of FITS format which has been established exactly &lt;a href="http://fits.gsfc.nasa.gov/birthday.news"&gt;30 years&lt;/a&gt; ago.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-4694735311586858813?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/4694735311586858813/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=4694735311586858813' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/4694735311586858813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/4694735311586858813'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2009/03/recent-progress-in-rawtran.html' title='Recent progress in RAWTRAN'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-1953911112710807385</id><published>2009-01-26T01:56:00.009+01:00</published><updated>2011-03-21T21:33:21.868+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Photo'/><title type='text'>Crumbling walls of Děvín</title><content type='html'>We had a trip onto ruins of &lt;a href="http://ruin-of-castle-divci-hrad.czech-mountains.eu/"&gt;Děvín&lt;/a&gt; (Dívčí hrad aka Castle of maid aka Maidberk aka Maidenburg) on mount of Pavlovské vrchy (Pálava, Pavlov's mountains) at Saturday.I acquired a panorama view of dam Nové Mlýny and a part of South Moravia with on top of the crumbling walls. A small village near center of the image is Dolní Věstonice, where prof. K. Absolon found the prehistoric nude sculpture now known as &lt;a href="http://commons.wikimedia.org/wiki/File:Vestonicka_venuse_edit.jpg"&gt;Věstonická venuše&lt;/a&gt;.   All area under the mounts has been the first part of human settlement on Moravia.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_UOcVemxNJNA/SX0K0mhiUUI/AAAAAAAAAHw/1hqYJoJYdRg/s1600-h/gpan_devin_thumb.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 392px; height: 101px;" src="http://4.bp.blogspot.com/_UOcVemxNJNA/SX0K0mhiUUI/AAAAAAAAAHw/1hqYJoJYdRg/s400/gpan_devin_thumb.jpg" alt="" id="BLOGGER_PHOTO_ID_5295400635668255042" border="0" /&gt;&lt;/a&gt;&lt;span style="font-style: italic;"&gt;The panoramatic view from Crumbling walls of Děvín. &lt;/span&gt;&lt;a style="font-style: italic;" href="http://integral.physics.muni.cz/~hroch/gpan_devin.jpg"&gt;The large version&lt;/a&gt;&lt;span style="font-style: italic;"&gt; by RAW pictures can be compared to &lt;/span&gt;&lt;a style="font-style: italic;" href="http://integral.physics.muni.cz/~hroch/pan_devin.jpg"&gt;one&lt;/a&gt;&lt;span style="font-style: italic;"&gt; by JPEGs adjusted by Canon EOS 30D. Is a pastel better than reality?&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;We also visited a next airport near of Strachotín. It has a nice horizon profile. Unfortunately, a gas station is on the east. Any zodiacal light has not been detected again and the Venus's shadows may be visible, but not by us.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_UOcVemxNJNA/SX0NGaPyYsI/AAAAAAAAAH4/zr-Ybc8yEdw/s1600-h/two_venuses_thumb.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 350px; height: 233px;" src="http://3.bp.blogspot.com/_UOcVemxNJNA/SX0NGaPyYsI/AAAAAAAAAH4/zr-Ybc8yEdw/s400/two_venuses_thumb.jpg" alt="" id="BLOGGER_PHOTO_ID_5295403140633486018" border="0" /&gt;&lt;/a&gt;&lt;a style="font-style: italic;" href="http://integral.physics.muni.cz/~hroch/two_venuses.png"&gt;Two Venuses on west in large&lt;/a&gt;&lt;span style="font-style: italic;"&gt;. The zodiacal light is not visible (?) due clouds.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_UOcVemxNJNA/SX0N6w9Uo-I/AAAAAAAAAIA/-sNwMGAtziQ/s1600-h/palava_night_thumb.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 350px; height: 233px;" src="http://3.bp.blogspot.com/_UOcVemxNJNA/SX0N6w9Uo-I/AAAAAAAAAIA/-sNwMGAtziQ/s400/palava_night_thumb.jpg" alt="" id="BLOGGER_PHOTO_ID_5295404040083252194" border="0" /&gt;&lt;/a&gt;&lt;a style="font-style: italic;" href="http://integral.physics.muni.cz/~hroch/palava_night.png"&gt;Pálava at night&lt;/a&gt;&lt;span style="font-style: italic;"&gt;. Děvín is at peak on left. The clouds on right over Pálava are illuminated by Mikulov town.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_UOcVemxNJNA/SX0Op_M4DyI/AAAAAAAAAII/PhBDsAt1Iwc/s1600-h/lights_on_east_thumb.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 350px; height: 233px;" src="http://3.bp.blogspot.com/_UOcVemxNJNA/SX0Op_M4DyI/AAAAAAAAAII/PhBDsAt1Iwc/s400/lights_on_east_thumb.jpg" alt="" id="BLOGGER_PHOTO_ID_5295404851360436002" border="0" /&gt;&lt;/a&gt;&lt;a style="font-style: italic;" href="http://integral.physics.muni.cz/~hroch/lights_on_east.png"&gt;Lights on east.&lt;/a&gt;&lt;span style="font-style: italic;"&gt;  The most intensive source is probably  a gas station.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_UOcVemxNJNA/SX0PWkRthzI/AAAAAAAAAIQ/W9BLjKzUBdI/s1600-h/north_brno_thumb.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 350px; height: 233px;" src="http://3.bp.blogspot.com/_UOcVemxNJNA/SX0PWkRthzI/AAAAAAAAAIQ/W9BLjKzUBdI/s400/north_brno_thumb.jpg" alt="" id="BLOGGER_PHOTO_ID_5295405617227073330" border="0" /&gt;&lt;/a&gt;&lt;a style="font-style: italic;" href="http://integral.physics.muni.cz/~hroch/north_brno.png"&gt;Brno on horizon&lt;/a&gt;&lt;span style="font-style: italic;"&gt; on north at distance about 30km. &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: right;"&gt;Thx for nice accompany to Maceška.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-1953911112710807385?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/1953911112710807385/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=1953911112710807385' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/1953911112710807385'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/1953911112710807385'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2009/01/crumbling-walls-of-dvn.html' title='Crumbling walls of Děvín'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_UOcVemxNJNA/SX0K0mhiUUI/AAAAAAAAAHw/1hqYJoJYdRg/s72-c/gpan_devin_thumb.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-3230649433921401194</id><published>2009-01-18T00:38:00.005+01:00</published><updated>2009-01-18T02:02:31.498+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Astro'/><title type='text'>Approximations of a sidereal time</title><content type='html'>A precision of computation of a sidereal time has been arouse curiosity of me during last days. So I experimented with formulas on the page      &lt;a href="http://aa.usno.navy.mil/faq/docs/GAST.php"&gt;Approximate Sidereal Time&lt;/a&gt;.  I compared of computed GMST, the low GMST version (    GMST = 18.697… + 24.0657…D) and GAST with data by &lt;a href="http://ssd.jpl.nasa.gov/horizons.cgi"&gt;Horizons ephemeris&lt;/a&gt;. The enclosed graph represents of final results. The functions shows residuals of the computed sidereal times minus Horizons's ephemeris in time the interval from 2000 to 2050. For example, the red line represents of the difference: GAST - Horizon.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_UOcVemxNJNA/SXJ3Qa3Js4I/AAAAAAAAAHc/Qg6-il42Npo/s1600-h/gstapproxs.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 350px; height: 272px;" src="http://3.bp.blogspot.com/_UOcVemxNJNA/SXJ3Qa3Js4I/AAAAAAAAAHc/Qg6-il42Npo/s400/gstapproxs.png" alt="" id="BLOGGER_PHOTO_ID_5292423636086010754" border="0" /&gt;&lt;/a&gt;&lt;span style="font-style: italic;"&gt;Comparison of sidereal time approximations. &lt;a href="http://integral.physics.muni.cz/%7Ehroch/gstapproxs.svg"&gt;Click for SVG version&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="text-decoration: underline;"&gt;&lt;br /&gt;&lt;/span&gt;As we can see that GAST is a perfect approximation for general purposes. But the GMST's approximations are also acceptable. The GMST is not corrected for a nutation with period of 18.6 year and one is nicely visualised by a big wave. A rapid wave superposed onto the nutation period is demonstration of annual orbit of Earth. Strangle breaks at 2006.0 and 2009.0 are effect of the adding of &lt;a href="http://en.wikipedia.org/wiki/Leap_second"&gt;leap seconds&lt;/a&gt;. The low precision GMST approximation has visible differences, with respect to GMST, only at the end of the time interval.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Conclusions&lt;br /&gt;&lt;ul&gt;&lt;li&gt;To compute of sidereal time with low precision use of the low precision formula: GMST = 18.697374558 + 24.06570982441908 D, where 18.697… is sidereal time of the reference time 2000-01-01 at 0 UT, 24.0657… is a ratio of synodic and sidereal periods of Earth and D is days (and its fractions) since the reference time.&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;To compute of the sidereal time with high precision use of &lt;a href="http://aa.usno.navy.mil/faq/docs/GAST.php"&gt;the algorithm for computation of GAST&lt;/a&gt;.&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-3230649433921401194?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/3230649433921401194/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=3230649433921401194' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/3230649433921401194'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/3230649433921401194'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2009/01/approximations-of-sidereal-time.html' title='Approximations of a sidereal time'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_UOcVemxNJNA/SXJ3Qa3Js4I/AAAAAAAAAHc/Qg6-il42Npo/s72-c/gstapproxs.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-5168723185929997026</id><published>2009-01-03T21:38:00.005+01:00</published><updated>2009-01-15T00:47:42.308+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Astrophoto'/><title type='text'>An evening with Venus</title><content type='html'>The extraordinary brightness of Venus as the evening star invoke many assorted fantasies. Lovers dreams about a paradise on the Venus, which is an island in the universe darkness. For peoples believing on Martians, Venus setting appears as a landing of its spacecraft. Venus looks as in fast motion, especially, when Venus is observed in some clouds. Venus setting can be also very impressive for painters, photographers and astronomers. The magic performance of ambient light, twilight sky, surroundings and Venus itself offers the absolutely extraordinary experience.&lt;br /&gt;&lt;br /&gt;I spend one evening with Venus by observing of the setting and many days and evenings with  processing (and related business) of acquired images. My primary goal of the observation was pointed on visual demonstration of an astronomical refraction. The follow-up processing has been inspired me to mining more information from collected images.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Snapshooting&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To acquire of nice sequence of refracted Venus, I selected &lt;a href="http://letiste.kotvrdovice.cz/"&gt;Kotvrdovice's airport&lt;/a&gt; what &lt;a href="http://monteboo.blogspot.com/2008/03/kotvrdovices-airport.html"&gt;I visited&lt;/a&gt; some time ago. The place offers relative good altitude about 560 meters over sea level, so I expected perfect horizon together with a separated place available by a car. Kojál top at proximity has the no separation, place to parking and is close to a road. The expecting Venus setting point is situated in direction of south part of &lt;a href="http://www.moravskykras.net/en/moravian-karst.html"&gt;Moravian Karst&lt;/a&gt; with low air (light) pollution.&lt;br /&gt;&lt;br /&gt;&lt;iframe marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;amp;hl=en&amp;amp;q=Kotvrdovice,+Czech+Republic&amp;amp;sll=37.0625,-95.677068&amp;amp;sspn=31.701751,55.019531&amp;amp;ie=UTF8&amp;amp;cd=1&amp;amp;geocode=FWof8QIdmRUAAQ&amp;amp;ll=49.363371,16.786938&amp;amp;spn=0.006358,0.013433&amp;amp;t=h&amp;amp;z=14&amp;amp;output=embed&amp;amp;s=AARTsJqOwHp0p_2bJaO1YhcKvdHSS0GTRQ" scrolling="no" width="425" frameborder="0" height="350"&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;small&gt;&lt;a href="http://maps.google.com/maps?f=q&amp;amp;hl=en&amp;amp;q=Kotvrdovice,+Czech+Republic&amp;amp;sll=37.0625,-95.677068&amp;amp;sspn=31.701751,55.019531&amp;amp;ie=UTF8&amp;amp;cd=1&amp;amp;geocode=FWof8QIdmRUAAQ&amp;amp;ll=49.363371,16.786938&amp;amp;spn=0.006358,0.013433&amp;amp;t=h&amp;amp;z=14&amp;amp;source=embed" style="color: rgb(0, 0, 255); text-align: left;"&gt;View Larger Map&lt;/a&gt;&lt;/small&gt;&lt;br /&gt;&lt;br /&gt;I pitch my tripod at point 16:47:20.1 E, 49:21:52.1 N. The place is on a rural road and on a local ridge near of a hunter's hide. The first snapped image shows a scenery at moment after my arrival.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/~hroch/firstvenus.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 382px; height: 254px;" src="http://integral.physics.muni.cz/~hroch/firstvenus.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;span style="font-style: italic;"&gt;The first image.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;I manually grabbed a set of images for every minute with start about 15:35 UT and finish at 17:18 UT (but see next note!). Total 101 images has been acquired. Canon EOS 30D has been used with lens EF-S 18-55mm, f/5.7 without any zoom, ISO 1600, a minimal diaphragm. Exposures times has been changed during a light fade of the twilight as I completed into the table:&lt;br /&gt;&lt;br /&gt;15:35-15:49      15        1/100&lt;br /&gt;15:50-16:00      9          1/10&lt;br /&gt;16:01-16:15      13          1/2&lt;br /&gt;16:16-16:39      23          4&lt;br /&gt;16:40-17:18      38          8&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://letiste.kotvrdovice.cz/foto/006/15.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 382px; height: 254px;" src="http://letiste.kotvrdovice.cz/foto/006/15.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;span style="font-style: italic;"&gt;An air view to Kotvrdovice's airport. The hide is on left part between &lt;/span&gt;&lt;span style="font-style: italic;"&gt;the airport's facility and a wood. Kojál transmitter at left top corner, &lt;/span&gt;&lt;span style="font-style: italic;"&gt;a village Krásensko at top, a small part of Senetářov and Kotvrdovice&lt;/span&gt; &lt;span style="font-style: italic;"&gt;on right edge from top to bottom (in this order).&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Time non-synchronisation&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Unfortunately, I forget done any time synchronisation of a interval clock of the camera before or after of the trip. So precise time synchronisation is lost forever. Fortunately, I check of time on my mobile phone at start of observation but for information purposes only, without required (on second) precision. It means that all times are considered to be inaccurate (± 30sec). The relative precision is better than 1 sec.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Preprocessing&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I acquired all images manually by clicking of button on Canon's body. So I expected that the images can be each other shifted. Therefore, I used the translation property of a cross correlation  of &lt;a href="http://en.wikipedia.org/wiki/Fourier_transform"&gt;Fourier transformation&lt;/a&gt; of images to  precise co-add of all images to same origin. So, I created of the forward FFT of reference and working copy images. The &lt;a href="http://en.wikipedia.org/wiki/Window_function"&gt;Hanning&lt;/a&gt; window function has been used for bottom part of original images. The phase-correlation and backward FFT followed. Finally, shifts has been computed as centroids of delta function-like peak.&lt;br /&gt;&lt;br /&gt;Shifts has been released only for integer segments. I expecting that precision would be not grow, if a non-integer shifts will be used and interpolation would be degrade sharp features of the output image.&lt;br /&gt;&lt;br /&gt;An example of sum of images with and without shifts is shown on the zoomed subimage. The image on the left is simple co-add of all images while the right image shows shifted and co-added images. In my opinion, the careful preprocessing leaded to a little bit sharper picture.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/~hroch/shiftadd.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 323px; height: 139px;" src="http://integral.physics.muni.cz/~hroch/shiftadd.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;The displacement of color layers worked well when I used all colors together of weighted by white multiplication factors (eg. on grayscale images). Initially, I tried to get shifts for every color layer individually and than compute the mean between its. I expected a fine shift due to Bayer mask, but the shift showed some random behavior as a perhaps product of a noise.&lt;br /&gt;&lt;br /&gt;The final image has been created by a method analogous to Iris function &lt;a href="http://www.astrosurf.com/buil/iris/tutorial17/doc30_fr.htm"&gt;ADD_MAX&lt;/a&gt; by Ch. Buil. Simply, the output image is not only sum (or mean) of two images but one gets the brighter pixel of images. The method grows intensity of a potentially moving inter-image object (Venus). Without this, the Venus trace will be lose on evening sky. However, final colors of the (variable) sky background may be very strange.&lt;br /&gt;&lt;br /&gt;The white balance parameters provided by the camera gives not satisfactory color balance. Therefore I equalized the image by hand. Usually on a white object on images like Venus or by automatic way with -fr parameter of fitspng.&lt;br /&gt;&lt;br /&gt;The most important part of the processing is on base of my specific routines. I'm attaching &lt;a href="http://integral.physics.muni.cz/~hroch/venusset.tar.gz"&gt;link&lt;/a&gt;  for an inspiration.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/~hroch/venusseting_big.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 378px; height: 251px;" src="http://integral.physics.muni.cz/~hroch/venusseting_big.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;span style="font-style: italic;"&gt;Venus setting on 15 Nov. 2008 . This composed image shows track of Venus (central body) above south-west horizon at Kotvrdovice's (CZ) airport. The chain of pearls has origin in short exposures of Venus in one-minute intervals. We can see that the finish of observed path is raised with respect to expected (by following of beginning part) one. It is exhibition of the astronomical refraction of the light in Earth's atmosphere. The track also shows decreasing of amount of the light and its reddening during the setting. Both effects are product of scattering and absorption of light in air. Read the post for detailed description.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Astrometric calibration&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The astrometric calibration has been done by Gaia software on grayscale version of one of latest images including some stars. The calibration shows  that a projection of the lens is gnomonical with precision better than 2-3 arcmin/pixels. A scale is 0.0165 deg/pix = 0.99 '/pix (minute per pixel). A field of view is 29°×19°. The center of the calibrated image is at coordinates  19:13, -26:00 at 17:17 UT (time epoch). Equatorial coordinates has been rotated about 25° to image's coordinates. The image itself is rotated around vertical (horizontal coordinates) by approximate 1°. The parameters are visualised on the image:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/~hroch/astrometr_anotated.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 378px; height: 250px;" src="http://integral.physics.muni.cz/~hroch/astrometr_anotated.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Astronomical refraction&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The main goal of my work is to show effect of the astronomical refraction. It can be easy obtained by observing of any point source in time, but when the object downwards really slowly with acute angle to horizon, the observed path may be visibly deviated from non-refracted one. The deflection is nicely demonstrated on annotated images:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/~hroch/venusset_anotated.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 389px; height: 259px;" src="http://integral.physics.muni.cz/~hroch/venusset_anotated.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/~hroch/venusseting_anotdetail.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 361px; height: 240px;" src="http://integral.physics.muni.cz/~hroch/venusseting_anotdetail.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Technically, the refraction can be described on a graph of dependence between the observed and the true (not affected by the refraction) zenith distance of some object. The expected values has been computed by a standard way from linearly interpolated coordinates of Venus by NASA's &lt;a href="http://ssd.jpl.nasa.gov/"&gt;Horizonts&lt;/a&gt;. It agrees with values by Xephem.&lt;br /&gt;&lt;br /&gt;Measured coordinates has been derived from grayscaled images. I estimated centroids of Venus by the weighted mean. The error of the determination is order of tenth of pixels/arcmin.&lt;br /&gt;&lt;br /&gt;The next step is computation of the zenith distance (or elevation) of Venus. In principle we can use two methods:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Plain. Using by a scale and a simple geometry, we determine distances  in pixels of Venus and horizon. The Euclidean geometry with only rotations and translations is used.&lt;/li&gt;&lt;li&gt;Gnomonic. Using by known rectangular coordinates and the gnomonic transformation, we determine equatorial coordinates together with transformed to horizontal coordinates.&lt;/li&gt;&lt;/ul&gt;Both methods may include some systematic errors. Simple plain geometry has known deviations from spherical coordinates when angles gets values over five degrees. The gnomonic transformation fits spherical coordinates by the better way, but we are not sure that our object lens display some scene by the expected way.&lt;br /&gt;&lt;br /&gt;The results of both methods of determination zenith distance from photographic plate are plotted in refraction graph. The plain method shows nonlinear great residua and it is clearly unusable. The gnomonic method is little bit better but there are still great differences.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/~hroch/ref-graf.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 405px; height: 283px;" src="http://integral.physics.muni.cz/~hroch/ref-graf.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;I also plot of Bennett's approximation of the refraction formula according to Astronomical Algorithms by J. Meeus. Other simple refraction laws on base of tangents of the zenith distance (one or tree order) are unusable in the range of observed quantities.&lt;br /&gt;&lt;br /&gt;The visible discrepancy between the approximation and observation has unclear origin. The statistical errors are visualised by random noise. I notices relative higher noise on beginning of observation how it vanished when the ratio of signal to noise is growing. I expected that the refraction will affected by some clouds near of the horizon. Nevertheless, the appropriate part of the measured curve is nicely smooth.&lt;br /&gt;&lt;br /&gt;The discrepancy is not due to uncertainly on time determination (the change a few minutes minute slightly modified profile but not importantly). It is also valid for changes in an atmospheric pressure and an ambient temperature.&lt;br /&gt;&lt;br /&gt;Only for information, I tried to fit the data by any way. A final fit is a set of points tightly reproducing of the Bennett's approximation. The fit has two free parameters: The relative time between the astrometry approximation and observation times has been changed relative about minute (this is principally incorrectly). The change leaded to a little bit deflection of refractive curve so the profile is more similar to the Bennett's approximation. As second free parameter, a vertical shift  of 7 pixels/arcmin has been used (also it is uncorrected again).&lt;br /&gt;&lt;br /&gt;My own hypothesis of explaining of the measurements is a non-precise model of the (gnomonical) projection. Firstly, I assumed that the projection is gnomonical on full area of the chip. The assumption may be wrong. The gnomonic projection strongly deforms area elements far from center of projection. Therefore, manufacturers can use any different kind of the projection. For example, some "mean" between the gnomonic and a stereographic projection may be used. Secondly, the fitting routine of Gaia assumed such model of the gnomonical projection which have different scales in Right Ascension and Declination, but my images are deformed in some another direction. The images are squeezed in the vertical direction by the refraction. It leads us to use of a model which will be correctly describe the refraction during of gnomonic projection determination. Simply, we can say that the vertical scale will not be more linear, but it will varied with the zenith distance. The construction of the model will not complicated but I abandoned its due to some uncertainty in the time determination and due to low number of stars near of horizon, so I assume, that the corrected method will not give significantly better results.&lt;br /&gt;&lt;br /&gt;The refraction itself is a very fascinating field of applied optics. I recommends visit of &lt;a href="http://en.wikipedia.org/wiki/Atmospheric_refraction"&gt;wikipedia page&lt;/a&gt;  and &lt;a href="http://mintaka.sdsu.edu/GF/explain/atmos_refr/astr_refr.html"&gt;pages of Andrew T. Young&lt;/a&gt; about refraction.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Photometry&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;When the light of a setting object pass trough layers of atmosphere, the observer can detect an exponential attenuation of light together with a color change of the object. Both effect are clearly visible on composed image above.&lt;br /&gt;&lt;br /&gt;I think than more better visualisation is represented by a standard photometric analysis of images. By the way, I done an aperture photometry by obvious method (simpler version of one implemented in Munipack). The output magnitudes has been normalized by exposure time and calibrated by the known extratmospheric visual magnitude (again by Horizont) of Venus in G band. I didn't used color balance factors and subtract of a dark frame because the ambient temperature varied about ten degrees. I only subtracted a bias of images which I assumed on level 128 for a RAW image.&lt;br /&gt;&lt;br /&gt;The spectral sensitivity of Canon EOS 30D is not available. Therefore, I assumed that the property is similar to one of &lt;a href="http://scien.stanford.edu/class/psych221/projects/07/camera_characterization/index.html"&gt;EOS 300D&lt;/a&gt;. I approximated the sensitivity in R band by Gaussian with its center on 600 nm and its half-width about 30 nm, G band as then rectangle with the height 100% and in the range 500 - 600 nm and B band as the rectangle with the height 75% and the width 430 - 480nm. By the way, I get correction color indexes as 0.27, 0, -0.38 for R, G, and B magnitudes and a black body on the temperature of Sun. The reliability is low, so the color indexes may contains systematic deviations of order of tenth magnitude.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/~hroch/extinction-graf.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 419px; height: 302px;" src="http://integral.physics.muni.cz/~hroch/extinction-graf.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The instrumental magnitudes has been calibrated via extinction lines in range of 9 to 30 airmasses. To estimate of the airmass I used formula by (perhaps) &lt;a href="http://adsabs.harvard.edu/abs/1994ApOpt..33.1108Y"&gt;Young(1994) &lt;/a&gt;, see also article on &lt;a href="http://en.wikipedia.org/wiki/Airmass"&gt;wikipedia&lt;/a&gt;. The least square fitting gives following values extinction coefficients in  all bands:&lt;br /&gt;&lt;br /&gt;B     0.188±  0.003&lt;br /&gt;G     0.114 ± 0.004&lt;br /&gt;R     0.090 ± 0.003&lt;br /&gt;&lt;br /&gt;The first part of graph doesn't follow the extinction law and the magnitudes are perhaps absurd. I think that this is the demonstration of effect described in my &lt;a href="http://monteboo.blogspot.com/2008/07/on-principal-pitfall-of-stars-magnitude.html"&gt;previous post&lt;/a&gt;. It is simply due to extremal height level of background with comparison to the light signal of Venus.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Sky's brightness&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The last graph shows surface magnitude of sky near of top of my images (at elevation ten degrees). I selected a rectangular angular area with constant position. The selected magnitudes shows expected profile. The uncertainty may by a few of tenth of magnitude. The values in minimum are a few magnitudes over natural sky. It may be due to really dark sky when the camera detect thermal noise only or the sky may be illuminated by a near village or a town. Note that when Venus set, the Moon has raised on opposite point of the sky.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/~hroch/venussky-graf.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 351px; height: 266px;" src="http://integral.physics.muni.cz/~hroch/venussky-graf.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Color index&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The last graph shows dependence of color indexes on time. I note that the numbers has different base than classical astronomical color bands. Only relative changes can by surly determined from the profiles.&lt;br /&gt;&lt;br /&gt;The profiles of Venus shows strong evidence for reddening as we expected from visual determination. The graph shows that the reddening may by two magnitudes which mean 5x more light in blue is absorbed or scattered.&lt;br /&gt;&lt;br /&gt;The color index of the sky is strongly different. It means that blue sky has arrived more red color. The color of sky is not more blue during a night. This is also bring out the color of the sky on composed image. The sky color is some kind of mean of the color index.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/~hroch/color-graf.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 367px; height: 259px;" src="http://integral.physics.muni.cz/~hroch/color-graf.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Thx to Fantom for many suggestive ideas.&lt;br /&gt;&lt;br /&gt;The post is dedicated to &lt;a href="http://ian.cz/detart_fr.php?id=2967"&gt;Vladimír Znojil&lt;/a&gt;, my diploma thesis supervisor, which died on 29 Dec. 2008.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-5168723185929997026?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/5168723185929997026/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=5168723185929997026' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/5168723185929997026'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/5168723185929997026'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2009/01/evening-with-venus.html' title='An evening with Venus'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-5719440860431004746</id><published>2008-12-23T23:32:00.007+01:00</published><updated>2011-07-28T23:30:35.476+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Astrophoto'/><category scheme='http://www.blogger.com/atom/ns#' term='Fitspng'/><category scheme='http://www.blogger.com/atom/ns#' term='Rawtran'/><title type='text'>Improvements in FITSPNG.</title><content type='html'>&lt;div style="text-align: right;"&gt;With two appendixes.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Fitspng has been originally developed as an utility for a fast conversion of FITS images to PNG format. It is required for our Monteboo data archive for observed image display in an usual internet browser. The conversion can be also required for example for color imaging (look forward).&lt;br /&gt;&lt;br /&gt;Some time ago, I did the conversion by two steps: to8bit utility converted normal (16-bit) FITS to 8-bit with an intensity scaling and convert (utility by Imagemagick) done FITS to PNG conversion. The way have been simple for me (I didn't have learn of libpng API) but one is slow due to high system load and storing of middle product on hard disk.&lt;br /&gt;&lt;br /&gt;A long time (two years at least), the functionality satisfies of me, but now I have new ideas and I extended functionality of fitspng with respect on rawtran utility and some new knowledge.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Color images&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If a multi-color FITS or tree normal (gray) FITSes is passed to fitspng as file to convert than 8-bit color png is created by the algorithm:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Fits is opened and recognized as multi-color FITS. All color bands are loaded.&lt;/li&gt;&lt;li&gt;The median and mean deviation of positive differences is computed on 10x10 grid (to speed-up the estimation) for every color band. The computation is abandoned when user specified the -fl switch.&lt;/li&gt;&lt;li&gt;These estimated parameters are merged with an user specification by -fr switch. Also white balance is setup via CBALANCE FITS keywords of every band or by -w switch.&lt;/li&gt;&lt;li&gt;Than every pixel is scaled by specified intensity profile, supplied parameters and white balance.&lt;/li&gt;&lt;li&gt;The file is saved as color PNG with RGB colors (without alpha channel). (May be useful add the alpha to image?)&lt;/li&gt;&lt;/ol&gt;There are two important requirements for the colorization. A simple way how to convert images from a digital camera processed to FITS by rawtran will be:&lt;br /&gt;&lt;br /&gt;bash$ rawtran -t 2 IMG_666.CR2 &amp;gt; color.fits&lt;br /&gt;bash$ fitspng color.fits &amp;gt; color.png&lt;br /&gt;&lt;br /&gt;Of course, the direct way by ufraw or dcraw will be faster, but you can't apply some enhancing on images and mouse clicking may be really time consuming.&lt;br /&gt;&lt;br /&gt;The most important application is on color composing of image data of CCD. The composition itself for tree images in R,V,B filters can be simple:&lt;br /&gt;&lt;br /&gt;bash$ fitspng m1_R.fits,m1_V.fits,m1_B.fits &amp;gt; m1_color.png&lt;br /&gt;&lt;br /&gt;The default setup of parameters will produce relative nice images but for more nicer images will be need some fine grained tuning via -fX, -w and by specifying of one from transformation functions: asinh, log (magnitude), error function, sqrt and linear transformation. The setup of various parameters by -fX is usually required when a histogram has and non-usual profile (always for non-stellar images).&lt;br /&gt;&lt;br /&gt;If you requires nice publishable images, it is absolutely necessary to done basic processing like, dark and flat field correction and detailed photometric analysis. Ideal way is looking for A0 type (not saturated) star and balancing of the images by hand or by -w.&lt;br /&gt;&lt;br /&gt;Note, that all single images has its own header with defined keywords which can/are be different. If any keyword is duplicated we get only the first match.&lt;br /&gt;&lt;br /&gt;The multi-color FITS has structure:&lt;br /&gt;&lt;br /&gt;           FITS&lt;br /&gt;+-----------------------------------+&lt;br /&gt;| Primary array - dummy              |&lt;br /&gt;+-----------------------------------+&lt;br /&gt;|   Extended array - R image        |&lt;br /&gt;+-----------------------------------+&lt;br /&gt;|   Extended array - G image        |&lt;br /&gt;+-----------------------------------+&lt;br /&gt;|   Extended array - B image        |&lt;br /&gt;+-----------------------------------+&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Intensity (flux) scaling&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Inspired by &lt;a href="http://www.astrosurf.org/buil/"&gt;Christian Buil&lt;/a&gt;, I had implemented asinh intensity profiles together with logarithmic, square root, error function and reimplemented the linear profile. Results are really nice. The profiles are presented on images. BTW, the intuitive color conversion curves which I used with ufraw are similar.&lt;br /&gt;&lt;br /&gt;The conversion can be described as an function between output and input data. The input intensity &lt;span style="font-style: italic;"&gt;I&lt;/span&gt; can be integer or real number without specified range. The output &lt;span style="font-style: italic;"&gt;O&lt;/span&gt; level has integer range 0 .. 255. The &lt;span style="font-style: italic;"&gt;I&lt;/span&gt; is transformed to &lt;span style="font-style: italic;"&gt;O&lt;/span&gt; by&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;O = f0*f(x) + z0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;where &lt;span style="font-style: italic;"&gt;f0&lt;/span&gt; is a scaling constant and &lt;span style="font-style: italic;"&gt;z0&lt;/span&gt; is black level. The function &lt;span style="font-style: italic;"&gt;f(x)&lt;/span&gt; can be one from list:&lt;br /&gt;&lt;br /&gt;asinh(&lt;span style="font-style: italic;"&gt;x&lt;/span&gt;)&lt;br /&gt;log(&lt;span style="font-style: italic;"&gt;x&lt;/span&gt;)&lt;br /&gt;erf(&lt;span style="font-style: italic;"&gt;x&lt;/span&gt;)&lt;br /&gt;sqrt(&lt;span style="font-style: italic;"&gt;x&lt;/span&gt;)&lt;br /&gt;&lt;span style="font-style: italic;"&gt;x&lt;/span&gt;              (&lt;span style="font-style: italic;"&gt;f0&lt;/span&gt; = 1)&lt;br /&gt;&lt;br /&gt;The argument &lt;span style="font-style: italic;"&gt;x&lt;/span&gt; is computed by a linear transformation&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;x = (I - t)/s&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;where &lt;span style="font-style: italic;"&gt;t&lt;/span&gt; is a "mean" level and &lt;span style="font-style: italic;"&gt;s&lt;/span&gt; is "mean" deviation. Values &lt;span style="font-style: italic;"&gt;t&lt;/span&gt; are estimated by fitspng by median of grid pixels with separation of ten pixels (med). The &lt;span style="font-style: italic;"&gt;s&lt;/span&gt; is determined by the same way on the same set but from positive deviations of &lt;span style="font-style: italic;"&gt;t&lt;/span&gt; (not from absolute deviations as usually) (mad). Both parameters are corrected by constants &lt;span style="font-style: italic;"&gt;u,v&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;t&lt;/span&gt; = med - 3*mad&lt;br /&gt;&lt;span style="font-style: italic;"&gt;s&lt;/span&gt; = mad/15&lt;br /&gt;&lt;br /&gt;The specified intensity transformation is a product of black magic on images and it can't be derived from an exact axioms. It empirically describes usual parameters of histograms of astronomical images.&lt;br /&gt;&lt;br /&gt;The asinh magnitudes are used as photometric product of the &lt;a href="http://www.sdss.org/"&gt;Sloan sky survey&lt;/a&gt;. They recommends of use of the magnitudes in &lt;a href="http://adsabs.harvard.edu/abs/1999AJ....118.1406L"&gt;Lupton et al.(1999)&lt;/a&gt;  and for color imaging in &lt;a href="http://adsabs.harvard.edu/abs/2004PASP..116..133L"&gt;Lupton et al.(2004)&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Working with full directory of images&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Fitspng is ideal utility to done fully automatic conversion of fits images. It can be useful for fast look analysis in anyimage viewer or simple file browser. The thumbnails can be generated by command:&lt;br /&gt;&lt;br /&gt;bash$ for A in *.fits; do fitspng -a -s 5 $A &amp;gt; ${A%fits}png; done&lt;br /&gt;&lt;br /&gt;The switch -s resize the image 5 times.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;How to create an animation&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If we have images in png format, it is trivial to create an animated gif (with 50 milliseconds delay between images) via convert command of Imagemagic:&lt;br /&gt;&lt;br /&gt;bash$ convert -delay 50 *.png animated_sky.gif&lt;br /&gt;&lt;br /&gt;Larger animations is preferred to save to mpeg format. It can be created with small script:&lt;br /&gt;&lt;br /&gt;---&lt;br /&gt;#!/bin/bash&lt;br /&gt;&lt;br /&gt;I=0&lt;br /&gt;for A in *.png; do&lt;br /&gt;for B in $(seq 1 25); do&lt;br /&gt;I=$((I + 1))&lt;br /&gt;N=$(printf "img%04d.png" $I)&lt;br /&gt;ln -s $A $N&lt;br /&gt;done&lt;br /&gt;done&lt;br /&gt;ffmpeg -f image2 -i img%04d.png  animated_sky.mpg&lt;br /&gt;---&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The ffmepg requires 25 frames per second (at least 10 fps) so we create 25 times links on a single frame. The conversion requires relative small images with approximate size of a post stamp (about 800x600).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Notes.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I spend some time with optimizing of fitspng for speed because the conversion of normal size image gets a few seconds. Unfortunately, any hooks in main cycle are insignificant and, perhaps, the all actions consuming approximately the same part of execution time. The conclusion is that any (great) numerical operations has negligible fluency on execution duration. It is possible to visually inspect of the duration with setup of -v (verbose) switch.&lt;br /&gt;&lt;br /&gt;I'm little bit confused about use of keywords of FITS files. They can be defined arbitrary and fitspng can produce fake outputs. I think that the most important is CBALANCE. Fortunately, the keyword can be replaced by -w switch. All others will only put wrong of description of image included in PNG file. The used keywords are listed in source fitspng.c.&lt;br /&gt;&lt;br /&gt;The utility is coded in standard C but the coding style is old Fortran like without extensive usage of some user defined types and complicated structure of functions. I believe that the style is fine for coding and long time maintained of filter type utilities. I will not lost in function tree.&lt;br /&gt;&lt;br /&gt;I'm expecting additional changes in future.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Examples of images&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;First image is composed exposition of field of NGC 7635 (Bubble nebula in Cas) acquired during summer 2006 by me and Exebece on MonteBoo Observatory (0.6m refl.) and HaP MK Brno (0.4m refl.) by non-enhanced cameras ST-8 and ST-7 in R filter. The image has been created by composition of 1084 images of total exposure time 95540(!) seconds. The images has intensity scaled by asinh and linear profiles. The differences are most remarkable at central part. The central star is saturated on linear scale, while faint details are visible.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://integral.physics.muni.cz/~hroch/bub_lin.png" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 382px; height: 255px;" src="http://integral.physics.muni.cz/~hroch/bub_lin.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;span style="font-style: italic;"&gt;Bubble nebula NGC 7635. Linear intensity profile.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://integral.physics.muni.cz/~hroch/bub_asinh.png" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 382px; height: 255px;" src="http://integral.physics.muni.cz/~hroch/bub_asinh.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;span style="font-style: italic;"&gt;Bubble nebula NGC 7635. Asinh intensity profile.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;Second example shows Dumbell nebula (M27) exposed on MonteBoo (0.6m refl.) by Janapka  two months ago. It is composition of 3x11 exposures (3x440 sec) in R,V,B filters by our enhanced ST-8 camera. The images has not flat-field corrected.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://integral.physics.muni.cz/~hroch/cinka_lin.png" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 382px; height: 255px;" src="http://integral.physics.muni.cz/~hroch/cinka_lin.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;span style="font-style: italic;"&gt;Dumbell nebula M27. Linear intensity profile.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://integral.physics.muni.cz/~hroch/cinka_asin.png" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 382px; height: 255px;" src="http://integral.physics.muni.cz/~hroch/cinka_asin.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;span style="font-style: italic;"&gt;Dumbell nebula M27. Asinh intensity profile.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;So, I strongly recommends use of asinh intensity profiles.&lt;br /&gt;&lt;br /&gt;Post scriptum.    &lt;span style="font-weight: bold;"&gt;Scaling to preserve all colors&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://integral.physics.muni.cz/~hroch/cinka_starcolor.png" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 382px; height: 255px;" src="http://integral.physics.muni.cz/~hroch/cinka_starcolor.png" alt="" border="0" /&gt;&lt;/a&gt; &lt;span style="font-style: italic;"&gt;Dumbell nebula M27. Asinh intensity profile. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Scaled by intensity. Note better preserving of colors.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;The paper &lt;a href="http://adsabs.harvard.edu/abs/2004PASP..116..133L"&gt;Lupton et al.(2004)&lt;/a&gt; recommends as an optimal way to scale of output image by intensity rather than every single color. You can use the -f switch to invoke it. The key difference with respect to single color scaling is coloring of the saturated objects. The intensity scale algorithm preserves color ratio in (output) saturated regions. The saturated stars have approximate colors opposite with the white color of previous algorithm. Of course, really (on CCD chip) saturated stars are white again. Unfortunately, the saturated stars can create a strange color defect. To remove it, use another black magic.&lt;br /&gt;&lt;br /&gt;Post scriptum. I forget attach a graph of all profiles. Please look on the linear (red)  and the logarithmic (blue) and asinh (light green) profiles which ideally "interpolates" beween its.&lt;br /&gt;&lt;a href="http://integral.physics.muni.cz/~hroch/int_profiles.svg"&gt;SVG version.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://integral.physics.muni.cz/~hroch/int_profiles.png" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 330px;" src="http://integral.physics.muni.cz/~hroch/int_profiles.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="ftp://integral.physics.muni.cz/pub/fitspng"&gt;Download of FITSPNG&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-5719440860431004746?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/5719440860431004746/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=5719440860431004746' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/5719440860431004746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/5719440860431004746'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/12/improvements-in-fitspng.html' title='Improvements in FITSPNG.'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-5038252309143805459</id><published>2008-12-20T23:41:00.009+01:00</published><updated>2011-07-28T23:31:12.429+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Astrophoto'/><category scheme='http://www.blogger.com/atom/ns#' term='Photo'/><category scheme='http://www.blogger.com/atom/ns#' term='Rawtran'/><title type='text'>Improvements of RAWTRAN</title><content type='html'>While work on processing of set of images of Venus setting (I will it show soon), I found important bugs and revealed some possible improvements in rawtran utility. Moreover, I also found that only the type zero (default) conversion has worked correctly for all versions up to today. The default choice have composed four RGGB pixels of the Bayer color mosaic to one big grayscale pixel by use of unique weights for separate colors.&lt;br /&gt;&lt;br /&gt;The Bayer mosaic is defined as red, blue and two green pixels arranged to rectangular matrix. It means that the number of different colors is tree but we have four pixels on detector matrix. Two green pixels are reserved for single color. Now, we have two choices for output intensities: sum of the pixels or their arithmetical mean. The sum gives precise value in integer numbers but one is two times greater than value of other colors. Opposite with this, the mean gives values of the same order as the red and blue pixels unfortunately with a rounding error as result of conversion between real and integer numbers. I think, the use of the mean and real numbers in FITS should be considered as a smooth alternative when a lot of disk space is available. Also sum of two greens and double values of red and blue can be a nice alternative for 12bit and 14bit A/D converters while we are storing data in 16bit FITSes. The arithmetical mean is the most simple alternative with small lost of precision. Please leave a comment about a preferred way to solve the controversial point.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Color weights&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;As the first noticeable change, I mention about the color balance (weights) used for conversion of a color based to a greyscale image. Generally, the conversion is done by the formula&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;I = w_R*R + w_G*G + w_B*B&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;where &lt;span style="font-style: italic;"&gt;I&lt;/span&gt; is grayscale intensity, &lt;span style="font-style: italic;"&gt;R,G,B&lt;/span&gt; are proper intensities in appropriate filters and &lt;span style="font-style: italic;"&gt;w_i&lt;/span&gt; are a suitable weights. The choice of &lt;span style="font-style: italic;"&gt;w_i&lt;/span&gt; depends on problem to solve. The setup of &lt;span style="font-style: italic;"&gt;w_i&lt;/span&gt; is supplied by your camera according to spectral profiles of color device elements and to light conditions of an acquired scene. The photographers perhaps uses the term "white color balance" for the procedure, because it can be easy established by balancing of the coefficients on a white. Now, the camera setup is default. The previous versions used &lt;span style="font-style: italic;"&gt;w_i = 1&lt;/span&gt; without possibility to specify by hand. Note that both setups are useful in different situations. The camera supplied setup is ideal for images represents intensities close to reality. The 1's weighting can be useful for detailed spectral examination of images.&lt;br /&gt;&lt;br /&gt;The color weights are derived from camera supplied data in field "Camera multipliers". The four numbers &lt;span style="font-style: italic;"&gt;B1 B2 R1 R2&lt;/span&gt; are used to estimate of color balance as:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;w_R = R1/R2,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;w_G = 1,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;w_B = B1/B2.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The green band is supposed as basic unit and both remain are relatively scaled. The numerical values agrees with ufraw data. I don't know why also provided "Daylight multipliers" are not used for the reason.&lt;br /&gt;&lt;br /&gt;For type zero the image is grayscale and the value is indicated by keyword FILTER which is set to GRAY. Weight factors are not directly included in keywords.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Multi-color fits&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The most important change in the code is connected to multi-color (band) fits images. Previous versions has been badly decoding of Bayer's mask (the colors has been swapped). I corrected the bug and changed structure of resultant FITS files.&lt;br /&gt;&lt;br /&gt;The effect of correct separation of colors can be easy showed on the image of the spectrum of a white source (data projector) observed through a rainbow glasses (famous paper - diffraction foil glasses). Look on included image for details. I'd correctly decoded the structure of image color mask on the image.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://integral.physics.muni.cz/~hroch/multicolor_bands.png" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 338px; height: 190px;" src="http://integral.physics.muni.cz/~hroch/multicolor_bands.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;span style="font-style: italic;"&gt;Color image and separated color bands.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Since recent issue, the multi-color FITS has following structure: the dummy primary image array (the header without any data) and tree color (band) extended images. Every header of the extended data contains a new keywords FILTER indicating one from set RED, GREEN, BLUE and appropriate color weight factor included as CBALANCE. Other new keyword EXTNAME is the same as FILTER and can be directly used to select the filter. For example, with ds9 you can directly select blue band by the command: &lt;blockquote&gt;&lt;/blockquote&gt;  bash$ ds9 x.fits[BLUE]&lt;br /&gt;&lt;br /&gt;The same selection can be done also as x.fits[3]. The file names uses the extended file name syntax introduced by cfitsio library.&lt;br /&gt;&lt;br /&gt;Note, about multi-color (band) FITSes. The packaging of more images to one file is frequently used in space astronomy, where an experiment on a spacecraft records a radiation on many different wavelengths. The color mode is particular case of the gadget. The idea can be also extended for including of correction or calibration images or data.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Grid mode&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The grid mode (type 1) simply arrange of pixels without collecting or space separating of pixels. I have no idea about any usefulness of the mode. Also I don't fully understand why noise (dark) level and white (saturated) regions are correctly displayed but the mid-level intensities produces grid structure.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;8,16,32,-32 bits per pixel images&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The output FITSes can have specified bitpix parameter (see man page). It can be very useful when you wanna save fine precision of intensities. The non-integer values are common product of white balancing when type zero conversion is selected. Also, the problem extensive discussed above is suppressed.&lt;br /&gt;&lt;br /&gt;I suppose that the mode 16-bit is perfect for storing of raw data, the mode -32-bit for further  processing and modes 8 and 32 are unusable. Images with 8-bit depth will usually white due to overflow of image's values over 255. The 32-bit mode only grows range of integer numbers and practically only occupied twice more disk space without any growing of stored information.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Examples of conversion&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Basic run (equivalent commands):&lt;br /&gt;&lt;br /&gt;bash$ rawtran IMG_666.CR2 &amp;gt; IMG_666.fits&lt;br /&gt;bash$ rawtran -o IMG_666.fits  IMG_666.CR2&lt;br /&gt;&lt;br /&gt;The produced image IMG_666.fits contains grayscale image with half image dimensions of the original. Please, respect rule: first options than an image to convert.&lt;br /&gt;&lt;br /&gt;Process all images in directory:&lt;br /&gt;&lt;br /&gt;bash$ for A in *.CR2; do rawtran ${A} &amp;gt; ${A%CR2}fits; done&lt;br /&gt;&lt;br /&gt;Process all images listed in a file l.lst:&lt;br /&gt;&lt;br /&gt;bash$ for A in $(cat l.lst); do rawtran ${A} &amp;gt; ${A%CR2}fits; done&lt;br /&gt;&lt;br /&gt;The file l.lst is usually created by command: bash$ ls &amp;gt; l.lst&lt;br /&gt;&lt;br /&gt;Produce of multi-color image and show its green channel (band) in ds9:&lt;br /&gt;&lt;br /&gt;bash$ rawtran -t 2 IMG_666.CR2 &amp;gt; IMG_666.fits&lt;br /&gt;bash$ ds9 IMG_666.fits[GREEN]&lt;br /&gt;&lt;br /&gt;Produce user's white-balanced multi-color image:&lt;br /&gt;&lt;br /&gt;bash$ rawtran -t 2 -w 2.0,1.0,1.5  IMG_666.CR2 &amp;gt; IMG_666.fits&lt;br /&gt;&lt;br /&gt;Separate blue color (band) from an image:&lt;br /&gt;&lt;br /&gt;bash$ rawtran -t 3 -c B  IMG_666.CR2 &amp;gt; IMG_666.fits&lt;br /&gt;&lt;br /&gt;The output file roughly corresponds to a filtered CCD image with blue band.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Notes&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Please, read source code of rawtran.c to get more detailed understanding of my ideas. I know that code is wrongly structured, it uses of poor data structures etc. but it isn't important for me. Valgrind shows defect free code.&lt;br /&gt;&lt;br /&gt;I'm little bit confused about handling with output file. The default setup writes data on standard output which can be strangle for unexperinced users. The suffix swaping is not too elegant for C coding (shell replaces strings more effectively) and unique output filename like rawtran.png is confusing too.&lt;br /&gt;&lt;br /&gt;All developing is proceed on images produced by Canon 30D. Be careful when your are working with another digital camera.&lt;br /&gt;&lt;br /&gt;&lt;a href="ftp://integral.physics.muni.cz/pub/rawtran"&gt;Download of RAWTRAN.&lt;/a&gt;&lt;br /&gt;&lt;a href="http://monteboo.blogspot.com/2008/01/rawtran.html"&gt;An older post about RAWTRAN.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-5038252309143805459?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/5038252309143805459/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=5038252309143805459' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/5038252309143805459'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/5038252309143805459'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/12/improvements-of-rawtran.html' title='Improvements of RAWTRAN'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-502529787274297745</id><published>2008-12-08T20:38:00.003+01:00</published><updated>2008-12-08T21:15:22.186+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Munipack'/><title type='text'>Mandriva's repository of Munipack</title><content type='html'>&lt;a href="http://vzducholode.blogspot.com/"&gt;Petoš&lt;/a&gt; is maintaing himself a repository with some useful software for Mandriva 2009.0. A presence of the current version of Munipack including dependencies (mostly cfitsio) is good news for us. The repository is easy available. Use the command&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: lucida grande;"&gt; urpmi.addmedia "Petos"   http://physics.muni.cz/~petos/mandriva/2009.0/i586 with   media_info/hdlist.cz&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;to add it to your sources. The repository is for 32-bit branch (i586) . Packages doesn't contains any description and a digital sign. Ones are required to be used together as whole repository (not as independent entities).&lt;br /&gt;&lt;br /&gt;BIG THX!&lt;br /&gt;&lt;br /&gt;Note. The distribution of binary packages is generally a good idea. But the horrible fragmentation of unix world make me impossible to maintain (at least) some great Linux distribution (Debian, RedHat/Fedora, Mandriva, SuSE, Gentoo,..),  *BSD (Free*, Net*, Open*) or Solaris. In despite of the worry, I speculate about this way.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-502529787274297745?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/502529787274297745/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=502529787274297745' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/502529787274297745'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/502529787274297745'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/12/mandrivas-repository-of-munipack.html' title='Mandriva&apos;s repository of Munipack'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-4254841091939933917</id><published>2008-11-15T00:02:00.003+01:00</published><updated>2008-11-15T00:38:42.196+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Photo'/><title type='text'>Hády</title><content type='html'>Hády is a lime-pit on Brno's border. The view to the town center show many millions of lights.&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/svitici_brno.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 800px; height: 533px;" src="http://integral.physics.muni.cz/%7Ehroch/svitici_brno.png" alt="" border="0" /&gt;&lt;/a&gt;(Canon EOS 30D, 10sec, fish-eye)&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;These lights strongly illuminates the lime-pit itself. The illumination can be nicely observed on the tree.&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/strom.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 800px; height: 533px;" src="http://integral.physics.muni.cz/%7Ehroch/strom.png" alt="" border="0" /&gt;&lt;/a&gt;(Canon EOS 30D, 16 sec, fish-eye)&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;The Hády transmitter looks likewise a rocket. Inspect the picture for faintest stars. Our naked eyes revealed only stars up to magnitude two.&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/raketa.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 800px; height: 533px;" src="http://integral.physics.muni.cz/%7Ehroch/raketa.png" alt="" border="0" /&gt;&lt;/a&gt;(Canon EOS 30D, 32 sec, fish-eye)&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: right;"&gt;Thx for nice accompany to Maceška.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-4254841091939933917?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/4254841091939933917/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=4254841091939933917' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/4254841091939933917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/4254841091939933917'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/11/hdy.html' title='Hády'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-8128545320150446469</id><published>2008-07-15T20:48:00.004+02:00</published><updated>2008-07-15T20:59:06.836+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Munipack'/><title type='text'>Strange ls &amp; fork</title><content type='html'>This weekend, I rewrote internal parts of some (darkbat, flatbat, autoflat, meandark, kombine) utilities. The utilities are internally divided into two parts. A wrapper part made interaction of a second part (core of execution) with its environment and user. The core itself provides a required functionality. The wrapper runs the core as a sub-process and both parts communicates via a pipes (output of wrapper is connected to input of core) I did it by a module coded myself (primary for Nightview). The code uses system call fork (along with related  ones). Now, It has been replaced by popen system call to simplify and standardize of wrapper's code. The change include some lost of efficiency of code (a shell is invoked) but additional occupied resources are insignificant.&lt;br /&gt;&lt;br /&gt;My code to run sub-process work correctly but it has some in-advantages:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;the code is non-standard (developers usually abuse on ones)&lt;/li&gt;&lt;li&gt;it's complicated to use (requires to use of more complex code)&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;The most important reported error appears for environments with system PATH variable set-up without current directory (without dot). The system reports (Thx to Kočka, M.Zaťko) following strange error:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$ ls * | mdark @&lt;br /&gt;MEANDARK Version 0.1, Copyright (C) 1997-06 F.Hroch, Masaryk&lt;br /&gt;University,Brno,CZ&lt;br /&gt;&lt;br /&gt;Subprocess execution failed: No such file or directory: mdark.bin&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Nevertheless, both mdark and mdark.bin has correct permissions and the same parent directory. To solve the problem, simply add dot to your system path (for bash: export PATH=$PATH:.) or install any newer version of Munipack.&lt;br /&gt;&lt;br /&gt;The separation of code to the wrapper and the core has mostly historical reason. Fortran didn't supported UNIX environment up to version Fortran 2003. All implementations contains some unofficial extensions but it may be syntactically different (for example ifc, g95, gfortran,g77 vs. SUN's Fortran). The separation also provide another additional advantages. The core can be used separately as a part of another great code without any connection to a command line fronted (represented by the wrapper). For example, the core can be easily used in some graphical or web environment.&lt;br /&gt;&lt;br /&gt;Also, I found some confusing behaviour of system command ls (list of files in directory). When ls is aliased in zsh (bash?, tcsh?) by the way&lt;br /&gt;&lt;br /&gt;ls='ls -F --color'&lt;br /&gt;&lt;br /&gt;(color is crucial) we get this really strangle error reporting&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$ ls -F --color image.fits | mdark @&lt;br /&gt;MEANDARK Version 0.2, Copyright (C) 1997-08 F.Hroch, Masaryk University,Brno,CZ&lt;br /&gt;&lt;br /&gt;image.fits:&lt;br /&gt;The following error(s) has been occured:&lt;br /&gt;input file URL is missing closing bracket ']'&lt;br /&gt;could not parse the input filename: (ffopen)&lt;br /&gt;&lt;br /&gt;Of course, it is due to hidden &lt;a href="http://en.wikipedia.org/wiki/ANSI_escape_code"&gt;escape sequences&lt;/a&gt; which doing output list coloured. I have no idea how to suppress it or how recognize these color marks on input. You has been warned.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-8128545320150446469?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/8128545320150446469/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=8128545320150446469' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/8128545320150446469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/8128545320150446469'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/07/strange-ls-fork.html' title='Strange ls &amp; fork'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-3512851267273262819</id><published>2008-07-08T22:08:00.003+02:00</published><updated>2008-07-08T23:08:56.696+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Astro'/><title type='text'>On principal pitfall of a star's magnitude calibration</title><content type='html'>A calibration of magnitudes of an instrumental system to a standard system by an aperture photometry method should be revealing of some unexpected behaviour. Very bright stars are calibrated successfully (also the widely-known method of measuring of an extinction – Bouguer line – gives good results), but fainter (and faintest) stars are exhibiting of some horrible scattering, eg. they're not usable for the calibration. I think, it's result of any inaccurate determination of a sky background. Although our methods for the sky determination are more advanced. The inaccuracy comes from an unstable character of the problem of the aperture photometry.&lt;br /&gt;&lt;br /&gt;To show, how some tiny inaccuracy in the background determination fluences to a resultant flux, we will suppose that stars are represented by Gaussian profile&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;G = G0*exp(-r**2)&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;An integration in polar coordinates (Jacobian!) of the profile gives us a total flux&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;F = F0*[1 - exp(-r**2)]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The flux &lt;span style="font-style: italic;"&gt;F&lt;/span&gt; is equivalent to quantity coming from the aperture photometry, eg. the method which we're uses to estimate of the instrumental magnitude. The real situation is different. We need to subtract the background before summing (integration) of the detected signal on our CCD matrix. The model of detected signal may easy described by&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;I = G0*exp(-r**2) + B&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;where &lt;span style="font-style: italic;"&gt;B&lt;/span&gt; is a constant added to every pixel. It's due to an illumination of the chip by a night sky or any another source. To get aperture photometry, we need subtract of &lt;span style="font-style: italic;"&gt;B&lt;/span&gt;. That means, that we need to estimate of &lt;span style="font-style: italic;"&gt;B&lt;/span&gt; by a statistical method with some uncertainty &lt;span style="font-style: italic;"&gt;b&lt;/span&gt; (&lt;span style="font-style: italic;"&gt;b &lt;&lt; B).&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Let's look to details of determination of total flux with a small error of B estimation. We have a function &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;I = G0*exp(-r**2) + (B + b)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;and subtraction of &lt;span style="font-style: italic;"&gt;B&lt;/span&gt; leads to &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;I' = G0*exp(-r**2) + b&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;so the total measurable flux&lt;/span&gt;&lt;span style="font-style: italic;"&gt; &lt;span style="font-style: italic;"&gt;F'&lt;/span&gt; &lt;/span&gt;&lt;span&gt;(directly measurable by the aperture photometry) will be &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;F' = F0*[1 - exp(-r**2)] + π*b*r**2&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;This is key moment. Our pitfall is presence of a second term. The first term is total flux of the source and its value is finite and physically limited at any radii. Note that choice of the analytic description of the term is not important. We only requires of integrable function, eg. its integral isn't infinite. Integrable functions has also an appropriate physical meaning. The size of second term depends on uncertainty of estimate of&lt;/span&gt;&lt;span style="font-style: italic;"&gt; &lt;span style="font-style: italic;"&gt;B&lt;/span&gt; &lt;/span&gt;&lt;span&gt;and on its aperture's area. Because first term is limited, there is a radius where second term dominates over first. The radius depends on the inaccuracy of estimation of&lt;/span&gt;&lt;span style="font-style: italic;"&gt; B &lt;/span&gt;&lt;span&gt;and on object's brightness.&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;The important characteristics of the measured total flux is its instability. An instability in usual sense means strong dependence of results on input parameters. That is our case. Any tiny (small) perturbation of&lt;/span&gt;&lt;span style="font-style: italic;"&gt; &lt;span style="font-style: italic;"&gt;B&lt;/span&gt; &lt;/span&gt;&lt;span&gt;lead to strong deviation of output from profile. And, what is more worse, any non-zero value of b (eg. all possible measurable cases) has no limit and the results diverge in in any possible cases (limit of&lt;/span&gt;&lt;span style="font-style: italic;"&gt; &lt;span style="font-style: italic;"&gt;F'&lt;/span&gt; &lt;/span&gt;&lt;span&gt;is the infinity for the b non-zero)! We won't win!  &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;The findings may interpret results of real measurements. Fluxes of bright stars are (in small apertures) not affected by second term. Faint stars may be too faint and the second term may by more important than the first one at small radii.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;div style="text-align: center;"&gt; &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/backprofint.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/backprofint.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;span style="font-style: italic;"&gt;Theoretical disturbed profiles &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;To test the hypothesis, I prepared some graphs. The first one shows of the flux &lt;span&gt;F'&lt;/span&gt; of an artificial Gaussian profile disturbed by values of background in range -0.1 to 0.1 (±10%). Both axes takes relative units. The graph is a nice demonstration of drastic fluency of any background estimation error on its resultant profile. Two most important characteristics of error of background estimation are: &lt;ul&gt;&lt;li&gt;any non-zero value induce significant change of shape of profile&lt;/li&gt;&lt;li&gt;profile has no limit in infinity&lt;/li&gt;&lt;/ul&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/LeoI-anotated.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px;" src="http://integral.physics.muni.cz/%7Ehroch/LeoI-anotated.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;span style="font-style: italic;"&gt;Leo I annotated&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/LeoI-removed.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px;" src="http://integral.physics.muni.cz/%7Ehroch/LeoI-removed.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;span style="font-style: italic;"&gt;Leo I with removed stars&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;span&gt;My second graph represents more real situation. There are disturbed fitted profiles of stars on the image of Leo I. The most important change to previous one are:&lt;ul&gt;&lt;li&gt;magnitude scale&lt;/li&gt;&lt;li&gt;the profile is non-Gaussian&lt;/li&gt;&lt;/ul&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/LeoI-back_teor.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/LeoI-back_teor.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;span style="font-style: italic;"&gt;Set of disturbed profiles of stars on Leo I&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;The vertical scale shows differences in magnitudes with respect to first aperture. The profile is modelled by a complex function as composition of wighted sum of Gaussian, Moffat and exponential function (see &lt;a href="http://adsabs.harvard.edu/abs/1990PASP..102..932S"&gt;Stetson (1990)&lt;/a&gt;). The reliability of the fit can be demonstrated by another image on which the stars has been removed on base of the profile.&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/leo-bright_star.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/leo-bright_star.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;span style="font-style: italic;"&gt;Profile of a bright star #1&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Final pair of images shows an application of the disturbed mean profiles for two stars. The bright star has no warped profile. Any uncertainty in the sky estimation is insignificant to the total measurable flux of the star. The star is designed by #1 in the above image. The profile shows systematic differences in small radii. It is perhaps due to saturation of the star (the maximum of peak is greater than photon capacity of our CCD detector).&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/leo-faint_star.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/leo-faint_star.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-style: italic;"&gt;Profile of a faint star #2&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;The graph for faint star #2 clearly exhibits the effect of the error in estimation of the sky. The profile can be satisfactory modeled if we subtract 0.05 ADU (b = -0.05) from the sky background (determined by Munipack's). We can see, that the precision of the determination of the sky is really important for relative faint stars with its peak only about six thousands and the sky value about six hundredth (ten percent only!). A last point at radius 28 is affected by a hot pixel. The really interesting effects is the deviation of measured values and the modeled profile. The deviation shows some scattering in order of hundredth of magnitude (which corresponds to the precision given by photon statistics). But more important is relative difference between bright and faint star. We can see that the difference depends on aperture which has been used for estimation of magnitude of stars. That means that any magnitude calibration to standard system will depend on magnitude of the star. That is really poor property of the aperture photometry.&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Note, that I selected the stars very carefully, because profiles of faint stars are strongly affected by various kinds of defects.&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;Another point of view offers photon statistics. The middle bright star on the CCD chip gives typically 10^5 photons, so the statistical uncertainty due to only Poisson noise gives about 0.003 magnitude which is about ten factor better than is usually measured.&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;The key thing of the post (strong fluency of background on aperture magnitudes) is included in paper of &lt;a href="http://adsabs.harvard.edu/abs/1989PASP..101..616H"&gt;Howell (1989)&lt;/a&gt;. There is only extension some theoretical ideas and another practical test.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-3512851267273262819?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/3512851267273262819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=3512851267273262819' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/3512851267273262819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/3512851267273262819'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/07/on-principal-pitfall-of-stars-magnitude.html' title='On principal pitfall of a star&apos;s magnitude calibration'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-4396800002151460735</id><published>2008-06-20T15:07:00.003+02:00</published><updated>2008-06-21T01:04:06.216+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Munipack'/><title type='text'>Munipack stable release</title><content type='html'>Yesterday, I finished work on a simple script to make of a regular release of Munipack. Geeks from &lt;a href="http://fedoraproject.org/wiki/Category:Astronomy_SIG"&gt;Fedora Astronomy group&lt;/a&gt; included Munipack in their release. Unfortunately, they used a really historical version (it may come from past century). I think, it is due of may unconventional designing and releasing of Munipack (also Nightview) versions. New versions are generated once per day from cvs repository as nightly builds. Many of peoples are supposed that it is a development version only and it isn't suitable as a production release. It isn't true, but all peoples suppose it due to the naming scheme.&lt;br /&gt;&lt;br /&gt;To suppress any confusion, the version issue is improved to a conventional naming scheme from now. The "stable" release will be also generated from cvs repository. The generation will less frequent (only once per month), the archive will named as munipack-0.4.?.tar.gz with incrementing only last digit. Also, the archive will generated if the following rules will be satisfied:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;the last changelog record is older then approximately 35 days&lt;/li&gt;&lt;li&gt;the changelog records are different&lt;/li&gt;&lt;/ul&gt;I think, it will prevent incrementing of minor version without change of content and it will give me some time for developing and bug-fixing of a new code (you can still use of nightly builds in meantime).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-4396800002151460735?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/4396800002151460735/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=4396800002151460735' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/4396800002151460735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/4396800002151460735'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/06/munipack-stable-release.html' title='Munipack stable release'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-6099740780250705969</id><published>2008-06-19T22:57:00.002+02:00</published><updated>2008-06-19T23:05:17.496+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Guide'/><title type='text'>Astronomical image processing guide (How to list of info keywords?)</title><content type='html'>A great advantage of the FITS format is support of any arbitrary information included into an image file. A place for the info is reserved in header of the FITS file. Every FITS header must contain a set of records (lines) containing certain mandatory keywords. The set may be followed by records with any other keywords.&lt;br /&gt;&lt;br /&gt;The mandatory keywords are: SIMPLE, EXTEND and END. All others are optional. The records of header has the fixed structure:&lt;br /&gt;&lt;br /&gt;1-8   -   keyword&lt;br /&gt;9     -   = equal's sign&lt;br /&gt;10-x  -   value (various lengths)&lt;br /&gt;x -80 -   comment (every text following slash '/')&lt;br /&gt;&lt;br /&gt;All records are 80-bytes long and there is no separator between ones.  The special keywords COMMENT and HISTORY has no defined a structure and introduce any text string (continuation lines are not allowed). Recent recommendations to contents of the records adds physical units to numerical values as a part of comment. Any set of keywords is not widely used. It means that various utilities may used different keyword for the same entity.&lt;br /&gt;&lt;br /&gt;The most common keywords are included in following (artificial) example:&lt;br /&gt;&lt;br /&gt;SIMPLE  =                    T / file does conform to FITS standard&lt;br /&gt;BITPIX  =                   16 / number of bits per data pixel&lt;br /&gt;NAXIS   =                    2 / number of data axes&lt;br /&gt;NAXIS1  =                  382 / length of data axis 1&lt;br /&gt;NAXIS2  =                  255 / length of data axis 2&lt;br /&gt;EXTEND  =                    T / FITS dataset may contain extensions&lt;br /&gt;EXPTIME =               60.000 / [s] Exposure time&lt;br /&gt;DATE-OBS= '2008-06-06T01:02:41.390' / UTC of exposure start&lt;br /&gt;FILTER  = 'R       '           / filter&lt;br /&gt;OBJECT  = 'Star'               / Object name&lt;br /&gt;COMMENT This file was written by XXX.&lt;br /&gt;END&lt;br /&gt;&lt;br /&gt;We have more ways to handle with FITS header keywords. Practically, we will need to list of all keywords (as a variant of more or less command on unix's shell) or list of value of some specified record. Both situations can be easy coded. We introduce of utility FITSless which will print all keywords (full header) without any switches and a specified value when any keyword will presented, its value will be printed.&lt;br /&gt;&lt;br /&gt;The values are usually different kinds (from computer point of view). For example, the observer's name will coded as a string, an exposure time will a real number, the date of start will a specially formatted string. To print the information, we will use only string representation, but in real code it will be better use of appropriate data type. Unfortunately, there is no simple way how to do it in Fortran, C and cFITSIO under recent versions of ones.&lt;br /&gt;&lt;br /&gt;program &lt;a href="http://integral.physics.muni.cz/%7Ehroch/FITSless.f90"&gt;FITSless&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;  implicit none&lt;br /&gt;&lt;br /&gt;  integer :: status&lt;br /&gt;  ! status ... FITS status (0=no error)&lt;br /&gt;&lt;br /&gt;  integer :: j,blocksize&lt;br /&gt;&lt;br /&gt;  character(len=666) :: name = 'image.fits'&lt;br /&gt;  ! name .. fill with name of the image to open&lt;br /&gt;&lt;br /&gt;  character(len=666) :: keyword&lt;br /&gt;  ! keyword to print the record&lt;br /&gt;&lt;br /&gt;  character(len=666) :: record&lt;br /&gt;  ! header's record&lt;br /&gt;&lt;br /&gt;  character(len=666) :: value, comment&lt;br /&gt;  ! record's value &amp;amp; comment&lt;br /&gt; &lt;br /&gt;  integer :: nhead, hpos&lt;br /&gt;  ! number of records in header and current position&lt;br /&gt;&lt;br /&gt;  ! get first command line parameter&lt;br /&gt;  call get_command_argument(1, keyword)&lt;br /&gt;&lt;br /&gt;  status = 0&lt;br /&gt;  call ftopen(25,name,0,blocksize,status)&lt;br /&gt;  if( status /= 0 ) stop 'File not found.'&lt;br /&gt;&lt;br /&gt;  ! list specified keyword or full header&lt;br /&gt;  if( keyword /= ' ' ) then&lt;br /&gt;&lt;br /&gt;     write(*,*) 'List of a record specified by your keyword:'&lt;br /&gt;     write(*,*) '-------------------------------------------'&lt;br /&gt;&lt;br /&gt;     call ftgkys(25,keyword,value, comment, status)&lt;br /&gt;     ! checking status of the operation&lt;br /&gt;     if( status == 0 ) then&lt;br /&gt;        write(*,*) trim(keyword),' = ',trim(value),' /',trim(comment)&lt;br /&gt;     else&lt;br /&gt;        write(*,*) 'Keyword "',trim(keyword),'" not found.'&lt;br /&gt;     end if&lt;br /&gt;&lt;br /&gt;  else&lt;br /&gt;&lt;br /&gt;     write(*,*) 'Full header list:'&lt;br /&gt;     write(*,*) '-----------------'&lt;br /&gt;&lt;br /&gt;     call ftghps(25,nhead,hpos,status)&lt;br /&gt;     do j = 1, nhead&lt;br /&gt;        call ftgrec(25,j,record,status)&lt;br /&gt;        write(*,*) trim(record)&lt;br /&gt;     enddo&lt;br /&gt;&lt;br /&gt;  end if&lt;br /&gt; &lt;br /&gt;  call ftclos(25,status)&lt;br /&gt;&lt;br /&gt;end program FITSless&lt;br /&gt;&lt;br /&gt;The code is self-explanatory, I recommend try this following experiments:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;try give as parameter an arbitrary text string or upper/lower case keywords&lt;/li&gt;&lt;li&gt;process any printed information by some another text tool (sed, grep,..)&lt;/li&gt;&lt;li&gt;play with listing of a record on given position in the header&lt;/li&gt;&lt;li&gt;modify code to read an input file name by command-line parameters&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-6099740780250705969?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/6099740780250705969/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=6099740780250705969' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/6099740780250705969'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/6099740780250705969'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/06/astronomical-image-processing-guide-how_19.html' title='Astronomical image processing guide (How to list of info keywords?)'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-2191992313573505997</id><published>2008-06-15T23:45:00.005+02:00</published><updated>2008-12-10T07:08:26.379+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Munipack'/><title type='text'>A ridge of algorithms</title><content type='html'>I spend some time with the &lt;a href="http://monteboo.blogspot.com/2008/06/how-aureole-shades-stars.html"&gt;growth-curve&lt;/a&gt; method during last days. Its looks nice, but relative hard to control.&lt;br /&gt;&lt;br /&gt;Some side product of the game is comparison of the original Stetson's algorithm for estimate of the arithmetical mean with new ones. To get mean, Stetson have introduced some rejection-type algorithm. I've no more detailed information about it - there is no reference in source code or a paper. Opposite with this, Munipack estimate of the mean by a method on base of minimisation of a general function. It minimises function in shape of the least-square near of minimum and suppress it to zero otherwise by method of the maximum like-hood. The chapter describing of a robust statistical methods in &lt;a href="http://www.nr.com/"&gt;Numerical recipes&lt;/a&gt; is an ideal start point to get detailed view to this field. A source code of Munipack uses of those ideas, but it doesn't describe it. The new estimator has been included to Munipack approximately eight years ago.&lt;br /&gt;&lt;br /&gt;I compared of the estimators on case of the ridge of magnitude on differences of following apertures. Both three-dimensional graphs shows number of the differences in cells specified by apertures and its value's ranges. The horizontal (&lt;span style="font-style: italic;"&gt;x&lt;/span&gt;) axis takes magnitude differences, the horizontal (&lt;span style="font-style: italic;"&gt;y&lt;/span&gt;) axis takes size of aperture and vertical (&lt;span style="font-style: italic;"&gt;z&lt;/span&gt;) shows the number of values in that bin interval. The top side of the data cube shows projection of the number of values to a plane. Colors of the histogram maps number of points: dark - near zero, light - near maximum (hundred).&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_UOcVemxNJNA/SFWN9IEDMXI/AAAAAAAAAEs/kNpf7ud_eiM/s1600-h/hrbet-hampel.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_UOcVemxNJNA/SFWN9IEDMXI/AAAAAAAAAEs/kNpf7ud_eiM/s400/hrbet-hampel.png" alt="" id="BLOGGER_PHOTO_ID_5212228225027223922" border="0" /&gt;&lt;/a&gt; Muniphot's ridge&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_UOcVemxNJNA/SFWON8Vk5PI/AAAAAAAAAE0/AONuDKFClOA/s1600-h/hrbet-stetson.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_UOcVemxNJNA/SFWON8Vk5PI/AAAAAAAAAE0/AONuDKFClOA/s400/hrbet-stetson.png" alt="" id="BLOGGER_PHOTO_ID_5212228513937286386" border="0" /&gt;&lt;/a&gt;Stetson's ridge&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;Both images looks similar. Only one difference is a small systematic shift of the ridge to negative region on Stetson's graph. It is about 0.01 in magnitude, so I think, it is not important in real situations. Perhaps. It may means that the new method for the mean estimations works little bit better.&lt;br /&gt;&lt;br /&gt;Ridges height strongly depends on aperture. Small values gives perfect estimation against apertures greater that fifteen (in my case) when the the histogram shows no peaks. The characteristics may be important for growth-curve fitting.&lt;br /&gt;&lt;br /&gt;As test data for both graph, I used combined image of M67 as in &lt;a href="http://monteboo.blogspot.com/2008/06/how-aureole-shades-stars.html"&gt;previous post&lt;/a&gt;. However, graphs of ridges looks differently (gnuplot's pm3d feature has been used on graphs here). It is due of my mistake during data processing. The previous perfect ridge with strong peaks at large apertures comes from many zero's differences of bad magnitudes of 99.999. Keep smiling.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-2191992313573505997?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/2191992313573505997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=2191992313573505997' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/2191992313573505997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/2191992313573505997'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/06/ridge-of-algorithms.html' title='A ridge of algorithms'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_UOcVemxNJNA/SFWN9IEDMXI/AAAAAAAAAEs/kNpf7ud_eiM/s72-c/hrbet-hampel.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-2479907334278168500</id><published>2008-06-12T00:09:00.011+02:00</published><updated>2008-12-10T07:08:26.539+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Guide'/><title type='text'>Astronomical image processing guide (How to save of an image to a FITS file?)</title><content type='html'>One of most common operation done on FITS files is creation of a new image. The creation process is straightforward. One is required to have an image (result of a mathematical algorithm) with known dimensions and that's all.&lt;br /&gt;&lt;br /&gt;The FITS format supports up to seven-dimensional images without any strict limitation of its axis ranges. Practically, we've some limits due to physical properties of present computers. The most important is a size of the output image. The size is determined (approximately) as a product of image dimensions multiplied by number of bytes occupied by one pixel. For two-dimensional image of 100x100 pixels in both axis, represented by real numbers (4-byte, BITPIX=-32), we got size about 40 kilo-bytes. As we know from previous lecture, the images produced by an algorithm are usually saved as real data to preserve its numerical precision.&lt;br /&gt;&lt;br /&gt;As example of a test image, I choose Bessel's function of zero kind J&lt;sub&gt;0&lt;/sub&gt; which represents light's diffraction on cylindrical aperture. We can observe of square of Bessel's function in an ideal telescope as the image of a star (of course, we use only J&lt;sub&gt;0&lt;/sub&gt; for simplicity, a star will looks differently). J&lt;sub&gt;0&lt;/sub&gt; is non-standard Fortran function and may be not supported by all compilers (gfortran does it) so one is optional only and you can play with cosine under a strict-standard compiler.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_UOcVemxNJNA/SFBO_2fPDkI/AAAAAAAAAEk/Bj5mgfiwHOs/s1600-h/FITSsave.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_UOcVemxNJNA/SFBO_2fPDkI/AAAAAAAAAEk/Bj5mgfiwHOs/s400/FITSsave.png" alt="" id="BLOGGER_PHOTO_ID_5210751627732913730" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;An algorithm to save an image to FITS file is straightforward:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;create image as an array&lt;/li&gt;&lt;li&gt;fill the array by an image&lt;/li&gt;&lt;li&gt;initiate a FITS&lt;/li&gt;&lt;li&gt;setup image parameters&lt;/li&gt;&lt;li&gt;save the data&lt;/li&gt;&lt;/ol&gt;program &lt;a href="http://integral.physics.muni.cz/%7Ehroch/FITSsave.f90"&gt;FITSsave&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;implicit none&lt;br /&gt;&lt;br /&gt;integer :: status, bitpix, naxis, naxes(2)&lt;br /&gt;! status ... FITS status (0=no error)&lt;br /&gt;! naxis .. number of axes in the image (we set =2)&lt;br /&gt;! naxes .. dimensions of the image (2-element array)&lt;br /&gt;&lt;br /&gt;real, dimension(:,:), allocatable :: d&lt;br /&gt;! data matrix&lt;br /&gt;&lt;br /&gt;character(len=666) :: name = 'image.fits'&lt;br /&gt;! name .. fill with name of the image to create&lt;br /&gt;&lt;br /&gt;! aux&lt;br /&gt;real :: x,y,r&lt;br /&gt;integer :: i,j&lt;br /&gt;&lt;br /&gt;! set dimensions of the new image&lt;br /&gt;naxis = 2&lt;br /&gt;naxes = (/ 100,100 /)&lt;br /&gt;&lt;br /&gt;! set bipix of the image (try: 8,16,32 and -32)&lt;br /&gt;bitpix = -32&lt;br /&gt;&lt;br /&gt;! create a data storage (allocate memory) for the image&lt;br /&gt;allocate(d(naxes(1),naxes(2)))&lt;br /&gt;&lt;br /&gt;! fill image with values&lt;br /&gt;do i = 1, naxes(1)&lt;br /&gt;do j = 1, naxes(2)&lt;br /&gt;&lt;br /&gt;! rectangular coordinates&lt;br /&gt;! the left bottom pixel has 1,1&lt;br /&gt;x = i&lt;br /&gt;y = j&lt;br /&gt;&lt;br /&gt;! distance from origin&lt;br /&gt;r = sqrt(x**2 + y**2)&lt;br /&gt;&lt;br /&gt;! set value&lt;br /&gt;d(i,j) = cos(r/5.0)&lt;br /&gt;!d(i,j) = besj0(r/5.0)&lt;br /&gt;! uncomment for J0 (Bessel function of zero kind)&lt;br /&gt;! J0 represents diffraction on cylindrical aperture&lt;br /&gt;end do&lt;br /&gt;end do&lt;br /&gt;&lt;br /&gt;! save the data&lt;br /&gt;status = 0&lt;br /&gt;call ftinit(26,name,1,status)&lt;br /&gt;call ftphps(26,bitpix,naxis,naxes,status)&lt;br /&gt;call ftp2de(26,1,naxes(1),naxes(1),naxes(2),d,status)&lt;br /&gt;call ftclos(26,status)&lt;br /&gt;&lt;br /&gt;! free allocated memory&lt;br /&gt;deallocate(d)&lt;br /&gt;&lt;br /&gt;end program FITSsave&lt;br /&gt;&lt;br /&gt;The code can be compiled and run by&lt;br /&gt;&lt;br /&gt;host$ gfortran -Wall -o FITSsave FITSsave.f90 -L/usr/local/lib -lcfitsio&lt;br /&gt;host$ ./FITSsave&lt;br /&gt;&lt;br /&gt;the output file is named as image.fits and can be viewed by any FITS viewer, for example by &lt;a href="http://hea-www.harvard.edu/RD/ds9/"&gt;ds9&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;host$ ds9 image.fits&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Notes.&lt;br /&gt;&lt;br /&gt;Any handle with numerical operations in many computer languages may be little bit confusing. Fortran strictly distinguish between integer and real numbers. The notation 3/4 (both integers) products result 0 (reminder is forget), but 4/3 gives 1. Opposite with this, the notation 3.0/4.0 gives 0.75 (two significant places).&lt;br /&gt;&lt;br /&gt;The function ftinit (the initial function for FITS file) can create only a new file. There is no way how to replace any existing file. This is simply a feature of cfitsio, not a bug. It means that you must remove the older file image.fits before run FITSsave again.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-2479907334278168500?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/2479907334278168500/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=2479907334278168500' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/2479907334278168500'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/2479907334278168500'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/06/astronomical-image-processing-guide-how_12.html' title='Astronomical image processing guide (How to save of an image to a FITS file?)'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_UOcVemxNJNA/SFBO_2fPDkI/AAAAAAAAAEk/Bj5mgfiwHOs/s72-c/FITSsave.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-9218363033683771702</id><published>2008-06-02T22:21:00.003+02:00</published><updated>2008-06-02T22:29:59.200+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Guide'/><title type='text'>Astronomical image processing guide (How to list of values of a FITS image?)</title><content type='html'>Every FITS file is representation of an image usually created by an optical device. The image is quantized (sampled) to elementary cells called pixels. An information knows for any pixel are: a pixel coordinate (Cartesian x,y) and its captured optical flux (CCD's flux is a linear function of captured photons).&lt;br /&gt;&lt;br /&gt;The pixels which represents an image, are rearranged and a captured flux is digitalised to a matrix. The matrix is saved to a FITS file by a defined algorithm. The pixels coordinates (integers) are arranged in that matrix by the way:&lt;br /&gt;&lt;br /&gt;[M,1] [M,2] .. [M,N]&lt;br /&gt;..          ..&lt;br /&gt;[2,1] [2,2] .. [2,N]&lt;br /&gt;[1,1] [1,2] .. [1,N]&lt;br /&gt;&lt;br /&gt;The matrix represents an image of width of N pixels and M pixels of height. The origin and orientation is in usual mathematical fashion.&lt;br /&gt;&lt;br /&gt;Every pixel is represented by a number. The kind of the number may be an integer and a real (real numbers are with fractional part). Raw images (pure product of a device) are usually represented by integer numbers in interval from 0 to 65535 (2^16) for CCD and from 0 to 4096 (2^12) for a digital camera. A processed images as result of mathematical operations are saved as a real numbers with floating point. (Arithmetical operations may reduce of its precision). The method (complicated on first sight) to store of data reflects many of astronomer's needs and save your disk space. The data representation is coded in parameter BITPIX in the fits header by the way (not all possibilities are included):&lt;br /&gt;&lt;br /&gt;BITPIX       bytes    type       range of values&lt;br /&gt;8             1       integer     0 .. 255&lt;br /&gt;16            2       integer     0 .. 65535&lt;br /&gt;32            4       integer     0 .. 4294836225&lt;br /&gt;-32           4       real        -1e38 .. 1e38 (7 digits)&lt;br /&gt;&lt;br /&gt;An operation on a image included in a FITS file is relative easy. Follow the instruction:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;open of FITS&lt;/li&gt;&lt;li&gt;get of its size (width, height)&lt;/li&gt;&lt;li&gt;allocate memory for a matrix&lt;/li&gt;&lt;li&gt;read data&lt;/li&gt;&lt;li&gt;play with data&lt;/li&gt;&lt;/ol&gt;Fortran offers a very effective way for manipulation with matrixes. For a matrix D, we can select an i,j-element as D(i,j), a i-row D(i,:),i-column D(:,j) or submatrix D(1:10,50:60).&lt;br /&gt;&lt;br /&gt;program &lt;a href="http://integral.physics.muni.cz/%7Ehroch/FITSlist.f90"&gt;FITSlist&lt;/a&gt;&lt;br /&gt;&lt;br /&gt; implicit none&lt;br /&gt;&lt;br /&gt; integer :: status, bitpix, naxis, naxes(2)&lt;br /&gt; ! status ... FITS status (0=no error)&lt;br /&gt; ! naxis .. number of axes in image (we require =2)&lt;br /&gt; ! naxes .. dimension of the image (2-element array)&lt;br /&gt;&lt;br /&gt; integer :: i,j,blocksize,pcount,gcount,minvalue&lt;br /&gt; logical :: extend, simple,anyf&lt;br /&gt; ! required by cFITSIO&lt;br /&gt;&lt;br /&gt; real, dimension(:,:), allocatable :: d&lt;br /&gt; ! data matrix&lt;br /&gt;&lt;br /&gt; character(len=666) :: name = 'image.fits'&lt;br /&gt; ! name .. fill with name of the image to open&lt;br /&gt;&lt;br /&gt; status = 0&lt;br /&gt; call ftopen(25,name,0,blocksize,status)&lt;br /&gt; call ftghpr(25,2,simple,bitpix,naxis,naxes,pcount,gcount,extend,status)&lt;br /&gt; allocate(d(naxes(1),naxes(2)))&lt;br /&gt; call ftg2de(25,1,minvalue,naxes(1),naxes(1),naxes(2),d,anyf,status)&lt;br /&gt; call ftclos(25,status)&lt;br /&gt;&lt;br /&gt; ! print value of a random pixel&lt;br /&gt; write(*,*) '# d(1,1)=',d(1,1)&lt;br /&gt;&lt;br /&gt; ! print last tree values of first row&lt;br /&gt; write(*,*) '# d(1,-10:)=',d(1,size(d,2)-3:)&lt;br /&gt;&lt;br /&gt; ! print of a submatrix with indexes&lt;br /&gt; do i = 1,10&lt;br /&gt;    do j = 50,60&lt;br /&gt;       write(*,*) i,j,d(i,j)&lt;br /&gt;    end do&lt;br /&gt; end do&lt;br /&gt;&lt;br /&gt;end program FITSlist&lt;br /&gt;&lt;br /&gt;The output of the code can be saved to a file by sequence of commands:&lt;br /&gt;&lt;br /&gt;host$ gfortran -Wall -o FITSlist FITSlist.f90 -L/usr/local/lib -lcfitsio&lt;br /&gt;host$ ./FITSlist &gt; pixels&lt;br /&gt;&lt;br /&gt;and easy plotted in a gnuplot with the command:&lt;br /&gt;&lt;br /&gt;gnuplot&gt; splot 'pixels'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-9218363033683771702?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/9218363033683771702/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=9218363033683771702' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/9218363033683771702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/9218363033683771702'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/06/astronomical-image-processing-guide-how.html' title='Astronomical image processing guide (How to list of values of a FITS image?)'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-3135986088534486257</id><published>2008-06-02T01:22:00.004+02:00</published><updated>2008-06-02T01:49:32.462+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Munipack'/><category scheme='http://www.blogger.com/atom/ns#' term='Astro'/><title type='text'>How aureole shades stars</title><content type='html'>The photometry (magnitudes of stars) produced by Munipack is an aperture photometry, which means that a magnitude is determined only as a sum of a flux inside an artificial aperture. The aperture photometry is sufficient for a relative comparison of stars. It should be very useful in many applications like observing of variable objects (variable stars, asteroids, afterglows,..), but there are many of additional requirements (calibration of photometric system, precise photometry,...) in which the aperture photometry start to fail.&lt;br /&gt;&lt;br /&gt;Briefly, an image of a star is theoretically a point, but Earth's atmosphere and telescope's optics spread the point to a blob with Gaussian central part and an outer parts showing an "aureole". The problem of the aperture photometry is our ignorance of outer radii which may include an important fraction of a total flux. If we will ignore the aureole's flux, any magnitudes will depends on atmospheric conditions (seeing spreads stars with dependence on its air mass or a night) and on magnitude of the magnitude (A golden rule of differential photometry is to compare objects with similar magnitude). It means that precise photometry requires more sophisticated approach.&lt;br /&gt;&lt;br /&gt;Described problems bothers CCD's photometrics for a long time. They are described in articles of classics at 80'. &lt;a href="http://adsabs.harvard.edu/abs/1989PASP..101..616H"&gt;Howell(1989)&lt;/a&gt; points to properties of the aperture photometry for differently bright stars. He shows that total flux of bright stars is determined relative precise, but any small error in determination of background for any faint star strongly affects total fluxes. The solution of the problem did published &lt;a href="http://adsabs.harvard.edu/abs/1990PASP..102..932S"&gt;Stetson(1990)&lt;/a&gt; in that great article. He developed a method on base of cumulative distribution of magnitudes of stars (in astronomical dialect the grow-curve method). Please read the paper, I have no time to transcribe it here. The most important ones (from my point of view) are: The grow-curve method is complement to PSF method (PSF &lt;=&gt; precise relative magnitude, grow &lt;=&gt; precise calibrated magnitude). The model of cumulative profile of the star as an integral of PSF can be described by a sum of analytic functions (Gaussian, exponential and Moffat - Moffat is generalisation of Lorentz).&lt;br /&gt;&lt;br /&gt;The grow-curve method for a large radii can be described by Moffat's function ~1/(1+r^2)^A (A=2 for Lorentz). We suppose that all stars on the image has the same cumulative (grow-curve) profile (integral of PSF modeled by Moffat). To construct of the mean grow-curve for all stars with no matter to its brightness, Stetson uses ratio of fluxes in et sequentia of apertures, eg. the following differences of aperture's magnitudes.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/m67aureole.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/m67aureole.png" alt="" border="0" /&gt;&lt;/a&gt;M 67&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;I try it on image of the M 67 open stellar cluster exposed on 2008-02-26 at R filter via 0.4m telescope at HaP MK Brno. The standard Munipack run has been done. About 250 stars has been found. The results included in graph in fashion of the Stetson's article are included.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/m67grow.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/m67grow.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/m67grow3d.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/m67grow3d.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I take out of these basic fact from the graphs:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;The scatter of the points is relative great over five magnitudes (not all are included). It is due to random errors, disturbance of magnitudes of overlap stars,  wrong determination of background for faint stars.&lt;/li&gt;&lt;li&gt;A pretty description of magnitudes displays frequency of magnitudes in an interval of difference magnitude and apertures. There is a spine visualising of most frequent values of the variables. I'd pleasure from behaviour of the spine at large radii where the values converges to zero. It means that the robust mean algorithm used in Munipack to determine of sky level is really good.&lt;/li&gt;&lt;li&gt;The graph show differences about 0.1 magnitudes at radii usually applied to photometry. The function is not a profile itself. It means that the difference between a real and determined magnitude will a few tenth of magnitude. In other word, the calibration of Munipack's aperture magnitudes will depends on actual observation conditions and the calibrations derived from the magnitudes will contain an systematic error which will be depend on magnitude of a star.&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-3135986088534486257?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/3135986088534486257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=3135986088534486257' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/3135986088534486257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/3135986088534486257'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/06/how-aureole-shades-stars.html' title='How aureole shades stars'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-4683429160796086180</id><published>2008-05-26T22:49:00.004+02:00</published><updated>2008-06-02T01:47:34.766+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Guide'/><title type='text'>Astronomical image processing guide (How to open a FITS image?)</title><content type='html'>A structure of a FITS file is a little bit complicated, but not too much. The FITS itself includes a header and a data part. The header of an image consists from meta-information about the image.  The most important are the size (width and height) and data representation of the image.&lt;br /&gt;&lt;br /&gt;The header is set of 80-byte (character) length records. Every record is represented by text line with structure:&lt;br /&gt;KEYWORD = VALUE&lt;br /&gt;The KEYWORD must be no longer than 8 characters. The '=' must be in 9 column. The width and height of an image is coded by the way:&lt;br /&gt;NAXIS1  =    1628&lt;br /&gt;NAXIS2  =    1236&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;How to get an image size?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To get this basic information by use of the cfitsio library, we can use of the piece of the code (&lt;a href="http://integral.physics.muni.cz/%7Ehroch/FITSsize.f90"&gt;source code&lt;/a&gt;):&lt;br /&gt;&lt;br /&gt;! to compile: gfortran -Wall -o FITSsize o.f90 -L/usr/local/lib -lcfitsio&lt;br /&gt;&lt;br /&gt;program FITSsize&lt;br /&gt;&lt;br /&gt;implicit none&lt;br /&gt;&lt;br /&gt;integer :: status, bitpix, naxis, naxes(2)&lt;br /&gt;! status ... FITS status (0=no error)&lt;br /&gt;! naxis .. number of axes in image (we require =2)&lt;br /&gt;! naxes .. dimension of the image (2-element array)&lt;br /&gt;&lt;br /&gt;integer :: blocksize,pcount,gcount&lt;br /&gt;logical :: extend, simple&lt;br /&gt;! required by cFITSIO&lt;br /&gt;&lt;br /&gt;character(len=666) :: name = 'image.fits'&lt;br /&gt;! name .. fill with name of the image to open&lt;br /&gt;status = 0&lt;br /&gt;call ftopen(25,name,0,blocksize,status)&lt;br /&gt;call ftghpr(25,2,simple,bitpix,naxis,naxes,pcount,gcount,extend,status)&lt;br /&gt;call ftclos(25,status)&lt;br /&gt;&lt;br /&gt;if( status == 0 ) then&lt;br /&gt;   write(*,*) 'The image ',trim(name),' has the size:',naxes&lt;br /&gt;else&lt;br /&gt;   write(*,*) 'The image "',trim(name),'" not found or not accessible.'&lt;br /&gt;end if&lt;br /&gt;&lt;br /&gt;end program FITSsize&lt;br /&gt;&lt;br /&gt;The code may by compiled by command:&lt;br /&gt;&lt;br /&gt;host$ gfortran -Wall -o FITSsize FITSsize.f90 -L/usr/local/lib -lcfitsio&lt;br /&gt;&lt;br /&gt;where switch -Wall prints some warnings, -o specify name of the generated binary file (name of the routine), -L&lt;path&gt; points path to cfitsio library (may be omitted, usually any system directory) and -lcfitsio links cFITSIO library (libcfitsio.a).&lt;br /&gt;&lt;br /&gt;Type:&lt;br /&gt;&lt;br /&gt;host$ ./FITSsize&lt;br /&gt;&lt;br /&gt;to run. The utility will try to open file named as 'image.fits' (can be changed in declaration name = 'image.fits'). If this file is accessible it will print the size of the image. If the name can't be open, an error will appeared.&lt;br /&gt;&lt;br /&gt;This code demonstrates basic idioms of FITS-specific ones:&lt;br /&gt;&lt;/path&gt;&lt;ul&gt;&lt;li&gt;its look horribly&lt;/li&gt;&lt;li&gt;there is a lot of declarations which meaning is too hard to remember&lt;/li&gt;&lt;li&gt;the variable status must be set to zero before calling of any of cFITSIO routines&lt;/li&gt;&lt;li&gt;the name of the image to open is a second argument to ftopen&lt;/li&gt;&lt;li&gt;the routine ftghpr reads important parameters (coded by KEYWORDS as above) of the image&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-4683429160796086180?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/4683429160796086180/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=4683429160796086180' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/4683429160796086180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/4683429160796086180'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/05/astronomical-image-processing-guide-how.html' title='Astronomical image processing guide (How to open a FITS image?)'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-3350784494229659810</id><published>2008-05-21T22:51:00.002+02:00</published><updated>2008-05-21T23:03:46.941+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Guide'/><title type='text'>Astronomical image processing guide (Intro)</title><content type='html'>From time to time, I'm thinking about the most useful way to process of an astronomical image data. An use of wide-known software package utilities like Gaia, ds9, IRAF may be better or worse in comparison of a direct coding of a self-made routine? Both approaches has its own advantages and disadvantages so, I think, there is no an universal way to process its. For example, a lot of work can be done inside IRAF's (http://iraf.noao.edu/) environment, but sometimes may be faster and more suitable of coding of an own utility. Both approaches may be possible useful and important especially for a particular processing. Also, I thinks the develop of any own routine may be much, much better and simpler then use of prepared ones. While there is a lot of documents describing of various software packages, the processing in a computer language is described poorly.  That's why I'm starting write this guide.&lt;br /&gt;&lt;br /&gt;The basic operation to work with data is data file handling. A FITS format (http://heasarc.gsfc.nasa.gov/docs/heasarc/fits.html) is a wide-used format to storing of an astronomical data including both an images and a data tables. A general structure of FITS files may be really very complicated. Fortunately, W. Pence and etc. made the &lt;a href="http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html"&gt;cFITSIO&lt;/a&gt; library to provide of a standard way to create, open and modify of any FITS files. The library offers interfaces for C and Fortran languages. There is also a lot of wrappers to others (Perl, Python, C++, ..).  I'll use of Fortran (fortran 90/95/2003 dialect) in this guide to create a simple code but the change to C (for example) is straightforward.&lt;br /&gt;&lt;br /&gt;A computer library (like cfitsio) is a file with a special structure which includes a set of (useful) functions. The file is usually created by compiling of a computer language (cfitsio is in C) to a machine-specific code.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;How to install an environment to open FITS files?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. Use of your package system and install gfortran (Fortran compiler).&lt;br /&gt;2. Use of your package system and install cfitsio.&lt;br /&gt;&lt;br /&gt;ad 1). The gfortran is included in most modern Linuxes. Its is possible to use also Intel's ifort (apparently faster). Solaris offers f90/f95. The GNU g95 provides binaries for other systems (BSD's, Mac OSX, ..).&lt;br /&gt;&lt;br /&gt;ad 2) Many modern distributions (Debian, Ubuntu, Fedora..) offers cfitsio as a package. If your doesn't, download directly tarball. Move it to /tmp and execute:&lt;span style="font-family: courier new;"&gt;&lt;/span&gt;&lt;br /&gt;  host:/tmp$ tar zxf cfitsio-x.y.z.tar.gz&lt;br /&gt;  host:/tmp$ cd cfistio-x.y.z&lt;br /&gt;  host:/tmp$ ./configure  # check output&lt;br /&gt;  host:/tmp$ make         # compile&lt;br /&gt;  host:/tmp$ su           # switch to root account&lt;br /&gt;  host:/tmp$ make install # install to /usr/local&lt;br /&gt;&lt;br /&gt;To install it in an another place use --prefix parameter for configure (./configure --help). To uninstall it, type (as root) make uninstall. A successful installation is indicated by presence of drvrsmem.h,fitsio.h, fitsio2.h and longnam.h in /usr/local/include and libcfitsio.a in /usr/local/lib.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-3350784494229659810?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/3350784494229659810/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=3350784494229659810' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/3350784494229659810'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/3350784494229659810'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/05/astronomical-image-processing-guide.html' title='Astronomical image processing guide (Intro)'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-2130524178898293453</id><published>2008-04-10T22:11:00.002+02:00</published><updated>2008-04-10T22:17:03.327+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Astro'/><title type='text'>The Fan on Leo I Revealed</title><content type='html'>The unidentified fan on bottom edge of the image of Leo I has really simple explanation! Rays are diffraction patterns of Regulus lying twenty arc minutes bellow Leo I. The connection has been revealed by readers of &lt;a href="http://ian.cz/detart_fr.php?id=2816"&gt;IAN.cz&lt;/a&gt;. Thank you very much! It is a very good example how Internet can help expand of a knowledge. I have no explanation how I had ignored this fact.  I inspected the position of Leo I with Xephem and I miss the critical proximity and I had in mind that the Leo I falls to the head of Leo. So don't forget look under legs when you are watching of the sky...&lt;br /&gt;&lt;br /&gt;When I play with raw images, I inspect ones by an animation. &lt;a href="http://integral.physics.muni.cz/%7Ehroch/leo.gif"&gt;The animation&lt;/a&gt; (warning 36M!) shows "a shut of the fan" near of its end so I gather from the investigation that the light pollution is due of a Earth's source. The animation shows a relative motion of the telescope (corrected by pointing), an airplane, cosmic-ray event and inner lights of our dome.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/leoInst.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/leoInst.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;A last step to full explanation of the secret has been done by &lt;a href="http://ccder.blogspot.com/"&gt;exebece&lt;/a&gt;. It take note that all stars are fainter at the end of the observation run. The instrumental magnitudes of the star UCAC2 36118678 shows rapid fall of its light fluxes. An explanation of the fainting is direct. The aperture of the telescope, controlled by the siderical motion, has been occult by our dome. A creativity of all possible mistakes by me is unbelievable...;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-2130524178898293453?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/2130524178898293453/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=2130524178898293453' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/2130524178898293453'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/2130524178898293453'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/04/fan-on-leo-i-revealed.html' title='The Fan on Leo I Revealed'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-6456108660184863695</id><published>2008-04-06T23:30:00.007+02:00</published><updated>2008-12-10T07:08:26.692+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Astrophoto'/><category scheme='http://www.blogger.com/atom/ns#' term='Photo'/><category scheme='http://www.blogger.com/atom/ns#' term='Astro'/><title type='text'>The Zodiacal Light</title><content type='html'>&lt;div style="text-align: left;"&gt;A mysterious &lt;a href="http://en.wikipedia.org/wiki/Zodiacal_light"&gt;zodiacal light&lt;/a&gt; can be sight at the season of the spring equinox. The weather and the sky prepared for us an absolutely excellent spectacle during last weekend and we was able to view the zodiacal light for the first time!&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;We made three journeys to Rojetin's airport. At first evening, we did sight some lights above west's horizont, but we did understand that we did sight the zodiacal light after that it disappeared. Also, we made some photos but with ISO 600 only so all images are underexposed and noisily. Our second journey was the most successful. Horrible clouds has dissolved and we sight clearly the zodiacal light with help of our fresh experience. Our last journey started really optimistically because the sky has no clouds for whole day. Unfortunately, an atmospheric front moved to west's horizont and it did scatter a light over the zodiacal light. We did not sight anything.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;The first image shows the zodiacal light during our second journey. The zodiacal light is a white difuse part of sky below Pleyades (rightly). A head of Taurus is at center of the image, Orion is on the left. Do you know where a white dwarf can be found? The image was acquired at 2008-03-30, 18:05 UT, EOS 30D, f/2.8 fish-eye, ISO 1600, 32 sec and processed by Ufraw+dcraw (histogram equalisation, wavelet denoising) and Gimp (unsharp, resize). The camera configuration and processing is common to all related images (&lt;a href="http://integral.physics.muni.cz/%7Ehroch/zodiac-sunday-big.png"&gt;larger&lt;/a&gt;).&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/zodiac-sunday.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/zodiac-sunday.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;Next two images recorded a passage of the ISS and Jules Verne spacecrafts during evening of 2008-03-31, 17:39 UT (the same camera configuration). I prepared two versions of the image in a large format (I believe) useful for wallpapers.&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/julesVerne+ISS.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/julesVerne+ISS.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/julesVerne+ISS-dark.png"&gt;&lt;span style="display: block;" id="formatbar_Buttons"&gt;&lt;span class="on" style="display: block;" id="formatbar_CreateLink" title="Link" onmouseover="ButtonHoverOn(this);" onmouseout="ButtonHoverOff(this);" onmouseup="" onmousedown="CheckFormatting(event);FormatbarButton('richeditorframe', this, 8);ButtonMouseDown(this);"&gt;&lt;/span&gt;&lt;/span&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/julesVerne+ISS-dark.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/zodiac-evening.gif"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="http://4.bp.blogspot.com/_UOcVemxNJNA/R_lTebd32UI/AAAAAAAAAEc/KfKaEdCzH60/s200/evening-anim.jpg" alt="" id="BLOGGER_PHOTO_ID_5186268228128069954" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;I dedicated, inspired by Paulie, the 31's evening to made &lt;a href="http://integral.physics.muni.cz/%7Ehroch/zodiac-evening.gif"&gt;a sequence of horizont-centered exposures&lt;/a&gt;. Unfortunately, clouds has been brighter than the zodiacal light.&lt;br /&gt;&lt;br /&gt;Thx to all peoples of my team: Janis, Petoš, Barča, Ushas, Maceška, Jarda, Janapka, Kočka, Fantom, Ondratik and Paulie.&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/small_ghost.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/small_ghost.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/zodiac-staff.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/zodiac-staff.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-6456108660184863695?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/6456108660184863695/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=6456108660184863695' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/6456108660184863695'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/6456108660184863695'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/04/zodiacal-light.html' title='The Zodiacal Light'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_UOcVemxNJNA/R_lTebd32UI/AAAAAAAAAEc/KfKaEdCzH60/s72-c/evening-anim.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-6701500440316475021</id><published>2008-04-04T00:11:00.006+02:00</published><updated>2008-04-06T23:29:44.693+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Astro'/><title type='text'>Color transformation</title><content type='html'>This record is just for future references.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;div style="text-align: left;"&gt;Some time ago, I got profiles of transmissivity of our new set of photometric UBRVI filters (thx to K.Navrátil). The filters are offered as a part of the official &lt;a href="http://sbig.com/products/filters.htm#UBVRI"&gt;SBIG's accessories&lt;/a&gt;. Profiles of trasmissivity of the filter set and Landolt's (&lt;a href="http://cdsarc.u-strasbg.fr/viz-bin/Cat?II/183A"&gt;Astron. J. 104, 340 (1992)&lt;/a&gt;) filter set is displayed on the image:&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/newfilters.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/newfilters.png" alt="" border="0" /&gt;&lt;/a&gt;(in &lt;a href="http://integral.physics.muni.cz/%7Ehroch/newfilters.pdf"&gt;PDF&lt;/a&gt;). All filter profiles together with various useful files are included in archive &lt;a href="http://integral.physics.muni.cz/%7Ehroch/newfilters.tar.gz"&gt;newfilters.tar.gz&lt;/a&gt;.&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;A knowledge of the profiles enable us to create a transformation between our and Landolt's filters set. The transformation is constructed only on base of the filter's transmissivity. That means that another one made as a product of a real measurement will perhaps different due to any different spectral sensitivities of others parts of our optical equipment (mainly telescope, detector and atmosphere). We are use the transformation between our set {|u&amp;gt;,|b&amp;gt;,|v&amp;gt;,|r&amp;gt;,|i&amp;gt;} and Landolt's {|U&amp;gt;,|B&amp;gt;,|V&amp;gt;,|R&amp;gt;,|I&amp;gt;} as the matrix equation&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;u|i&gt;&lt;b|i&gt;&lt;v|i&gt;&lt;r|i&gt;&lt;i|i&gt;&lt;/i|i&gt;&lt;/r|i&gt;&lt;/v|i&gt;&lt;/b|i&gt;&lt;/u|i&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt; |u&amp;gt; = U&amp;gt;&amp;lt;U|u&amp;gt; + |B&amp;gt;&amp;lt;B|u&amp;gt; + |V&amp;gt; &amp;lt;V|u&amp;gt; + |R&amp;gt;&amp;lt;R|u&amp;gt; + |I&amp;gt;&amp;lt;I|u&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; |b&amp;gt; = U&amp;gt;&amp;lt;U|b&amp;gt; + |B&amp;gt;&amp;lt;B|b&amp;gt; + |V&amp;gt; &amp;lt;V|b&amp;gt; + |R&amp;gt;&amp;lt;R|b&amp;gt; + |I&amp;gt;&amp;lt;I|b&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; |v&amp;gt; = U&amp;gt;&amp;lt;U|v&amp;gt; + |B&amp;gt;&amp;lt;B|v&amp;gt; + |V&amp;gt; &amp;lt;V|v&amp;gt; + |R&amp;gt;&amp;lt;R|v&amp;gt; + |I&amp;gt;&amp;lt;I|v&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; |r&amp;gt; = U&amp;gt;&amp;lt;U|r&amp;gt; + |B&amp;gt;&amp;lt;B|r&amp;gt; + |V&amp;gt; &amp;lt;V|r&amp;gt; + |R&amp;gt;&amp;lt;R|r&amp;gt; + |I&amp;gt;&amp;lt;I|r&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; |i&amp;gt; = U&amp;gt;&amp;lt;U|i&amp;gt; + |B&amp;gt;&amp;lt;B|i&amp;gt; + |V&amp;gt; &amp;lt;V|i&amp;gt; + |R&amp;gt;&amp;lt;R|i&amp;gt; + |I&amp;gt;&amp;lt;I|i&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;where the matrix elements are defined as area determined by the product of the transmissivity of the filters. For example&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&amp;lt;U|u&amp;gt; = ʃ U(λ)u(λ) dλ&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&amp;lt;B|u&amp;gt; = ʃ B(λ)u(λ) dλ&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;for all wavelengths λ = 0 to ∞. The results of the integration and solution of the matrix equation are in the table:&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-family:courier new;"&gt;  0.5051  -0.0131  -0.0008  -0.0001  -0.0000&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;   0.1680     2.5373     0.0233     0.0028     0.0008&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; -0.0010     0.0587     1.4170  -0.1299  -0.0381&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  0.0003  -0.0104 -0.0828     0.9252     0.0747&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; -0.0000     0.0009     0.0073 -0.0460     1.0063&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;The filter based transformation between our instrumental magnitudes m&lt;sub&gt;i&lt;/sub&gt; for i = U,B,V,R,I and Landolt's M&lt;sub&gt;i&lt;/sub&gt; is described by the term&lt;br /&gt;&lt;br /&gt;m_u - M_U =&lt;br /&gt;-2.5( log10 &amp;lt;U|u&amp;gt; +  log e (&amp;lt;B|u&amp;gt; + &amp;lt;V|u&amp;gt;+&amp;lt;R|u&amp;gt;+&amp;lt;I|u&amp;gt;)/&amp;lt;U|u&amp;gt;)&lt;br /&gt;+ &amp;lt;B|u&amp;gt;/&amp;lt;B|b&amp;gt; (M&lt;sub&gt;B&lt;/sub&gt; - M&lt;sub&gt;U&lt;/sub&gt;)&lt;br /&gt;+  &amp;lt;V|u&amp;gt;/&amp;lt;B|b&amp;gt; (M&lt;sub&gt;V&lt;/sub&gt; - M&lt;sub&gt;U&lt;/sub&gt;)&lt;br /&gt;+ &amp;lt;R|u&amp;gt;/&amp;lt;B|b&amp;gt; (M&lt;sub&gt;R&lt;/sub&gt; - M&lt;sub&gt;U&lt;/sub&gt;)&lt;br /&gt;+ &amp;lt;I|u&amp;gt;/&amp;lt;B|b&amp;gt; (M&lt;sub&gt;I&lt;/sub&gt; - M&lt;sub&gt;U&lt;/sub&gt;)&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;(analogically for other filters). The numerical results are:&lt;br /&gt;&lt;br /&gt;m&lt;sub&gt;u&lt;/sub&gt; - m&lt;sub&gt;U&lt;/sub&gt; = 0.8110 - 0.0260 (m&lt;sub&gt;B&lt;/sub&gt; - m&lt;sub&gt;U&lt;/sub&gt;) - 0.0016 (m&lt;sub&gt;V&lt;/sub&gt; - m&lt;sub&gt;U&lt;/sub&gt;) - 0.0002 (m&lt;sub&gt;R&lt;/sub&gt; - m&lt;sub&gt;U&lt;/sub&gt;)&lt;br /&gt;&lt;br /&gt;m&lt;sub&gt;b&lt;/sub&gt; - m&lt;sub&gt;B&lt;/sub&gt; = -1.203 + 0.0662 (m&lt;sub&gt;U&lt;/sub&gt; - m&lt;sub&gt;B&lt;/sub&gt;) + 0.0092 (m&lt;sub&gt;V&lt;/sub&gt; - m&lt;sub&gt;B&lt;/sub&gt;) + 0.0011 (m&lt;sub&gt;R&lt;/sub&gt; - m&lt;sub&gt;B&lt;/sub&gt;) + 0.0003 (m&lt;sub&gt;I&lt;/sub&gt; - m&lt;sub&gt;B&lt;/sub&gt;)&lt;br /&gt;&lt;br /&gt;m&lt;sub&gt;v&lt;/sub&gt; - m&lt;sub&gt;V&lt;/sub&gt; = -0.1838 - 0.0007 (m&lt;sub&gt;U&lt;/sub&gt; - m&lt;sub&gt;V&lt;/sub&gt;) + 0.0415 (m&lt;sub&gt;B&lt;/sub&gt; - m&lt;sub&gt;V&lt;/sub&gt;) - 0.0917 (m&lt;sub&gt;R&lt;/sub&gt; - m&lt;sub&gt;V&lt;/sub&gt;) - 0.0269 (m&lt;sub&gt;I&lt;/sub&gt; - m&lt;sub&gt;V&lt;/sub&gt;)&lt;br /&gt;&lt;br /&gt;m&lt;sub&gt;r&lt;/sub&gt; - m&lt;sub&gt;R&lt;/sub&gt; = 0.1338 + 0.0003 (m&lt;sub&gt;U&lt;/sub&gt; - m&lt;sub&gt;R&lt;/sub&gt;) -0.0113 (m&lt;sub&gt;B&lt;/sub&gt; - m&lt;sub&gt;R&lt;/sub&gt;) - 0.0895 (m&lt;sub&gt;V&lt;/sub&gt; - m&lt;sub&gt;R&lt;/sub&gt;) + 0.0807 (m&lt;sub&gt;I&lt;/sub&gt; - m&lt;sub&gt;R&lt;/sub&gt;)&lt;br /&gt;&lt;br /&gt;m&lt;sub&gt;i&lt;/sub&gt; - m&lt;sub&gt;I&lt;/sub&gt; = 0.0870 + 0.0009 (m&lt;sub&gt;B&lt;/sub&gt; - m&lt;sub&gt;I&lt;/sub&gt;) + 0.0073 (m&lt;sub&gt;V&lt;/sub&gt; - m&lt;sub&gt;I&lt;/sub&gt;) - 0.0457 (m&lt;sub&gt;R&lt;/sub&gt; - m&lt;sub&gt;I&lt;/sub&gt;)&lt;br /&gt;&lt;br /&gt;Detailed description of the used method and an application to our old&lt;br /&gt;filters can be found in Janis's &lt;a href="http://is.muni.cz/th/106183/prif_b/jilkovabp.pdf"&gt;bachelor work&lt;/a&gt; (in Czech).&lt;br /&gt;&lt;br /&gt;(The old school typhographics rules! A "modern" graphics technologies doesn't supports a little bit complicated typesetting as &lt;a href="http://integral.physics.muni.cz/%7Ehroch/des.pdf"&gt;(La)TeX&lt;/a&gt; did twenty years ago.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-6701500440316475021?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/6701500440316475021/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=6701500440316475021' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/6701500440316475021'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/6701500440316475021'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/04/color-transformation.html' title='Color transformation'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-4668033870865227986</id><published>2008-03-17T01:20:00.003+01:00</published><updated>2008-03-17T18:27:39.955+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Astro'/><title type='text'>Spectrum from Heavens</title><content type='html'>Hrošátka (group of my students) experimented with our new &lt;a href="http://www.sbig.com/sbwhtmls/spectrometer2.htm"&gt;SGS spectrograph&lt;/a&gt; on last Thursday. It was of our first real contact with the device so any basic operation was hardly for us (arranging, focusing, pointing, exposing). We acquired a few spectra of some bright objects to test of our equipment. I see, we will need a lot of fine tuning and a lot of experiences in observation and data processing to get a day-to-day usable spectral apparatus. Also, I meet again with CCDops utility. It works nicely under Mac OS X, but it is still hardly to use.&lt;br /&gt;&lt;br /&gt;All the spectra has been acquired on evening 2008-03-13 by SGS spectrograph in a low-dispersion configuration and mounted on Celestron 14" with ST-8 XME camera as a detector. All images has been processed by the same way as previous ones. The wavelength calibration is only preliminary.&lt;br /&gt;&lt;br /&gt;A first object to acquire was the Moon. It is bright and easy to point. Moreover, the spectrum of the Moon is practically identical to the Sun's spectrum. The resultant spectrum shows a great peak of a continuum radiation modulated by some absorptions lines. The great peak practically visualise the spectral sensitivity of our CCD camera. There are only strong lines due to a non-perfect focusing.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/sp-moon.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/sp-moon.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;As second object, we acquired Sirius. Sirius is a hot star with spectral classification A0. The spectrum shows practically only strong hydrogen lines of the Balmer's series.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/sp-sirius.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/sp-sirius.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;A little bit fainter star was Procyon of a spectral class F5. The hydrogen lines are suppressed and only marginal features are visible. I selected this spectrum as an illustration of an image of a spectrum on the CCD chip.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/sp-procyon.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/sp-procyon.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/procyon-sp.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/procyon-sp.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;A high pressure sodium streetlamp has been tried as a possible calibration source. The spectrum is quite different due to a non-thermal mechanism of lighting. Unfortunately, the spectrum is included in all other specters as emission lines. The sky's spectrum is also practically identical. Note, that spectra by a Ch. Buil shows some &lt;a href="http://www.astrosurf.com/%7Ebuil/us/spe2/hresol4.htm"&gt;differences&lt;/a&gt;.&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/sp-sodium.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/sp-sodium.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Thx to my students Maceška, Kočka and Peťoš for a great help. Especially, Maceška bravery controlled of our notebook when she had a broken leg.&lt;br /&gt;&lt;br /&gt;Update: Raw images of spectra are available on &lt;a href="http://physics.muni.cz/%7Epetos/galerie/index.html"&gt;Petoš's blog&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-4668033870865227986?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/4668033870865227986/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=4668033870865227986' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/4668033870865227986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/4668033870865227986'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/03/spectrum-from-heavens.html' title='Spectrum from Heavens'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-4191176529987469664</id><published>2008-03-16T12:26:00.003+01:00</published><updated>2008-03-16T12:43:56.934+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Astro'/><title type='text'>Leo I</title><content type='html'>One of twelve known companions of our Galaxy (Milky way) is a dwarf galaxy Leo I. The object is projected to a head of Leo constellation with look like a faint star cluster of an approximately dimension of five arcmins and with its total visual magnitude about ten. Leo I is 250 kpc far from us (Milky way has 30-40 kpc in diameter) so its linear dimension is quarter or half of kiloparsec(!). The estimated number of stars (with sun's mass) is 10&lt;sup&gt;9&lt;/sup&gt; (Milky way contains about 10&lt;sup&gt;11&lt;/sup&gt; of stars). The galaxies like Leo I appertains to a class of &lt;a href="http://www.astro.uu.se/%7Ens/dsph.html"&gt;dwarf spheroidal galaxies (dSph)&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;A relative proximity of this kind of galaxies enables us to study of various details not accessible for remote ones. Especially, it is possible to resolve of individual stars and to measure of its magnitudes and spectra. The measurements gives direct values of a dispersion velocity (The dispersion velocity can be determined by estimation of a width of a spectral line raised as a mean of velocity differences of individual stars. The value is greater for faster stars and doesn't depends on a relative velocity of a galaxy's center of gravity.). Velocity measurements are a tool to mapping of the gravitational potential. If any outer fields are negligible, the potential is formed by a distribution of stars. It is worse that the distribution of stars is formed by potential. Fortunately, the simultaneous fitting of both quantities gives right results. But there is problem with observed discrepancy between number of stars (the projected surface luminosity) at a some radius from a core and the dispersion velocity at the same place. That is widely known problem of "dark matter" because the velocity is greater than we are expecting from observations of number of stars with an usual luminosity.&lt;br /&gt;&lt;br /&gt;Only for my interest, I made an observation of Leo I on MonteBoo Observatory. A resultant image has been acquired by composition of a series of images at 2008-03-06 between 19:51 and 22:15 UT (totally 5160 sec) by our 0.6m telescope at R band.  The Leo I itself is situated to the center of the image  as a faint stellar cluster (compare with image of &lt;a href="http://apod.nasa.gov/apod/ap960519.html"&gt;D. Malin on APOD&lt;/a&gt;). A graph by a paper &lt;a href="http://adsabs.harvard.edu/abs/2007ApJ...667L..53W"&gt;Walker et al.(2007)&lt;/a&gt; (it contains recent measurements of the dispersion velocities for seven dSphs) is placed to the image. The original graph is scaled to match of the position and the angular scale of Leo I. The solid line fits the measured velocity dispersions in km/s. The horizontal axis represents a distance from its center in parsec (the range is: 0 to 2kpc). The hashed line is a King's model for the luminosity which roughly corresponds to density of stars in the image. For better description, read the original paper. The discrepancy between the luminosity and the velocity is clearly visible. The velocity is a constant at radius where the density of stars is relative low. Note, that potential (velocity) falls rapidly when no matter is presented.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/LeoI.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/LeoI.png" alt="" border="0" /&gt;&lt;/a&gt;Moreover, the image exhibits a lot of defects over Leo I itself. "Stairs" at edge of the image together with white corners demonstrates a pointing mode of the telescope during a long time series.  The effect is intensified by correcting of the image for its median. The median also suppresses a light pollution due to an unidentified near light source. The pollution creates a fan of rays at bottom of image.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-4191176529987469664?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/4191176529987469664/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=4191176529987469664' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/4191176529987469664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/4191176529987469664'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/03/leo-i.html' title='Leo I'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-8718596502769170853</id><published>2008-03-13T01:07:00.004+01:00</published><updated>2008-03-13T01:40:42.791+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Photo'/><title type='text'>Kotvrdovice's airport</title><content type='html'>My Sunday's afternoon trip to &lt;a href="http://www.moravskykras.net/en/moravian-karst.html"&gt;Moravian Karst&lt;/a&gt; finished on &lt;a href="http://www.mapy.cz/#x=138554560@y=133418368@z=14@mm=FP@sa=s@st=s@ssq=kotvrdovice@sss=1@ssp=124900261_127256449_146199461_145639297"&gt;Kotvrdovice's airport&lt;/a&gt;. The airport is covered by  grass plot except a small part of concrete and perhaps it's an airport for sports planes. A horizon is near of ideal but the concrete surface is in proximity of Kotvrdovice (and public lighting) itself. The airport is about two kilometers from &lt;a href="http://en.wikipedia.org/wiki/Transmitter_Koj%C3%A1l"&gt;Kojál transmiter&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/letiste_kotvrdovice.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/letiste_kotvrdovice.jpg" alt="" border="0" /&gt;&lt;/a&gt;Kotvrdovice's  airport facility and runway.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/kotvrdovice_kojal.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/kotvrdovice_kojal.jpg" alt="" border="0" /&gt;&lt;/a&gt;View to Kojál.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-8718596502769170853?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/8718596502769170853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=8718596502769170853' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/8718596502769170853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/8718596502769170853'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/03/kotvrdovices-airport.html' title='Kotvrdovice&apos;s airport'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-719024174229203541</id><published>2008-03-09T23:39:00.004+01:00</published><updated>2008-03-09T23:59:40.479+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Astro'/><title type='text'>Archive of our observations</title><content type='html'>Four years ago, I wrote a really simple database engine for our observations. The data are indexed one per day and stored in a database (sqlite, more sophisticated engines need a server) and the served via at the most simple web interface. This philosophy satisfy all our needs so there is no reason for a change.&lt;br /&gt;&lt;br /&gt;Now,  I'm moving our old software to a new computer so I made a small improvement to database by adding of a new Reference column to front (year) page. It provide a possibility to back-linking of some results to the original data.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://monteboo.sci.muni.cz/"&gt;The data archive&lt;/a&gt; has a link in my links.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-719024174229203541?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/719024174229203541/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=719024174229203541' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/719024174229203541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/719024174229203541'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/03/archive-of-our-observations.html' title='Archive of our observations'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-4102957068067140462</id><published>2008-02-25T00:09:00.004+01:00</published><updated>2008-02-25T20:33:54.182+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Photo'/><title type='text'>Eclipse of the Moon</title><content type='html'>Last week has been dominated by eclipse of the Moon. We had a trip for possible locations (with a romantic ruins on the horizont) week ago. Our weather condition was really poor during eclipse time so the phase of totality has been obscured by cloud completely. There are a few pictures and one animation to illustrate the times.&lt;br /&gt;&lt;br /&gt;The trip is also documented on pages of &lt;a href="http://www.janap.net/galerie/83_lednice/"&gt;Janapka&lt;/a&gt; and on &lt;a href="http://galaxytea.blogspot.com/"&gt;Galaxy tea&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/apollo-lake.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/apollo-lake.jpg" alt="" border="0" /&gt;&lt;/a&gt;A lake under &lt;a href="http://www.panoramio.com/photo/3886345"&gt;Apollon's temple&lt;/a&gt; at winter. Apollon's temple is a part of &lt;a href="http://www.lednicko-valticky-areal.cz/"&gt;Lednicko-Valtický areál&lt;/a&gt;.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/apollo-lake-footprint.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/apollo-lake-footprint.jpg" alt="" border="0" /&gt;&lt;/a&gt;A detail.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/apollons-view.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/apollons-view.jpg" alt="" border="0" /&gt;&lt;/a&gt;A lake below Apollon's temple. &lt;a href="http://www.palava.ochranaprirody.cz/index.php?lang=en"&gt;Pálava&lt;/a&gt; on horizont.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/fifteen.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/fifteen.jpg" alt="" border="0" /&gt;&lt;/a&gt;15cm telescope of &lt;a href="http://www.hvezdarna.cz/enindex.php3"&gt;HaP MK Brno&lt;/a&gt; during eclipse. Thx Peťoš.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://integral.physics.muni.cz/%7Ehroch/halo.avi"&gt;A link&lt;/a&gt; to animation of clouds and halo before eclipse.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-4102957068067140462?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/4102957068067140462/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=4102957068067140462' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/4102957068067140462'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/4102957068067140462'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/02/eclipse-of-moon.html' title='Eclipse of the Moon'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-7097745125380745882</id><published>2008-02-22T22:59:00.004+01:00</published><updated>2008-02-23T01:42:13.987+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Astro'/><title type='text'>First spectra by SGS</title><content type='html'>Last year, we purchased the &lt;a href="http://www.sbig.com/sbwhtmls/spectrometer2.htm"&gt;SGS spectrograph&lt;/a&gt;. I spend today's afternoon by &lt;span class="illustration"&gt;acquainting myself with the device. &lt;/span&gt; First images looks really amazing. All ones has been acquired in my office with a scattered radiation of a &lt;a href="http://en.wikipedia.org/wiki/Fluorescent_lamp"&gt;fluorescent lamp&lt;/a&gt; as a light source with our new ST-8 XME camera as a detector. Compare my findings with its &lt;a href="http://en.wikipedia.org/wiki/Image:Fluorescent_lighting_spectrum_peaks_labelled.gif"&gt;spectrum&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/firstspec-low.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/firstspec-low.png" alt="" border="0" /&gt;&lt;/a&gt;An image of a spectrum of fluorescent lamp in low-resolution mode of SGS. The wavelength interval is about 300 - 900 nm. Ultraviolet is on the left, red is on the right.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/firstspec-high.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/firstspec-high.png" alt="" border="0" /&gt;&lt;/a&gt;An image acquired in high-resolution mode. Wavelengths in interval 490 - 650 nm. The orientation is the same as in previous case. The image covers approximatelly central quarter of the low-resolution spectra (try find of Tb - Eu series between two strong lines).&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/spcolor.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/spcolor.png" alt="" border="0" /&gt;&lt;/a&gt;The image of the same lamp acquired by a digital camera (Canon EOS 30D) and a simple CD spectrograph for comparison. You can simply identify global spectral features. The strong red line corresponds to the strong line on the right on high-res image of spectra. The green line is the strong line on the left of the same image. The lighter horiznotal line has been used for construction of a first graph on image below.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/spec-comp.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/spec-comp.png" alt="" border="0" /&gt;&lt;/a&gt;A calibrated graphs of spectra of the images above (click for original size). Top to bottom: spectrum by CD's  "grating", low-resolution of SGS, high-resolution of SGS. The graphs exhibits different spectral resolution of all "instruments" (look on series of Tb and Eu at 570-600 nm) and different spectral sensitivity (color graphs, line at 550nm).&lt;br /&gt;&lt;br /&gt;Once, the spectra looks really fine, I'v worries about simple use of our equipment. The CCD can be connected to spectrograph only without filter wheel (due to focusing range) but the removing of the wheel is really complicated and delicate operation.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-7097745125380745882?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/7097745125380745882/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=7097745125380745882' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/7097745125380745882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/7097745125380745882'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/02/first-spectra-by-sgs.html' title='First spectra by SGS'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-4238034753661937751</id><published>2008-02-14T19:32:00.005+01:00</published><updated>2008-02-14T21:35:01.528+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Astro'/><title type='text'>Rojetín - preliminary 21 mag/"</title><content type='html'>Today, I processed zenith's images of night sky taken during &lt;a href="http://monteboo.blogspot.com/2008/02/rojetns-night-sky.html"&gt;Saturday's trip to Rojetín&lt;/a&gt;. Original RAWs has been converted to FITSes by &lt;a href="http://monteboo.blogspot.com/2008/01/rawtran.html"&gt;rawtran&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Dark frames has been processed by mdark utility from &lt;a href="http://munipack.astronomy.cz/"&gt;Munipack&lt;/a&gt;. My fast statistical analysis of a noise of the dark images shows pretty Gaussian histogram with center on level 380 and thickness about 7-8. The noise  looks little bit  greater then  noise of our CCD  camera at the same temperature (approx. 0°C). The dark frame reveals a smooth electro-luminescence at a corner probably due to a fast transfer of electrons to an A/D converter.&lt;br /&gt;&lt;br /&gt;The converted light images has been corrected by the darks. The application claimed a small modification of rawtran because  our camera  detects  a  gravity direction and  it automatically rotates images to a portrait orientation and rawtran needs rotate it back (if not, the size of lights and darks are different).&lt;br /&gt;&lt;br /&gt;A combination of our Canon 30D camera and our 17mm Canon's fish-eye gives us a scale about 21 pix/°, eg. 2.9' per pixel near center of projection. I determined the value by use of two stars (therefore it is preliminary only!). A precise analysis will need construction of a model of the projection.&lt;br /&gt;&lt;br /&gt;All light images has been processed by muniphot by a standard way (determination of a mean background, finding of stars and an aperture photometry). To my surprise, it works without any troubles. The number of found stars for 3-σ is almost 13 000 and for 1-σ over 50 thousands (!). The limiting magnitude of stars (1-σ) has been determined approximately on 10 magnitudes for 30sec in wide-band of sensitivity of our camera. The photometrical calibration (determination of a zero level for instrumental magnitudes by using of known stars) shows a relative great scatter for stars in the interval 2-7 mag. The position on the chip (near center or border) along with position in Milky way doesn't matter. Opposite with this, the color of stars is important and red stars are unusable for it. It may be due to a mist (or another reason).&lt;br /&gt;&lt;br /&gt;My determination of sky brightness on place non-confused by Milky way but near of zenith gives value of 21.0 magnitude per square arcsecond with&lt;span style="text-decoration: underline;"&gt;&lt;/span&gt; uncertainlity not better than 0.5. So the place satisfy of hard requirements for our observations.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-4238034753661937751?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/4238034753661937751/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=4238034753661937751' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/4238034753661937751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/4238034753661937751'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/02/rojetn-preliminary-21-mag.html' title='Rojetín - preliminary 21 mag/&quot;'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-8244421378481292698</id><published>2008-02-13T16:14:00.005+01:00</published><updated>2008-02-14T11:20:47.171+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Astrophoto'/><title type='text'>ISS+Atlantis</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/iss-hap.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/iss-hap.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Another shot of ISS and Atlantis taken 11. feb. 2008, Canon EOS 30D, 30sec., fish-eye at the observation roof of &lt;a href="http://www.hvezdarna.cz/"&gt;HaP MK Brno&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-8244421378481292698?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/8244421378481292698/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=8244421378481292698' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/8244421378481292698'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/8244421378481292698'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/02/isscolumbus.html' title='ISS+Atlantis'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-8755544904363594017</id><published>2008-02-12T01:09:00.001+01:00</published><updated>2008-02-14T11:24:46.230+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Astrophoto'/><title type='text'>Rojetín's night sky</title><content type='html'>I found the "airport" &lt;a href="http://monteboo.blogspot.com/2008/01/i-seeking-for-deep-darkness.html"&gt;month ago&lt;/a&gt;. Yesterday, I did a first night's trip to the location. The drive troughout darkness and a relative sparse settled landscape is a amazing adventure. Any ambient scenery is pretty unrecognizable. The darkness on the airport is absolute. Only a few far lights is directly  visible. The airport is completly abandoned so I didn't meet any car during my about hour stay on the place.&lt;br /&gt;&lt;br /&gt;I had only our Canon 30D and our fish-eye (no a tripoid or no a mount). All images has been taken with a static 30sec exposure and with the camera positioned by anything possible (a hinking map, a car atlas). An objective clone has been 3.2 (full aperture), ISO 1600. An atmospheric condition was relative good with a light mist and a nice crescent moon.&lt;br /&gt;&lt;br /&gt;I'm publishing a few preview images. All images are converted from RAW format as a color pictures to better illustrate a light pollution. No corection on dark frame has been done. The place is practically the same as it was at last visit.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/airport-north-night.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/airport-north-night.png" alt="" border="0" /&gt;&lt;/a&gt;A view to noth-east direction as a equivalent to &lt;a href="http://integral.physics.muni.cz/%7Ehroch/airport-north.jpg"&gt;day's view&lt;/a&gt;. There are lights from Rojetín and Ždárec. Bright stars are part of Big dippper (center), Ursa Minor (top left) and Leo (right).&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/airplane-ori.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/airplane-ori.png" alt="" border="0" /&gt;&lt;/a&gt;A view to south-west direction as a equivalent to &lt;a href="http://integral.physics.muni.cz/%7Ehroch/airport-south.jpg"&gt;day's view&lt;/a&gt;. The airport facilty is at right, we can recognize connstelation Orion and Canes Major. Light domes near horizont comes from Březí and Borovník. You can identify an airplane at large resolution picture.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/moonset_west.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/moonset_west.jpg" alt="" border="0" /&gt;&lt;/a&gt;Crescent moon.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/upwardbrno.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/upwardbrno.png" alt="" border="0" /&gt;&lt;/a&gt;Light domes at direction to Brno. A head of Leo on the left, Sirius on the right. The large format of the image reveales Preasepe.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/onwest.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/onwest.png" alt="" border="0" /&gt;&lt;/a&gt;The west's view. Cassiopea on top, Deneb near horizont. M31, Lacerta.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/mars.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/mars.png" alt="" border="0" /&gt;&lt;/a&gt;Mars and "the gold gate of ecliptic".&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/near-zenit.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/near-zenit.png" alt="" border="0" /&gt;&lt;/a&gt;Zenit. A lot of object is vissible. The comet Holmes is near Algol.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/zdarec-church.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/zdarec-church.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/zdarec-church-oncar.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/zdarec-church-oncar.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;A church at Ždárec. One of main light polution sources on north direction.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-8755544904363594017?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/8755544904363594017/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=8755544904363594017' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/8755544904363594017'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/8755544904363594017'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/02/rojetns-night-sky.html' title='Rojetín&apos;s night sky'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-1515347154847674384</id><published>2008-02-11T20:38:00.002+01:00</published><updated>2008-02-13T17:45:36.708+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Misc'/><title type='text'>Expedition Moldavite</title><content type='html'>A &lt;a href="http://en.wikipedia.org/wiki/Moldavite"&gt;moldavite&lt;/a&gt; (vltavín in Czech by river Vltava) is a stone which has been created during a meteorite impact. Main centers of deposits of moldavites in Bohemia are near České Budějovice (yes, Budweiser's origin) and in Moravia near Třebíč town. I (and a group of geologist) had a visit on Moravian's location on last Saturday. We has found nothing but the trip has been really nice... Stones are like a dark glass and they are usually found on ploughed fields.&lt;br /&gt;&lt;br /&gt;Our first locality has been situated near border of Třebíč. &lt;!-- on coordinates: &lt;a href="http://www.mapy.cz/#x=136512768@y=132833024@z=13@mm=ZP@sa=r@st=sr@ssq=brno@sss=1@ssp=124900261_127272833_146199461_145639297@srq=route%28short,toll%29:obec%20Brno%3Eobec%20T%C5%99eb%C3%AD%C4%8D,%20okres%20T%C5%99eb%C3%AD%C4%8D"&gt;49°12'42.867"N, 15°54'34.099"E&lt;/a&gt;.--&gt; &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/trebic-field.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/trebic-field.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The second locality has been below Sádek castle near of Kojetice village. &lt;!--(&lt;a href="http://www.mapy.cz/#x=136291136@y=132630848@z=14@mm=ZP@sa=r@st=sr@ssq=brno@sss=1@ssp=124900261_127272833_146199461_145639297@srq=route%28short,toll%29:obec%20Brno%3Eobec%20T%C5%99eb%C3%AD%C4%8D,%20okres%20T%C5%99eb%C3%AD%C4%8D"&gt;49°9'9.712"N, 15°48'38.18"E&lt;/a&gt;).--&gt; There is a vineyard around center of the picture.&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/sadek_field.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/sadek_field.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The third and last stop has been at a small wood near Dolní Lažany willage. &lt;!--(&lt;a href="http://www.mapy.cz/#x=136345984@y=132452864@z=13@mm=ZP@sa=r@st=sr@ssq=brno@sss=1@ssp=124900261_127272833_146199461_145639297@srq=route%28short,toll%29:obec%20Brno%3Eobec%20T%C5%99eb%C3%AD%C4%8D,%20okres%20T%C5%99eb%C3%AD%C4%8"&gt;49°6'9.353"N, 15°50'1.8"E&lt;/a&gt;).--&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/dolni_lazany_field.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/dolni_lazany_field.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-1515347154847674384?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/1515347154847674384/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=1515347154847674384' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/1515347154847674384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/1515347154847674384'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/02/expedition-moldavite.html' title='Expedition Moldavite'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-5153887507863113180</id><published>2008-01-19T19:38:00.000+01:00</published><updated>2008-01-19T23:37:06.975+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Photo'/><title type='text'>I seeking for a deep darkness...</title><content type='html'>I had a trip with aim to seek for an ideal place for our observations. &lt;a href="http://www.astro.zcu.cz/obr.php?pid=125"&gt;The map of light pollution of Czech Republic&lt;/a&gt; is revealing a possible region near Tišnov town. A terrain is hilly around 500m above sea. Majority of roads  is  poor surfaced and a parking place (or any car's available place)  is impossible to be found. Only one acceptable (and near of my ideal) is an "airport" (eg. a wider road) near small village &lt;a href="http://www.rojetin.euweb.cz/"&gt;Rojetín&lt;/a&gt;.  It is probably an emergency or an agro airport without any facility. Rojetín is  about 20km (twenty  minutes) far from Tišnov. I taken shots of the "runway".&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/airport-north.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/airport-north.jpg" alt="" border="0" /&gt;&lt;/a&gt;(to &lt;a href="http://integral.physics.muni.cz/%7Ehroch/airport-north.jpg"&gt;north-east&lt;/a&gt;)&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://integral.physics.muni.cz/%7Ehroch/airport-south.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://integral.physics.muni.cz/%7Ehroch/airport-south.jpg" alt="" border="0" /&gt;&lt;/a&gt;(to &lt;a href="http://integral.physics.muni.cz/%7Ehroch/airport-south.jpg"&gt;south-west&lt;/a&gt;)&lt;br /&gt;&lt;/div&gt;Both pictures has been taken at coordinates &lt;a href="http://www.mapy.cz/#x=137295744@y=133372368@z=16@mm=FP@sa=s@st=s@ssq=rojetin@sss=1@ssp=137270400_133352128_137311232_133387456"&gt;49°21'25.638"N, 16°14'46.732"E&lt;/a&gt;.  In my opinion, the place may satisfy of our requirements for a perfect horizont and ideal light conditions. A night's trip to the airport will be resolving....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-5153887507863113180?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/5153887507863113180/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=5153887507863113180' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/5153887507863113180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/5153887507863113180'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/01/i-seeking-for-deep-darkness.html' title='I seeking for a deep darkness...'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-3840305981338425312</id><published>2008-01-08T23:50:00.001+01:00</published><updated>2011-07-28T23:31:52.166+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Astrophoto'/><category scheme='http://www.blogger.com/atom/ns#' term='Rawtran'/><title type='text'>Rawtran</title><content type='html'>A digital photography is really amazing field of a new technology. I discovered another dimension of one during winter's holiday while I'm play with analyzing of pictures by a standard fotometrical way. I get view to a complicated world of a calibration of that devices. My first touch has been of a most lower level: a conversion of RAW images produced by a digital camera to my favorite FITS format.&lt;br /&gt;&lt;br /&gt;A great part of known  RAW formats should be recognized and decoded by famous utility &lt;a href="http://cybercom.net/~dcoffin/dcraw/"&gt;dcraw&lt;/a&gt;. It satisfy most of my requirements but one creates no FITSes. Dave's recommended way how to transform dcraw's output PGM files to FITS is not ideal. The issue is a netpbm toolkit with a "non-astronomer's" conversion.&lt;br /&gt;&lt;br /&gt;My response for the frustration is a small utility Rawran. It wraps of the dcraw, get a PGM data file via a pipe and rearrange the data in fashion:&lt;ul&gt;&lt;li&gt;a four RGGB pixels to intensity as a weighted sum&lt;a href="http://2.bp.blogspot.com/_UOcVemxNJNA/R4P-pxiJk-I/AAAAAAAAADQ/2KGHjJXQtjM/s1600-h/holmes1.png" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_UOcVemxNJNA/R4P-pxiJk-I/AAAAAAAAADQ/2KGHjJXQtjM/s400/holmes1.png" alt="" id="BLOGGER_PHOTO_ID_5153242392266642402" border="0" /&gt;&lt;/a&gt; &lt;/li&gt;&lt;li&gt;one to one data pixels&lt;a href="http://4.bp.blogspot.com/_UOcVemxNJNA/R4P_KRiJlAI/AAAAAAAAADg/F75znnXA6I0/s1600-h/holmes2.png" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_UOcVemxNJNA/R4P_KRiJlAI/AAAAAAAAADg/F75znnXA6I0/s400/holmes2.png" alt="" id="BLOGGER_PHOTO_ID_5153242950612390914" border="0" /&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;a three separate bands in one file&lt;a href="http://4.bp.blogspot.com/_UOcVemxNJNA/R4P_9RiJlDI/AAAAAAAAAD4/-f6BpOKGW0s/s1600-h/holmes_r.png" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_UOcVemxNJNA/R4P_9RiJlDI/AAAAAAAAAD4/-f6BpOKGW0s/s400/holmes_r.png" alt="" id="BLOGGER_PHOTO_ID_5153243826785719346" border="0" /&gt;&lt;/a&gt;&lt;a href="http://2.bp.blogspot.com/_UOcVemxNJNA/R4QALhiJlEI/AAAAAAAAAEA/g7eUgNKnqaA/s1600-h/holmes_g.png" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_UOcVemxNJNA/R4QALhiJlEI/AAAAAAAAAEA/g7eUgNKnqaA/s400/holmes_g.png" alt="" id="BLOGGER_PHOTO_ID_5153244071598855234" border="0" /&gt;&lt;/a&gt;&lt;a href="http://2.bp.blogspot.com/_UOcVemxNJNA/R4QAWhiJlFI/AAAAAAAAAEI/nq-Rxk5-do4/s1600-h/holmes_b.png" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_UOcVemxNJNA/R4QAWhiJlFI/AAAAAAAAAEI/nq-Rxk5-do4/s400/holmes_b.png" alt="" id="BLOGGER_PHOTO_ID_5153244260577416274" border="0" /&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;The utility is not too mature and it can be found in &lt;a href="ftp://integral.physics.muni.cz/pub/rawtran"&gt;rawtran&lt;/a&gt; directory along my other projects.&lt;br /&gt;&lt;br /&gt;Some examples of converted images by the first method can be found as FITS files (each about 6M): &lt;a href="http://integral.physics.muni.cz/~hroch/holmes.fits"&gt;holmes.fits&lt;/a&gt; (zoomed parts of the images has been used in examples above), &lt;a href="http://integral.physics.muni.cz/~hroch/pleiades.fits"&gt;pleiades.fits&lt;/a&gt;, &lt;a href="http://integral.physics.muni.cz/~hroch/deeep_macocha.fits"&gt;deeep_macocha.fits&lt;/a&gt; (a png version of the image has been published some time ago).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-3840305981338425312?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/3840305981338425312/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=3840305981338425312' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/3840305981338425312'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/3840305981338425312'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/01/rawtran.html' title='Rawtran'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_UOcVemxNJNA/R4P-pxiJk-I/AAAAAAAAADQ/2KGHjJXQtjM/s72-c/holmes1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-6995652651632427355</id><published>2008-01-04T20:41:00.000+01:00</published><updated>2008-01-04T21:55:54.107+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Nightview'/><title type='text'>New SBIG drivers</title><content type='html'>&lt;p&gt;Thanks to &lt;a href="http://pleione.asu.cas.cz/%7Esoldan/software/software.html"&gt;J.Soldán&lt;/a&gt;, SBIG's new version of camera drivers has been updated month ago. An update of Nightview associated to the new drivers has been smooth. Today's tests of our (faculty's) ST-8 new camera (first light!)  discovered a few unimportant bugs in a daemon's start by udev scripts (they would be corrected at now). The daemon (it directly talking to camera via updated drivers)  seems to be a bugfix free. The drivers itself looks perfectly. All known bugfixes (a link to libusb and cwf typo in headers) has been corrected.  It works on 64-bit systems!&lt;br /&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt;I'd prepared an install_sbig_firmware.sh script to automatically install (fetch it, unpack, copy to appropriate place) of the drivers. To install Nightview on clear computer, download of latest nightview-????-??-??.tar.gz, unpack it, go to libsbig directory (if you can install camera driver) an run the script. Everything is prepared to run successfully a configure. There is a simplefirst-time installation way:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;wget ftp://integral.physics.muni.cz/pub/nightview/nightview_2008-01-04.tar.gz&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;tar zxf nightview_2008-01-04.tar.gz&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;cd nightview/libsbig&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&lt;br /&gt;./install_sbig_firmware.sh&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&lt;br /&gt;cd ..&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&lt;br /&gt;./configure&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&lt;br /&gt;make&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&lt;br /&gt;make install&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;The presented commands will install all needs. A switch-on of a power button will start firmware loading sequence and the camera daemon. Of course, the installation of drivers will necessary only for first time. The drivers can be smoothly uninstalled by a script &lt;tt&gt;uninstall_sbig_firmware.sh&lt;/tt&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-6995652651632427355?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/6995652651632427355/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=6995652651632427355' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/6995652651632427355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/6995652651632427355'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2008/01/new-sbig-drivers.html' title='New SBIG drivers'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-5674852396850688349</id><published>2007-12-12T22:21:00.002+01:00</published><updated>2011-03-04T22:29:27.982+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='barnard'/><category scheme='http://www.blogger.com/atom/ns#' term='Astro'/><title type='text'>Barnard in time</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_UOcVemxNJNA/R2Ba3XZOmcI/AAAAAAAAAC4/7xIc445_AV4/s1600-h/barn-film.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_UOcVemxNJNA/R2Ba3XZOmcI/AAAAAAAAAC4/7xIc445_AV4/s400/barn-film.png" alt="" id="BLOGGER_PHOTO_ID_5143210681676241346" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;All stars are supposed to be static in time. No change, no motion, no emotions. But, it is very surprising that a few stars has an abnormally high proper motion. &lt;a href="http://www.rssd.esa.int/index.php?project=HIPPARCOS&amp;amp;page=areas"&gt;Hipparcos's measurements&lt;/a&gt; has revealed of nine fast stars with proper motion over few arc-seconds per year. The fastest known star is &lt;a href="http://www.solstation.com/stars/barnards.htm"&gt;Barnard's star.&lt;/a&gt; My students of Astronomical practicum has been observed of the field of Barnard's star for two years. Results are just amazing.&lt;br /&gt;&lt;br /&gt;Our determination of the proper motion by precise astrometry of  five to ten stars per exposure (total 15 - 20 exposures per observation run) gives values:&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;R.A.: -0.684 arcsec/year,   Decl.: 11.660 arccsec/year.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;They has been determined as difference of two robust arithmetical means of the star coordinates at Autumn of years 2006 and 2007. UCAC2 was used as an astrometrical catalogue. The values are in really good  agreement with values acquired by Hipparcos: -0.79871, 10.33777. The determination of measure errors gives us uncertainty of order of tenths of arcsec. The differences both techniques are a little bit greater. Perhaps, the discrepancy comes due to apparent non-linear motion of Barnard's star and it is illustrated on Hipparcos pages. The periodic differences shows manifestation of Earth's revolutinons around Sun - parallax.&lt;br /&gt;&lt;br /&gt;A better visual demonstration of Barnard's star motion exhibits a &lt;a href="http://integral.physics.muni.cz/~hroch/barn.gif"&gt;four-frame animation&lt;/a&gt; of observations acquired at MonteBoo observatory over the last years. A single images which has been arranged to  film frames are displayed at header of this post. The linked full frame animation shows change of the position of Barnard's star and (of course) some changes in health of our CCD camera. The first image (2001) presents perfect image while the next images (2006) shows two bad-reductable hot columns. The camera has been aged ten or eleven at time of exposure. The last image taken on HaP MK shows absolutely different field orientation and size. All images has been recomputed with respect to first image by rotation, shift and scaling by bi-cubic interpolation (kombine routine from Munipack).&lt;br /&gt;&lt;br /&gt;The side product of our astrometry is determination of the focal length of the 40cm telescope of HaP MK Brno to value: 1.7122 +- 0.0007 m.&lt;br /&gt;&lt;br /&gt;An another way to illustrate of the Barnard's motion is composition of all images to single frame. In my opinion, this is  the most nicer way to present of a proper motion. &lt;a href="http://integral.physics.muni.cz/~hroch/barn_all.png"&gt;The original size version.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_UOcVemxNJNA/R2By1nZOmdI/AAAAAAAAADA/vJi0dwdUBfE/s1600-h/barn_all_small.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_UOcVemxNJNA/R2By1nZOmdI/AAAAAAAAADA/vJi0dwdUBfE/s400/barn_all_small.png" alt="" id="BLOGGER_PHOTO_ID_5143237039890536914" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-5674852396850688349?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/5674852396850688349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=5674852396850688349' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/5674852396850688349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/5674852396850688349'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2007/12/barnard-in-time.html' title='Barnard in time'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_UOcVemxNJNA/R2Ba3XZOmcI/AAAAAAAAAC4/7xIc445_AV4/s72-c/barn-film.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-3429057166109956860</id><published>2007-12-09T00:46:00.000+01:00</published><updated>2008-12-10T07:08:28.294+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Munipack'/><title type='text'>Visualisation of found stars</title><content type='html'>A long time, munipack's user calls for better visualisation of data processing. Their flustration probably leaded to creation of clones like CMunipack or some others "data visualisation" utilities. Today, I had uploaded to CVS a small script as a wrapper around &lt;a href="http://hea-www.harvard.edu/RD/ds9/"&gt;ds9.&lt;/a&gt; The script generate region file (with a basic overlay graphics elements) for ds9 and invoke one with this file. It plots circles with centres at founded stars (included in .COO file). The circle radius is determined by mphot.opt's  parameter fwhm of star or it is defaulty set to 3.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_UOcVemxNJNA/R1stSHZOmbI/AAAAAAAAACw/7djby1OIxFI/s1600-h/Screenshot-SAOImage+ds9.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_UOcVemxNJNA/R1stSHZOmbI/AAAAAAAAACw/7djby1OIxFI/s320/Screenshot-SAOImage+ds9.png" alt="" id="BLOGGER_PHOTO_ID_5141753188819311026" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;A similar script created Thorman for gaia 6 years ago. Both can be found in script directory. Both will not be instaled by make install. If you want its, copy ones to your */bin directory.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-3429057166109956860?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/3429057166109956860/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=3429057166109956860' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/3429057166109956860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/3429057166109956860'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2007/12/visualisation-of-found-stars.html' title='Visualisation of found stars'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_UOcVemxNJNA/R1stSHZOmbI/AAAAAAAAACw/7djby1OIxFI/s72-c/Screenshot-SAOImage+ds9.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-1018191340068748771</id><published>2007-12-07T01:06:00.000+01:00</published><updated>2007-12-13T01:22:13.760+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Munipack'/><title type='text'>A hang-up under Ubuntu</title><content type='html'>Today, a hang-up of munimatch under Ubuntu and gfortran compiler has been found during work  on processing of globular clusters images. Munimatch hang-ups with the listing on output:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;f@filip:/tmp/munipack/munimatch$ mt ref=m5_06R.SRT m5_06V.SRT&lt;br /&gt;&lt;br /&gt;Match files : m5_06R.SRT -&gt; m5_06V.SRT&lt;br /&gt;&lt;br /&gt; Matrix :    1.0025209128  -0.0000284573&lt;br /&gt;             0.0000284573   1.0025209128&lt;br /&gt; Shift  :                 -38.8969865074     18.3495641725&lt;br /&gt; Scale  :     0.9975158490 &lt;br /&gt;&lt;/span&gt;&lt;br /&gt;The parent process has been consumed of all CPU time and indicate no progress after a while. Experiments under Gentoo shows equivalent behaviour.&lt;br /&gt;&lt;br /&gt;The detailed inspection of source code revealed problem on this line:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  do while(.true.)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;     read(1,'(T7,2F9.3)',end=970,iostat=ii) x,y&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;     i = i + 1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  ...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The code fails when an error occured (during line read when format is different) and iostat sets error variable to a non-zero value. The replace of the line with equivalent code&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        read(1,'(A)',end=970,err=970) RADEK1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        read(RADEK1,'(T7,2F9.3)',iostat=ii) x,y&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;corrects of the hung-up problem. The experience shows that the intel ifc compiler, g77 and sun's fortran compilers work without any problems. It may be a bug in gfortran compiler. (Moreover, additional, an index range error has been corrected also.)&lt;br /&gt;&lt;br /&gt;Update. &lt;a href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34411"&gt;The described bug has been corrected&lt;/a&gt;. Excellent work! Thank you!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-1018191340068748771?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/1018191340068748771/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=1018191340068748771' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/1018191340068748771'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/1018191340068748771'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2007/12/hang-up-under-ubuntu.html' title='A hang-up under Ubuntu'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-5254118388171535668</id><published>2007-12-01T21:24:00.000+01:00</published><updated>2007-12-05T00:40:55.464+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Munipack'/><title type='text'>Cfitsio &amp; fortran wrap</title><content type='html'>Some time ago, I &lt;a href="http://monteboo.blogspot.com/2007/11/munipack-update-id-updated-munipacks.html"&gt;reported&lt;/a&gt; problem with compilation of Munipack under Mandriva linux distribution. Today's work  under Gentoo   make my way where the trouble is occuring. Errors like these:&lt;br /&gt;&lt;br /&gt;autoflat.f90:(.text+0x8ee): undefined reference to `ftopen_'&lt;br /&gt;autoflat.f90:(.text+0x93f): undefined reference to `ftghpr_'&lt;br /&gt;autoflat.f90:(.text+0x9da): undefined reference to `ftclos_'&lt;br /&gt;&lt;br /&gt;says: You have the cfitsio library installed but the functions has not been found. The problem will appear in "modern" distributions without g77 binary (any f77 compiler), while  cfitsio configure script is looking for f77 compiler. If the compiler is not found, the configure-machinery drop off support of f77.  It is indicated by:&lt;br /&gt;&lt;br /&gt;checking for f77... no&lt;br /&gt;checking for xlf... no&lt;br /&gt;checking for cf77... no&lt;br /&gt;checking for gf77... no&lt;br /&gt;checking for g77... no&lt;br /&gt;checking for af77... no&lt;br /&gt;checking for ncf... no&lt;br /&gt;checking for f2c... no&lt;br /&gt;configure: warning: cfitsio: == No acceptable f77 found in $PATH&lt;br /&gt;configure: warning: cfitsio: == Cfitsio will be built without Fortran wrapper support&lt;br /&gt;&lt;br /&gt;It can be easy verified by simple runnig of g77 (f77 will be not accessible).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Workaround&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This is a bug in cfitsion library so we will wait for correction by authors (it is done now in cfitsio-3.06, but the correction is not included in "modern" distributions). In meantime, the best solution of this is recompilation of the cfitsio with creation of a  "g77" compiler  wrapper. The wrapper  can be created as a shell script:&lt;br /&gt;&lt;br /&gt;#!/bin/sh&lt;br /&gt;gfortran $*&lt;br /&gt;&lt;br /&gt;or as link&lt;br /&gt;&lt;br /&gt;ln -s /usr/bin/gfortran g77&lt;br /&gt;&lt;br /&gt;in any appropriate directory (~/bin,/usr/local/bin) and followed by the complete recompilation of the cfitsio library. This new library .a needs be placed to a system-wide linker path (/usr/local/lib).&lt;br /&gt;&lt;br /&gt;The nm utility can help with inspection of the cfitsio library. The gfortran is pretty compatible with g77.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-5254118388171535668?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/5254118388171535668/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=5254118388171535668' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/5254118388171535668'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/5254118388171535668'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2007/12/cfitsio-fortran-wrap.html' title='Cfitsio &amp; fortran wrap'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-3086263519243132813</id><published>2007-11-10T23:23:00.000+01:00</published><updated>2008-12-10T07:08:29.181+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Photo'/><title type='text'>An evening</title><content type='html'>Some time ago, I spend nice evening on &lt;a href="http://www.hvezdarna.cz/"&gt;HaP MK&lt;/a&gt;. A few shots describes an atmosphere of the times...&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_UOcVemxNJNA/RzYzTuEEXbI/AAAAAAAAACo/YKkdwDMpabk/s1600-h/secret_person_small.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_UOcVemxNJNA/RzYzTuEEXbI/AAAAAAAAACo/YKkdwDMpabk/s320/secret_person_small.jpg" alt="" id="BLOGGER_PHOTO_ID_5131345239310884274" border="0" /&gt;&lt;/a&gt;&lt;a style="font-style: italic;" href="http://integral.physics.muni.cz/%7Ehroch/secret_person.jpg"&gt;Larger photography.&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_UOcVemxNJNA/RzYwWeEEXYI/AAAAAAAAACQ/UUZP2zohWrY/s1600-h/telescopes_small.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_UOcVemxNJNA/RzYwWeEEXYI/AAAAAAAAACQ/UUZP2zohWrY/s320/telescopes_small.jpg" alt="" id="BLOGGER_PHOTO_ID_5131341988020641154" border="0" /&gt;&lt;/a&gt;&lt;a style="font-style: italic;" href="http://integral.physics.muni.cz/%7Ehroch/telescopes.jpg"&gt;Larger photography.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_UOcVemxNJNA/RzYwgeEEXaI/AAAAAAAAACg/V1vukADhFIo/s1600-h/inner_roof_small.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_UOcVemxNJNA/RzYwgeEEXaI/AAAAAAAAACg/V1vukADhFIo/s320/inner_roof_small.jpg" alt="" id="BLOGGER_PHOTO_ID_5131342159819333026" border="0" /&gt;&lt;/a&gt;&lt;a style="font-style: italic;" href="http://integral.physics.muni.cz/%7Ehroch/inner_roof.jpg"&gt;Larger photography.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_UOcVemxNJNA/RzYwbuEEXZI/AAAAAAAAACY/UKb9RWQlBHI/s1600-h/hapmk_roof_small.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_UOcVemxNJNA/RzYwbuEEXZI/AAAAAAAAACY/UKb9RWQlBHI/s320/hapmk_roof_small.jpg" alt="" id="BLOGGER_PHOTO_ID_5131342078214954386" border="0" /&gt;&lt;/a&gt;&lt;a style="font-style: italic;" href="http://integral.physics.muni.cz/%7Ehroch/hapmk_roof.jpg"&gt;Larger photography.&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-3086263519243132813?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/3086263519243132813/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=3086263519243132813' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/3086263519243132813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/3086263519243132813'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2007/11/evening.html' title='An evening'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_UOcVemxNJNA/RzYzTuEEXbI/AAAAAAAAACo/YKkdwDMpabk/s72-c/secret_person_small.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-7097500219372987687</id><published>2007-11-04T22:57:00.000+01:00</published><updated>2008-12-10T07:08:29.769+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Astrophoto'/><title type='text'>A trip to Macocha</title><content type='html'>Macocha is an abyss near Blansko  town (approximately 30km far of Brno).. cold evening, .. clear sky .. hight humidity .. Holmes near zenit... Milky way... really nice .. we had concentred to pointed photographing by our fish-eye .. The images covers practicaly full sky sphere. A lot of interesting objects can be identified. For example, Andromeda galaxy (M31), M33, NGC 456, Holmes, California... the large image (1/2 of original) shows optical quality of Canon's fish-eye f15.  The picture is perfect at center while small triangles appears at borders. A light polution due to Brno (on south) and Blansko (west-north) is clearly visible...&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center; font-style: italic;"&gt;The Sky (Canon EOS 5D, fish-eye 15mm, 127 sec)&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_UOcVemxNJNA/Ry5EyZQcnEI/AAAAAAAAAA8/5c6mUWSP_w8/s1600-h/deep_macocha_prev.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_UOcVemxNJNA/Ry5EyZQcnEI/AAAAAAAAAA8/5c6mUWSP_w8/s320/deep_macocha_prev.png" alt="" id="BLOGGER_PHOTO_ID_5129112658185591874" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;The sky (Canon EOS 5D, fish-eye 15mm, 618 sec)&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_UOcVemxNJNA/Ry5EppQcnDI/AAAAAAAAAA0/LB7WEtGRO1Q/s1600-h/deeep_macocha_prev.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_UOcVemxNJNA/Ry5EppQcnDI/AAAAAAAAAA0/LB7WEtGRO1Q/s320/deeep_macocha_prev.png" alt="" id="BLOGGER_PHOTO_ID_5129112507861736498" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://integral.physics.muni.cz/%7Ehroch/deep_macocha.png"&gt;A large format of deep_macocha&lt;/a&gt; , &lt;a href="http://integral.physics.muni.cz/%7Ehroch/deeep_macocha.png"&gt;A large format of deeep_macocha&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;We still need the correct white balance of our camera....&lt;br /&gt;&lt;br /&gt;The romantic time of the evening is illlustrated by images:&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-style: italic;"&gt;Staff at work (Canon EOS 5D, fish-eye 15mm, 30 sec)&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_UOcVemxNJNA/Ry5ePpQcnHI/AAAAAAAAABU/QPQG80PBEoU/s1600-h/macocha_staff_prev.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_UOcVemxNJNA/Ry5ePpQcnHI/AAAAAAAAABU/QPQG80PBEoU/s320/macocha_staff_prev.png" alt="" id="BLOGGER_PHOTO_ID_5129140648487459954" border="0" /&gt;&lt;/a&gt;&lt;span style="font-style: italic;"&gt;Ground view (Canon EOS 5D, fish-eye 15mm, 30 sec)&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_UOcVemxNJNA/Ry5e9pQcnJI/AAAAAAAAABk/FiTWy-MKC_A/s1600-h/macocha_ground_prev.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_UOcVemxNJNA/Ry5e9pQcnJI/AAAAAAAAABk/FiTWy-MKC_A/s320/macocha_ground_prev.png" alt="" id="BLOGGER_PHOTO_ID_5129141438761442450" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Large versions: &lt;a href="http://integral.physics.muni.cz/%7Ehroch/macocha_ground.png"&gt;ground&lt;/a&gt; and  &lt;a href="http://integral.physics.muni.cz/%7Ehroch/macocha_staff.png"&gt;staff.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Thx Mif, codel, RAMka and Kocka.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-7097500219372987687?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/7097500219372987687/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=7097500219372987687' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/7097500219372987687'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/7097500219372987687'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2007/11/trip-to-macocha.html' title='A trip to Macocha'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_UOcVemxNJNA/Ry5EyZQcnEI/AAAAAAAAAA8/5c6mUWSP_w8/s72-c/deep_macocha_prev.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-5007963227763143240</id><published>2007-11-04T22:35:00.000+01:00</published><updated>2008-12-10T07:08:30.430+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Astrophoto'/><title type='text'>17P/Holmes on the sky of HaP MK Brno</title><content type='html'>I'm introducing images acquired during our historical first star photo party using by a paralactic mount with a siderical driver. There are a few images taken during evenning 2007-10-31/11-01 on a terace of a building of &lt;a href="http://www.hvezdarna.cz/"&gt;HaP MK Brno&lt;/a&gt;. I and codel...&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-style: italic;"&gt;Wide field (Canon EOS 30D, f=18mm, 134 sec)&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_UOcVemxNJNA/Ry497JQcm_I/AAAAAAAAAAU/vCL3uxLzWtQ/s1600-h/holmes5.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_UOcVemxNJNA/Ry497JQcm_I/AAAAAAAAAAU/vCL3uxLzWtQ/s320/holmes5.png" alt="" id="BLOGGER_PHOTO_ID_5129105111928052722" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-style: italic;"&gt;Detail of comet location (Canon EOS 30D, f=170mm, 244 sec)&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_UOcVemxNJNA/Ry4-fJQcnAI/AAAAAAAAAAc/sYhQHCZ7uoY/s1600-h/holmes3.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_UOcVemxNJNA/Ry4-fJQcnAI/AAAAAAAAAAc/sYhQHCZ7uoY/s320/holmes3.png" alt="" id="BLOGGER_PHOTO_ID_5129105730403343362" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Pleiades (Canon EOS 30D, f=400mm, 50 sec)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_UOcVemxNJNA/Ry4-wZQcnBI/AAAAAAAAAAk/osiJFUKocO8/s1600-h/m45.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_UOcVemxNJNA/Ry4-wZQcnBI/AAAAAAAAAAk/osiJFUKocO8/s320/m45.png" alt="" id="BLOGGER_PHOTO_ID_5129106026756086802" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Orion's nebula (Canon ESO 30D, f=400mm, 30sec)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_UOcVemxNJNA/Ry4_BpQcnCI/AAAAAAAAAAs/wd0Y0yKdkfc/s1600-h/m42.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_UOcVemxNJNA/Ry4_BpQcnCI/AAAAAAAAAAs/wd0Y0yKdkfc/s320/m42.png" alt="" id="BLOGGER_PHOTO_ID_5129106323108830242" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Don't be confused by background gradient (especially on wide field). It's due to a strong light-pollution by Brno. The observatory is located near center of  400th thousands  town. Look also on &lt;a href="http://ccder.blogspot.com/2007/11/comet-17p-holmes.html"&gt;codel's&lt;/a&gt; blog.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-5007963227763143240?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/5007963227763143240/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=5007963227763143240' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/5007963227763143240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/5007963227763143240'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2007/11/17pholmes-on-hap-mk-brno.html' title='17P/Holmes on the sky of HaP MK Brno'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_UOcVemxNJNA/Ry497JQcm_I/AAAAAAAAAAU/vCL3uxLzWtQ/s72-c/holmes5.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-1145331566681414066</id><published>2007-11-04T11:10:00.000+01:00</published><updated>2007-12-05T00:42:15.252+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Munipack'/><title type='text'>Munipack update</title><content type='html'>&lt;p&gt;I'd updated Munipack's configure.in to fit a "modern" way to search for fortran's 90 compiler by simply application of AC_PROG_FC macro.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;This is a really great step, while last five years the compiler were detected by my own macro (four years ago) or by detecting of various specified compilers (up to today).&lt;br /&gt;&lt;/p&gt;By the way, I'm suppose that Munipack compilation will more portable on modern distributions (Ubuntu?).&lt;br /&gt;&lt;br /&gt;The macro's change will result in prefer of use of gfortran (not g95, ifc,..) compiler. One is pretty g95-compatible so it has implied changes in munilist's main and it remind me that the main is still non-wraped via C. I started rewrote it. The different compiler to compile can be specified via ./configure FC=ifc.&lt;br /&gt;&lt;br /&gt;A problem has been reported under Mandriva Linux 2007.1  distribution. The compilation aborts with:&lt;br /&gt;&lt;span style="font-family:monospace;"&gt;&lt;br /&gt;&lt;/span&gt;aflat_bin-autoflat.o: In function `MAIN_':autoflat.f90:(.text+0x8ce): undefined reference to `ftopen_'&lt;br /&gt;&lt;br /&gt;(libcfitsio is installed corectly) which means that cfitsio is probally uncorrectly builded. The test with a simple C code is linked correctly, a simple code of fortran reveals the described problem. Specification of -fno-underscoring remove underscoring without expected effect.... (thx to petos).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-1145331566681414066?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/1145331566681414066/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=1145331566681414066' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/1145331566681414066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/1145331566681414066'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2007/11/munipack-update-id-updated-munipacks.html' title='Munipack update'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-1569624077260267930</id><published>2007-11-04T03:42:00.000+01:00</published><updated>2008-12-10T07:08:30.556+01:00</updated><title type='text'>A ghost (second test post)</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_UOcVemxNJNA/Ry0ywpQcm-I/AAAAAAAAAAM/M7Z7CzF1b1w/s1600-h/ghost.png"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="http://2.bp.blogspot.com/_UOcVemxNJNA/Ry0ywpQcm-I/AAAAAAAAAAM/M7Z7CzF1b1w/s320/ghost.png" alt="" id="BLOGGER_PHOTO_ID_5128811361934810082" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;The in-line image of the ghost:&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-1569624077260267930?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/1569624077260267930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=1569624077260267930' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/1569624077260267930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/1569624077260267930'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2007/11/ghost-second-test-post-in-line-image-of.html' title='A ghost (second test post)'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_UOcVemxNJNA/Ry0ywpQcm-I/AAAAAAAAAAM/M7Z7CzF1b1w/s72-c/ghost.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-4223721564105428195</id><published>2007-11-04T03:40:00.000+01:00</published><updated>2007-11-09T22:07:15.043+01:00</updated><title type='text'>A ghost</title><content type='html'>A ghost relevation on our image of the night sky acquired during excelent evening on Thu 1. november. &lt;p&gt;&lt;br /&gt;&lt;a href="http://integral.physics.muni.cz/%7Ehroch/ghost.png"&gt;A ghost image&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-4223721564105428195?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/4223721564105428195/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=4223721564105428195' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/4223721564105428195'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/4223721564105428195'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2007/11/ghost-ghost-relevation-on-our-image-of.html' title='A ghost'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-8486022127491464722</id><published>2007-11-04T03:05:00.000+01:00</published><updated>2007-11-04T03:45:59.184+01:00</updated><title type='text'>Test of gnome-blog</title><content type='html'>An amazin test of gnome-blog...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-8486022127491464722?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/8486022127491464722/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=8486022127491464722' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/8486022127491464722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/8486022127491464722'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2007/11/test-of-gnome-blog-amazin-test-of-gnome.html' title='Test of gnome-blog'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8011855273084554086.post-5045550930016933521</id><published>2007-11-04T02:40:00.000+01:00</published><updated>2007-11-04T02:41:52.457+01:00</updated><title type='text'>First entry...</title><content type='html'>Show me!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8011855273084554086-5045550930016933521?l=monteboo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://monteboo.blogspot.com/feeds/5045550930016933521/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8011855273084554086&amp;postID=5045550930016933521' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/5045550930016933521'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8011855273084554086/posts/default/5045550930016933521'/><link rel='alternate' type='text/html' href='http://monteboo.blogspot.com/2007/11/first-entry.html' title='First entry...'/><author><name>hroch</name><uri>http://www.blogger.com/profile/03418574147476680994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='29' height='32' src='http://www.physics.muni.cz/~hroch/kunda-hippo.jpg'/></author><thr:total>0</thr:total></entry></feed>
