
    R1i                         d Z e ZdZdZd Zy)z9https://cdsarc.cds.unistra.fr/ftp/cats/I/239/hip_main.datzSkyfield needs Pandas to load the Hipparcos catalog

To load the Hipparcos star catalog, Skyfield needs the Pandas data
analysis toolkit.  Try installing it using your usual Python package
installer, like "pip install pandas" or "conda install pandas".
)NCatalogHIPProxyRAhmsDEdmsVmagVarFlagr_VmagRAdegDEdegAstroRefPlxpmRApmDEe_RAdege_DEdege_Plxe_pmRAe_pmDEzDE:RAzPlx:RAzPlx:DEzpmRA:RAzpmRA:DEzpmRA:PlxzpmDE:RAzpmDE:DEzpmDE:Plxz	pmDE:pmRAF1F2z---BTmage_BTmagVTmage_VTmagm_BTmagzB-Vze_B-Vzr_B-VzV-Ize_V-Izr_V-ICombMagHpmage_HpmagHpscato_Hpmagm_HpmagHpmaxHPminPeriodHvarTypemoreVar	morePhotoCCDMn_CCDMNsysNcompMultFlagSourceQualm_HIPthetarhoe_rhodHpe_dHpSurveyChartNotesHDBDCoDCPDz(V-I)redSpTyper_SpTypec           	      N   	 ddl m} | j	                  d       | j                  d      }|dk(  rdnd}| j	                  d        || dt        |g dg d	
      }d|_        |j                  |d   dz  d      }|j                  d      S # t        $ r t        t              w xY w)zGiven an open file for ``hip_main.dat``, return a parsed dataframe.

    If the file is gzipped, it will be automatically uncompressed.

        )read_csv   s   gzipN|)r   r   r
   r   r   r   r   )z     z       z        z            )sepnamescompressionusecols	na_values)hip	magnitude
ra_degreesdec_degreesparallax_masra_mas_per_yeardec_mas_per_yearrK   g      .@g     @)ra_hours
epoch_yearrI   )
pandasr@   ImportErrorPANDAS_MESSAGEseekread_COLUMN_NAMEScolumnsassign	set_index)fobjr@   magicrF   dfs        [/home/cursorai/projects/iching/venv/lib/python3.12/site-packages/skyfield/data/hipparcos.pyload_dataframer_   /   s    *# 	IIaLIIaLE"k1&KIIaL	#]HB
B
BJ 
l#d* 
 
B <<+  *.))*s   B B$N)URLurlrT   rW   r_        r^   <module>rd      s'    B 
rc   