<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.heboliang.cn"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>何勃亮個人網站 - 天文軟件</title>
 <link>http://www.heboliang.cn/taxonomy/term/6/0</link>
 <description></description>
 <language>zh-hans</language>
<item>
 <title>C++读取二进制文件，以读取UCAC星表为例</title>
 <link>http://www.heboliang.cn/archive/cppbindataucac.html</link>
 <description>&lt;p&gt;UCAC（USNO CCD Astrograph Catalog）是美国海军天文台出的一个星表，现在最新的是3.0，用一个双面DVD存储，约7.9G，数据格式为二进制。DVD中有Fortran例子读取文件，本文给出一个C++的实现方式，这也是用C++的方式进行二进制文件读取的例子。&lt;/p&gt;
&lt;p&gt;二进制数据格式：&lt;/p&gt;
&lt;pre&gt;
num item   fmt unit        explanation                            remark
------------------------------------------------------------------------
 1  ra     I*4 mas         right ascension at  epoch J2000.0 (ICRS)  (1)
 2  spd    I*4 mas         south pole distance epoch J2000.0 (ICRS)  (1)
 3  im1    I*2 millimag    UCAC fit model magnitude                  (2)
 4  im2    I*2 millimag    UCAC aperture  magnitude                  (2)
 5  sigmag I*2 millimag    UCAC error on magnitude (larger of sc.mod)(3)
 6  objt   I*1             object type                               (4)   
 7  dsf    I*1             double star flag                          (5)   
         16
 8  sigra  I*2 mas         s.e. at central epoch in RA (*cos Dec)      
 9  sigdc  I*2 mas         s.e. at central epoch in Dec                 
10  na1    I*1             total # of CCD images of this star
11  nu1    I*1             # of CCD images used for this star        (6)
12  us1    I*1             # catalogs (epochs) used for proper motions
13  cn1    I*1             total numb. catalogs (epochs) initial match
          8
14  cepra  I*2 0.01 yr     central epoch for mean RA, minus 1900     
15  cepdc  I*2 0.01 yr     central epoch for mean Dec,minus 1900  
16  pmrac  I*4 0.1 mas/yr  proper motion in RA*cos(Dec)           
17  pmdc   I*4 0.1 mas/yr  proper motion in Dec                    
18  sigpmr I*2 0.1 mas/yr  s.e. of pmRA * cos Dec                   
19  sigpmd I*2 0.1 mas/yr  s.e. of pmDec                            
         16
20  id2m   I*4             2MASS pts_key star identifier          
21  jmag   I*2 millimag    2MASS J  magnitude                     
22  hmag   I*2 millimag    2MASS H  magnitude                       
23  kmag   I*2 millimag    2MASS K_s magnitude                     
24  icqflg I*1 * 3         2MASS cc_flg*10 + phot.qual.flag          (7)
25  e2mpho I*1 * 3         2MASS error photom. (1/100 mag)           (8)
         16
26  smB    I*2 millimag    SuperCosmos Bmag
27  smR2   I*2 millimag    SC R2mag                                  (9)
28  smI    I*2 millimag    SC Imag
29  clbl   I*1             SC star/galaxy classif./quality flag     (10)
30  qfB    I*1             SC quality flag Bmag                     (11)
31  qfR2   I*1             SC quality flag R2mag                    (11)
32  qfI    I*1             SC quality flag Imag                     (11)
         10
33  catflg I*1 * 10        mmf flag for 10 major catalogs matched   (12)
34  g1     I*1             Yale SPM object type (g-flag)            (13)
35  c1     I*1             Yale SPM input cat.  (c-flag)            (14)
36  leda   I*1             LEDA galaxy match flag                   (15)
37  x2m    I*1             2MASS extend.source flag                 (16)
38  rn     I*4             MPOS star number; identifies HPM stars   (17)
         18
------------------------------------------------------------------------
&lt;/pre&gt;&lt;p&gt;&lt;a href=&quot;http://www.heboliang.cn/archive/cppbindataucac.html&quot; target=&quot;_blank&quot;&gt;阅读全文&lt;/a&gt;&lt;/p&gt;</description>
 <category domain="http://www.heboliang.cn/tianxue/software.html">天文軟件</category>
 <category domain="http://www.heboliang.cn/software/cc.html">C++</category>
 <pubDate>Tue, 15 Dec 2009 07:11:16 +0000</pubDate>
 <dc:creator>何勃亮</dc:creator>
 <guid isPermaLink="false">108 at http://www.heboliang.cn</guid>
</item>
<item>
 <title>PP3 －優秀的星圖繪製軟件</title>
 <link>http://www.heboliang.cn/archive/pp3intro.html</link>
 <description>&lt;p&gt;&lt;a href=&quot;http://pp3.sf.net/&quot;&gt;PP3&lt;/a&gt;是一個非常優秀的星圖繪製軟件，它主要用來繪製星座圖，前文介紹的 &lt;a href=&quot;/archive/mag7staratlas.html&quot;&gt;Mag-7 Star Atlas&lt;/a&gt; 就是用這個軟件繪製的，軟件是用CWEB/C++寫成的。分別有Linux和Windows版，該軟件可以生成PDF和EPS兩種目標檔。這樣的好處是，目標文件不是位圖文件，PDF和EPS具有非常好的縮放功能，圖形質量很不錯，就算大幅面印刷也不會影響其圖形的質量。&lt;/p&gt;
&lt;p&gt;PP3結果生成需要LaTeX，因此使用這個軟件必須安裝TeX系統。&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.heboliang.cn/archive/pp3intro.html&quot; target=&quot;_blank&quot;&gt;阅读全文&lt;/a&gt;&lt;/p&gt;</description>
 <category domain="http://www.heboliang.cn/tianxue/software.html">天文軟件</category>
 <pubDate>Mon, 04 Jul 2005 10:33:54 +0000</pubDate>
 <dc:creator>何勃亮</dc:creator>
 <guid isPermaLink="false">48 at http://www.heboliang.cn</guid>
</item>
<item>
 <title>天文学常数软件开发包 Astroconst  简介</title>
 <link>http://www.heboliang.cn/archive/astroconst.html</link>
 <description>&lt;p&gt;&lt;a href=&quot;http://web.astroconst.org/&quot; target=&quot;_blank&quot;&gt;Astroconst 主页&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Astroconst 是一个自由软件包，它的内容就是包含有天文学常数表的一些头文件，这些头文件有多个，分别支持C、Fortran、Perl、java、Gnuplot和IDL等。对于程序开发人员、进行天文研究的人员来说，都是一个不错的软件包，可以省去好多功夫。&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.heboliang.cn/archive/astroconst.html&quot; target=&quot;_blank&quot;&gt;阅读全文&lt;/a&gt;&lt;/p&gt;</description>
 <category domain="http://www.heboliang.cn/tianxue/software.html">天文軟件</category>
 <category domain="http://www.heboliang.cn/tianxue/jstw.html">計算天文</category>
 <pubDate>Sat, 02 Oct 2004 08:37:45 +0000</pubDate>
 <dc:creator>何勃亮</dc:creator>
 <guid isPermaLink="false">22 at http://www.heboliang.cn</guid>
</item>
<item>
 <title>天文科学软件集 Scisoft</title>
 <link>http://www.heboliang.cn/archive/scisoftintro.html</link>
 <description>&lt;p&gt;&lt;a href=&quot;/sites/astronomy/images/Scisoft_cover_big.jpg&quot; target=&quot;_blank&quot;&gt;&lt;img align=&#039;center&#039; src=&quot;/sites/astronomy/images/Scisoft_cover_medium.jpg&quot; alt=&quot;Scisoft V5&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.eso.org/science/scisoft/&quot;&gt;Scisoft &lt;/a&gt;是一个天文软件集，也是&lt;a href=&quot;http://www.eso.org&quot; target=&quot;_blank&quot;&gt;欧洲南方天文台(ESO)&lt;/a&gt;的一个项目计划，里面的大部分软件都是ESO以为的开发，都由ESO集合到这个套件里。内容有经常使用的数据分析软件（IRAF/STSDAS, ESO-MIDAS 和 IDL等），还有其它一些小软件。&lt;/p&gt;
&lt;p&gt;整个套件是一张光盘，内容是一个压缩包，大约500多M，但是解压之后可以达到2G多。目前该套件只支持Unix类操作系统和Mac OS，主要是支持Linux。目前最新版是V5，发布于2003年12月，支持RedHat 9及以后版本。&lt;/p&gt;
&lt;p&gt;由于软件包内容丰富，体积庞大，因此建议专门分一个/Scisift分区安装这些文件，分区大小应该不小于3G。安装过程可以参考光盘的&lt;a href=&quot;http://www.eso.org/science/scisoft/INSTALL&quot; target=&quot;_blank&quot;&gt;INSTALL&lt;/a&gt;文件。&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.heboliang.cn/archive/scisoftintro.html&quot; target=&quot;_blank&quot;&gt;阅读全文&lt;/a&gt;&lt;/p&gt;</description>
 <category domain="http://www.heboliang.cn/tianxue/software.html">天文軟件</category>
 <category domain="http://www.heboliang.cn/kexue/kxrj.html">科學軟件</category>
 <category domain="http://www.heboliang.cn/software/linux.html">Linux</category>
 <pubDate>Tue, 03 Aug 2004 10:55:23 +0000</pubDate>
 <dc:creator>何勃亮</dc:creator>
 <guid isPermaLink="false">19 at http://www.heboliang.cn</guid>
</item>
</channel>
</rss>
