User Tools

Site Tools


data:data_analysis_manual:read_catalog_python

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
data:data_analysis_manual:read_catalog_python [2022/09/21 11:57] – fix function reading uio csv catalog (it was reading the txt catalog before) gabriel pelouzedata:data_analysis_manual:read_catalog_python [2024/03/29 13:11] (current) – Page is deprecated eric buchlin
Line 1: Line 1:
 ====== How to read and use the UiO FITS files catalog in Python ====== ====== How to read and use the UiO FITS files catalog in Python ======
 +
 +<note warning>These scripts are deprecated in favor of the current version, available in the [[https://sospice.readthedocs.io/en/stable/|sospice Python module]].</note>
  
 ===== CSV catalog (new, recommended) ===== ===== CSV catalog (new, recommended) =====
Line 33: Line 35:
         sys.exit(1)         sys.exit(1)
     date_columns = ['DATE-BEG','DATE', 'TIMAQUTC']     date_columns = ['DATE-BEG','DATE', 'TIMAQUTC']
-    df = pd.csv(cat_file, parse_dates=date_columns, date_parser=date_parser)+    df = pd.read_csv(cat_file, parse_dates=date_columns, date_parser=date_parser)
     return df     return df
 </file> </file>
data/data_analysis_manual/read_catalog_python.1663761422.txt.gz · Last modified: by gabriel pelouze