Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: table.done - Function Up: table - Tool Previous: table.copy - Function


table.copyrows - Function



Package utility
Module table
Tool table


copy rows from this table to another


Synopsis
copyrows(outtable, startrowin, startrowout, nrow)


Description
Copy rows from this table to another. By default all rows of this table are appended to the output table. It is possible though to control which rows are copied.
Rows are added to the output table as needed. Because no rows can be added to a reference table, it is only possible to overwrite existing rows in such tables.

Only the data of columns existing in both tables will be copied. Thus by making a reference table consisting of a few columns, it is possible to copy those columns only.



Arguments

outtable in table object of output table
    Allowed: String
startrowin in First row to take from input table
    Allowed: Int
    Default: 1
startrowout in First row to write in output table
    Allowed: Int
    Default: -1 (=end)
nrow in Nr of rows to copy
    Allowed: Int
    Default: -1 (=all)


Returns
Bool


Example
This example appends rows to the table itself, thus doubles the number of rows.
  t:=table('test.ms',readonly=F)
  t.copyrows(t)
This example copies 10 rows of the selected subset of the MS to the beginning of the output MS.
  t:=table("3C273XC1.MS")
  tout:=table('test.ms',readonly=F)
  t1:=t.query('ANTENNA1==0')
  t1.copyrows(tout,nrow=10,startrowout=1)





next up previous contents index
Next: table.done - Function Up: table - Tool Previous: table.copy - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15