Skip to content

bintable procedure

Martin Wiesmann edited this page Jan 5, 2023 · 21 revisions

spice_data::get_bintable_info

This is an internally used procedure that collects all info about present bintables in the FITS files during the initialisation of the object. So far, it looked only at VAR_KEYS in the first extension, assuming it is the same for all extensions. This will have to be changed. Also, it didn't parse the tags of the keywords but included those in the types.

New:

Collect values from all VAR_KEYS in all data extensions. Parse the value, such

<bintable-extension-name1>;<keyword1>[<tag1>],<keyword2>[<tag2>],<bintable-extension-name2>;<keyword3>[<tag3>]

and put information in a structure, like this:

temp_column = {
  wcsn:'', 
  tform:'',  
  ttype:'',  
  tag:'',  
  tdim:'', 
  tunit:'', 
  tunit_desc:'', 
  tdmin:'', 
  tdmax:'', 
  tdesc:'', 
  bin_extension_name:'', 
  data_extension_name:'',
  data_extension_index:0,
  values:ptr_new()
  }

where only ttype, tag, bin_extension_name, data_extension_name and data_extension_index do get populated. The other values will be populated once the user asks for them, and the appropriate table is loaded.

adfas dfas df

Clone this wiki locally