XMM-Newton SAS Home Page
XMM-Newton Science Analysis System


ssclib (ssclib-4.33) [xmmsas_20190531_1155-18.0.0]

addOrOpenColumn

  function addOrOpenColumn(tab, colName, dataType, units, comment)&
  result(col)
    type(TableT),   intent(in)           :: tab
    character(*),   intent(in)           :: colName
    integer(int32), intent(in), optional :: dataType
    character(*),   intent(in), optional :: units, comment
    type(ColumnT)                        :: col
  end function addOrOpenColumn

This function opens the column if hasColumn(tab, colName) returns TRUE but adds a new column of this name if not. If a new column is creatd, defaults for the optional arguments `dataType', `units' and `comment' are REAL32, `' and `' respectively.



XMM-Newton SOC/SSC -- 2019-06-02