Пример #1
0
void fitstable_add_fits_columns_as_struct2(const fitstable_t* intab,
										   fitstable_t* outtab) {
	int i, NC;
	int off = 0;
	int noc = ncols(outtab);
	NC = fitstable_get_N_fits_columns(intab);
	for (i=0; i<NC; i++) {
		const qfits_col* qcol = qfits_table_get_col(intab->table, i);
		fitscol_t* col;
		/*
		 if (qcol->atom_type == TFITS_BIN_TYPE_X) {
		 }
		 */
		fitstable_add_read_column_struct(outtab, qcol->atom_type, qcol->atom_nb,
										 off, qcol->atom_type, qcol->tlabel, TRUE);
		// set the FITS column number.
		col = getcol(outtab, ncols(outtab)-1);
		col->col = noc + i;
		off += fitscolumn_get_size(col); //getcol(tab, ncols(tab)-1));
	}
}
Пример #2
0
int startree_get_tagalong_N_columns(startree_t* s) {
	if (!startree_has_tagalong(s))
		return 0;
	return fitstable_get_N_fits_columns(startree_get_tagalong(s));
}