This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pick one table from the FITS file | |
sixs_x_spectra = sc_six_hk_atti_fit['SIXS-X SPECTRA'] | |
# Get the meta-data (does NOT include arrays (GROUP objects etc.) | |
# find the field names of the table | |
cols = [col['name'] for col in sixs_x_spectra.meta_data['Record_Binary']['Field_Binary']] | |
# create an empty DataFrame with these columns | |
sixs_x_data = pd.DataFrame([], columns=cols) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
import pandas as pd | |
import datetime, pytz | |
import icalendar | |
def xls2ics(inputfile,outputfile): | |
"""Converts a Rosetta schedule spreadsheet into a corresponding ICS | |
calendar file.""" |