Skip to content

omodei/FermiSunPy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FermiSunPy

Classes and methods relative to the Solar analysis with Fermi data

sunpos.py

Knowing the position of the Sun (J2000) at a Given Misson elapsed Time. Signature:

usage: sunpos.py [-h] [met]

Compute the Sun position for a given MET time.

positional arguments:
  met         Mission Elapsed Time (MET) in seconds (default: 376358403.000)

optional arguments:
  -h, --help  show this help message and exit

suncenter.py

This routine converts a FT1 and FT2 file congtaining LAT events and pointing history into a "sun center" list of events and into a "sun center" reference frame of the LAT satellite. FT1 anbd FT2 data can be obtained bhy the Fermi LAT Science Support Center. Note bthat the selection must be large enough to inlude all the Sun trajectory. This implies that, if you want to convert large interval of time, you should consider using the provided weekly all-sky files.

usage: suncenter.py [-h] [-ft1 ft1] [-ft2 ft2]

Convert FT1/FT2 files to Sun-centered coordinates.

optional arguments:
  -h, --help  show this help message and exit
  -ft1 ft1    Input FT1 file to convert.
  -ft2 ft2    Input FT2 file to convert.

To visualize the newly genberated FT1 file (it is saved with _sun.fit extension), you can use the standard fermitools, using the center of the ROI as 0,0 in CEL coordinate, For example:

>gtbin                                                                                          
This is gtbin version HEAD
Type of output file (CCUBE|CMAP|LC|PHA1|PHA2|HEALPIX) [] CMAP 
Event data file name[] NAME_OF_THE_FT1_SUN_CENTERD_FILE
Output file name[] OUTPUT_NAME_FOR_CMAP 
Spacecraft data file name[] NAME_OF_THE_FT1_SUN_CENTERD_FILE
Size of the X axis in pixels[] 101
Size of the Y axis in pixels[] 101
Image scale (in degrees/pixel)[] 0.2
Coordinate system (CEL - celestial, GAL -galactic) (CEL|GAL) [] CEL
First coordinate of image center in degrees (RA or galactic l)[] 0
Second coordinate of image center in degrees (DEC or galactic b)[] 0
Rotation angle of image axis, in degrees[0] 0
Projection method e.g. AIT|ARC|CAR|GLS|MER|NCP|SIN|STG|TAN:[] CAR

the output file can be visualized with standard visualization tools, such as fv, ds9 or with python code (astropy,...)


For question and comments: nicola.omodei@stanford.edu

About

Classes and methods relative to the Solar analysis with Fermi data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages