next up previous contents index
Next: CURSOR Up: CLIC Language Internal Help Previous: COMPRESS

COPY

 

        CLIC\COPY HEADERS|[NO]DATA [[NO]BASE] [[NO]ANTENNA]

    Copy contents of the  current  index  to  the  ouput  file.   The  first
    argument  is mandatory and controls whether the data section is actually
    written in the output file.

    COPY DATA selects the old mode which has been used so far.

    COPY HEADERS selects a new mode  in  which  the  data  file,  originally
    written  at  Plateau  de  Bure  is  later only used in a read-only mode.
    Further modifications are written in an output file that  contains  only
    the header sections, with e.g. calibration sections. In that output file
    the data sections are not  written  but  replaced  by  pointers  to  the
    original  file,  which  can  now  reside on a CD-ROM.  When this file is
    later opened for input, CLIC will look for  the  data  sections  in  the
    original  (read-only)  data  file.   The  original data file may be kept
    locally (then it must have one of the  extensions  ".ipb",  ".IPB;1"  or
    ".IPB")  or  reside  in any directory, which is pointed to by one of the
    logical names "IPB_DATA:", "IPB_DATA1:" to "IPB_DATA9:".   The  original
    file  name  MUST  BE  UNCHANGED,  apart from the extension. It is HIGHLY
    RECOMMENDED to use the extension ".hpb" for the new file containing  the
    headers.
    Example:
    Assume the original file is "14-apr-1996-f081.ipb", retrieved from the
    DAT tapes. Create a header file:
    clic\file in 14-apr-1996-f081.ipb
    clic\find
    clic\file out f081-b2.hpb new
    clic\copy headers

    Assume the file was on CDROM. Create a header file:
    sic\log ipb_data: "/CDROM"
    clic\file in "!ipb_data:F404F081.IPB"
    clic\find
    clic\file out f081-b2.hpb new
    clic\copy headers
    !
    ! open f081-b2 for input/output, but do not write the data any more:
    file both f081-b2
    find
    solve phase /plot
    store phase
    ! ...
    and so on as usual, except that the new file "f081-b2.ipb" contains
    only the headers and is much smaller than "14-apr-1996-f081.ipb-data".

    - Most commands are available in  this  new  mode,  even  commands  that
    affect  data  amplitudes  phases  such as ATMOSPHERE, MODIFY BASELINE or
    MODIFY DELAY. The phase factors are kept in the headers and applied only
    when the data will be later read again.

    - There need not be a one to one  correspondence  between  the  original
    ".ipb-data" file contents and the ".ipb" header file. That is the header
    file may refer to only part of the scans in  the  .ipb-data  file  (e.g.
    omit the IFPB or POINT scans), and it may refer to several

    Now arguments [NO]BASE and [NO]ANTENNA control whether respectively  the
    baseline  antenna-based calibration sections are written in the headers.
    Antenna-based cal is now the default  and  omitting  the  baseline-based
    sections  saves  a  lot of space only the antenna-based sections will be
    created; do not forget to use COPY HEADE if you foresee  you  will  need
    baselined-based  calibration; or use COPY HEADERS for not so recent Bure
    data in which the baselined-based  sections  have  been  cre  (otherwise
    those seldom used sections will use half the header space).


lucas@iram.fr