B
    %«d_Ņ  ć               @   s    d dl mZ d dlZdd ZdS )é    )ŚfitsNc             C   s°   t  | ”}x6dD ].}|| jdd|| jd d    || _qW |j|dd | ” }x<dD ]4}t || jj”|| _d|| j|| jdk< q^W |j| 	d	d
”dd d S )N)é   é   é   é   é
   gŁæZMAGZPTg      7@T)Ś	overwriter   z.fitz.weight.fit)
r   ŚopenŚdataŚheaderŚwritetoŚcopyŚnpŚonesŚshapeŚreplace)Zin_pathZout_pathŚhŚiZh_wei© r   ś$/gal/db1/Data/HiPS/prepare_frames.pyŚprepare   s    

.
r   )Ś
astropy.ior   Śnumpyr   r   r   r   r   r   Ś<module>   s   