Added downloading of Leap Second file from IERS and loading of external(non-buildin) EOP file
This commit is contained in:
		
							parent
							
								
									07c5e5608c
								
							
						
					
					
						commit
						52b10c3f75
					
				
							
								
								
									
										12
									
								
								pyatmos/utils/data_prepare.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								pyatmos/utils/data_prepare.py
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,12 @@ | |||||||
|  | from astropy.utils import iers as iers_astropy | ||||||
|  | 
 | ||||||
|  | from .data_download import download_iers | ||||||
|  | 
 | ||||||
|  | def iers_load(): | ||||||
|  | 
 | ||||||
|  |     # load the EOP file | ||||||
|  |     dir_iers,eop_file,leapsecond_file = download_iers()  | ||||||
|  |     iers_astropy.conf.auto_download = False | ||||||
|  |     iers_a = iers_astropy.IERS_A.open(eop_file) | ||||||
|  |     leapsecond = iers_astropy.LeapSeconds.from_iers_leap_seconds(leapsecond_file) | ||||||
|  |     eop_table = iers_astropy.earth_orientation_table.set(iers_a) | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user