
    IR-e                        d dl mZ d dlmZ d dlmZ d                                Zd Zej	        
                    d                                d          Zd	                                Zd
 Zd                                Zd Zd Zd ZdS )    )assert_allclose)fits)WCSz2
rsun_ref:
dsun_obs:
crln_obs:
hgln_obs:
hglt_obs:c                  ,   t          d          } | j        j        j        J | j        j        j        J | j        j        j        J | j        j        j        J | j        j        j        J t          | j        j                  t          k    sJ d S )N   naxis)
r   wcsauxrsun_refdsun_obscrln_obshgln_obshglt_obsstrSTR_EXPECTED_EMPTYws    =lib/python3.11/site-packages/astropy/wcs/tests/test_auxprm.py
test_emptyr      s    !A59%%%59%%%59%%%59%%%59%%%quy>>///////    a  
WCSAXES =                    2 / Number of coordinate axes
CRPIX1  =                 64.5 / Pixel coordinate of reference point
CRPIX2  =                 64.5 / Pixel coordinate of reference point
PC1_1   =     0.99999994260024 / Coordinate transformation matrix element
PC1_2   = -0.00033882076120692 / Coordinate transformation matrix element
PC2_1   =  0.00033882076120692 / Coordinate transformation matrix element
PC2_2   =     0.99999994260024 / Coordinate transformation matrix element
CDELT1  =   0.0053287911111111 / [deg] Coordinate increment at reference point
CDELT2  =   0.0053287911111111 / [deg] Coordinate increment at reference point
CUNIT1  = 'deg'                / Units of coordinate increment and value
CUNIT2  = 'deg'                / Units of coordinate increment and value
CTYPE1  = 'HPLN-TAN'           / Coordinate type codegnomonic projection
CTYPE2  = 'HPLT-TAN'           / Coordinate type codegnomonic projection
CRVAL1  =  -0.0012589367249586 / [deg] Coordinate value at reference point
CRVAL2  =  0.00079599300143911 / [deg] Coordinate value at reference point
LONPOLE =                180.0 / [deg] Native longitude of celestial pole
LATPOLE =  0.00079599300143911 / [deg] Native latitude of celestial pole
DATE-OBS= '2011-02-15T00:00:00.34' / ISO-8601 time of observation
MJD-OBS =      55607.000003935 / [d] MJD at start of observation
RSUN_REF=          696000000.0 / [m] Solar radius
DSUN_OBS=       147724815128.0 / [m] Distance from centre of Sun to observer
CRLN_OBS=            22.814522 / [deg] Carrington heliographic lng of observer
CRLT_OBS=            -6.820544 / [deg] Heliographic latitude of observer
HGLN_OBS=             8.431123 / [deg] Stonyhurst heliographic lng of observer
HGLT_OBS=            -6.820544 / [deg] Heliographic latitude of observer

)sepzt
rsun_ref: 696000000.000000
dsun_obs: 147724815128.000000
crln_obs: 22.814522
hgln_obs: 8.431123
hglt_obs: -6.820544c                     t          t                    } t          | j        j        j        d           t          | j        j        j        d           t          | j        j        j        d           t          | j        j        j        d           t          | j        j        j	        d           t          | j        j                  t          k    sJ d S )Ni |)l   K+J g]߇6@gXc' @gR<H)r   HEADER_SOLARr   r
   r   r   r   r   r   r   r   STR_EXPECTED_GETr   s    r   test_solar_aux_getr   D   s    LAAEI&	222AEI&555AEI&	222AEI&111AEI&	222quy>>-------r   zu
rsun_ref: 698000000.000000
dsun_obs: 140000000000.000000
crln_obs: 10.000000
hgln_obs: 30.000000
hglt_obs: 40.000000c                  Z   t          t                    } d| j        j        _        t          | j        j        j        d           d| j        j        _        t          | j        j        j        d           d| j        j        _        t          | j        j        j        d           d| j        j        _        t          | j        j        j        d           d| j        j        _	        t          | j        j        j	        d           t          | j        j                  t          k    sJ |                                 }t          |d         d           t          |d         d           t          |d         d           t          |d	         d           t          |d
         d           d S )N逢)    xL1       $@      >@      D@RSUN_REFDSUN_OBSCRLN_OBSHGLN_OBSHGLT_OBS)r   r   r
   r   r   r   r   r   r   r   r   STR_EXPECTED_SET	to_headerr   headers     r   test_solar_aux_setr-   V   sV   LA"AEIAEI&	222%AEIAEI&555AEIAEI&---AEIAEI&---AEIAEI&---quy>>-----[[]]FF:&	222F:&555F:&---F:&---F:&-----r   c                  R   t          d          } d| j        j        _        t	          | j        j        j        d           d| j        j        _        t	          | j        j        j        d           d| j        j        _        t	          | j        j        j        d           d| j        j        _        t	          | j        j        j        d           d| j        j        _        t	          | j        j        j        d           t          | j        j                  t          k    sJ |                                 }t	          |d         d           t	          |d	         d           t	          |d
         d           t	          |d         d           t	          |d         d           d S )N   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   )r   r
   r   r   r   r   r   r   r   r   r)   r*   r+   s     r   test_set_aux_on_emptyr0   r   sV   !A"AEIAEI&	222%AEIAEI&555AEIAEI&---AEIAEI&---AEIAEI&---quy>>-----[[]]FF:&	222F:&555F:&---F:&---F:&-----r   c                     t          t                    } | j        j        j        J d | j        j        _        | j        j        j        J | j        j        j        J d | j        j        _        | j        j        j        J | j        j        j        J d | j        j        _        | j        j        j        J | j        j        j        J d | j        j        _        | j        j        j        J | j        j        j        J d | j        j        _        | j        j        j        J t          | j        j                  dk    sJ | 
                                }d|vsJ d|vsJ d|vsJ d|vsJ d|vsJ d S )Nz1rsun_ref:
dsun_obs:
crln_obs:
hgln_obs:
hglt_obs:r$   r%   r&   r'   r(   )r   r   r
   r   r   r   r   r   r   r   r*   r+   s     r   test_unset_auxr2      s   LA59)))AEI59%%%59)))AEI59%%%59)))AEI59%%%59)))AEI59%%%59)))AEI59%%%quy>>TTTTT[[]]FV####V####V####V####V######r   N)numpy.testingr   
astropy.ior   astropy.wcsr   lstripr   r   Header
fromstringr   r   r   r)   r-   r0   r2    r   r   <module>r:      s  
 * ) ) ) ) )            
 VXX 0 0 0 {%%4 FHH9 &  @
 vxx . . .
 vxx . . .8. . .8$ $ $ $ $r   