zgyin的个人博客分享 http://blog.sciencenet.cn/u/zgyin

博文

class的两条语句在新旧版本中的对比

已有 2575 次阅读 2012-9-25 22:05 |系统分类:科研笔记

class是gildas的一个软件,新版本用fortran90重写,新版本的提示符用LAS90>
在老的版本中LAS> file out spectra.30m new
而在新版中要把new 换成 SINGLE 或者 MULTIPLE
也就是LAS90> file out spectra.30m MULTIPLE

要想知道SINGLE or MULTIPLE的区别
可以help file就可以看到下面的信息
        LASFILE Mode Name [SINGLE|MULTIPLE] [/CONVERT] [/OVERWRITE]
 
    Selects the input and output files.
    FILE IN name        open an existing file as input
    FILE OUT name       open an existing file as output
    FILE BOTH name      select the same file for input and output.
    FILE UPDATE name    open a file for Updates only.
    FILE OUT name Type  creates a new output file, of the specified type
                        Option /OVERWRITE will force overwriting an existing file
    FILE OUT name Type /CONVERT   converts an existing output file to
                                  the specified type
 
    Files have two different Types: SINGLE or MULTIPLE.
 
    File of type MULTIPLE allows to have several version of the  same  spec-
    trum  (same  ObservationNumber).  This  type is the "historical" one for
    CLASS. It can be opened in all modes.
    For file of type SINGLE, the ObservationNumber is a unique identifier of
    the  spectrum:  only one version exists. As a consequence a file of this
    type cannot in general be opened both IN and  OUT.  Such  files  can  be
    opened  in  mode  UPDATE,  which allows spectra to be modified in place,
    typically via a TAG or UPDATE command after a MODIFY. Command  WRITE  is
    not allowed in this mode.
 
    This  new  type  has been introduced to simplify and speed up On-The-Fly
    processing.
 
 
    The default extension is .30m but can can be specified using command SET
    EXTENSION.





在旧的版本中
LAS>set fits mode spectrum
LAS>lasfits write spectra.fits
在新的版本合成一条语句
LAS90>lasfits write spectra.fits /mode spectrum

help lasfits可以看到详细的说明
        LASFITS READ  File[.fits]
        LASFITS WRITE File[.fits]   /MODE   SPECTRUM|INDEX   [/BITS  Nbits]
    [/CHECK]
 
    Either READ the File.fits FITS file to the CLASS internal  data  format.
    Please note that not all FITS files may be read by CLASS, and some head-
    er information might be incomplete when doing  so.  Alternatively,  FITS
    cubes  can  be  converted  to the Gildas Data Format by the command VEC-
    TORFITS, and then imported as a Class index by the command ANALYSELMV.
 
    Or WRITE the File.fits FITS file from the CLASS  internal  data  format.
    /MODE is a mandatory option which can take the following values as argu-
    ment:
      SPECTRUM a simple FITS file is written from the  current  spectrum  in
               memory  is  written.  The  number of bits per intensity value
               used when writing the FITS file may be controlled through the
               /BITS  optional  argument. It can be: 16 or I*2 (2 bits inte-
               ger), 32 or I*4 (4 bits integer) or -32 or R*4 (4 bits real).
               Default is 32.
      INDEX    a  FITS  BINTABLE  is written from all the spectra in current
               index. The USER MUST make sure that  all  index  spectra  are
               consistent  (same  source,  same  line, same frequency setup,
               ...). The intensity values (and irregularly  sampled  X  axis
               values, if any) are always written as 4 bits real.
    The  default  mode  and number of bits can also be specified through the
    commands:
      SET FITS MODE SPECTRUM|INDEX
      SET FITS BITS Nbits
    The option /CHECK will print the FITS HEADER on the terminal.



https://wap.sciencenet.cn/blog-783377-616735.html

上一篇:fedora16 安装gildas的方法
下一篇:HI谱线的吸收
收藏 IP: 202.101.72.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-25 02:13

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部