Research Journal: Jamil Batshoun
CTA simulations with gammapy
Questions
- (Answered during 7/6 meeting)July 2: In section 5 of the paper they talk about optimizing the analysis using pSCT data alone. I'm not sure where they got the significance for the full dataset described in Table 3 (page 9). The analysis was first optimized using 2.2 hours of concurrent VERITAS and pSCT, but there is at least 17.6 of ON/OFF obsersvations. Is the 8.6 significance derived from the 2.2 hours of data or from the 17.6 hours based on analysis optimized from the 2.2 hours?
- June 30: Does "ZEN_PNT" refer to the zenith angle?
- June 29: What does gti/GTI mean in the case of the HDU_TYPE/NAME?
July 7, 2021
- What was done:
- Continued to read DC-1 closeout document introduction, gps, and gammapy sections
- Tried to look at new irf files downloaded 9 days ago.
- Things left to do:
- Notes:
- GAMMAPY_DATA environment variable does not contain the right path despite export line in .myprofile being correct.
July 6, 2021
- What was done:
- Nevis VERITAS/CTA meeting at 4pm
- Read DC-1 closeout document introduction, gps, and gammapy section
- Things left to do:
- Put my slides on the twiki (requested by Reshmi)
- Notes:
- Noticed that fitsviewer and gammapy(the code is in cta.ipynb) can both display the information inside the obs & hdu index fits files.
- DC1 document notes that irf files for the cta 1dc are in a CALDB folder which I checked and confirmed. Also in that folder are the irf files that Massimo downloaded for me.
July 2, 2021
- What was done:
- Finished reading "Detection of the Crab Nebula with the 9.7m prototype Schwarzschild-Couder telescope".
- Things left to do:
- Notes:
- Reading: They used 17.6 hours of concurrent ON/OFF observations from the pSCT alone to optimize the analysis further. They were able to get a final significance of 7.3. This compares to 8.6 from the full dataset. I'm not sure what counts as the full dataset though.
July 1, 2021
- What was done:
- Started reading "Detection of the Crab Nebula with the 9.7m prototype Schwarzschild-Couder telescope".
- Things left to do:
- Finish reading paper and take notes.
- Notes:
June 30, 2021
- What was done:
- Took notes on the obs_index file
- Things left to do:
- check-in with Massimo
- Notes:
- obs_index notes(again found after pressing the all button under the table column):
- Column names: OBS_ID, RA_PNT, DEC_PNT, GLON_PNT, GLAT_PNT ZEN_PNT
- OBS_ID: again the observation number
- RA_PNT: assuming this is the RA the telescope is pointing at
- DEC_PNT: assuming the same as above but for the declination
- GLON_PNT: assuming this is the galactic longitude pointing direction
- GLAT_PNT: assuming this is galactic latitude
- ZEN_PNT: assuming this is the zenith angle pointing direction but i'm not sure
- Questions:
- Does "ZEN_PNT" refer to the zenith angle?
June 29, 2021
- What was done:
- Learned how to start fitsviewer-----> ./fv #must be inside fv5.5.2 directory
- Took notes on what I saw in hdu_index
- Made a text file version of the fits file.
- Things left to do:
- Take notes on obs_index.fits.gz
- Notes:
- Was not able to use the ./fv outside of the fv5.5.2 directory. Possibly can only start fitsviewer from that directory. This must be because it's a script and not an actual linux command.
- hdu_index notes (from pressing the all button under the table column):
- Column names: OBS_ID, HDU_TYPE, HDU_CLASS, FILE_DIR, FILE_NAME, HDU_NAME
- OBS_ID: the observation number
- HDU_TYPE possible values: events, gti, aeff, psf, bkg
- HDU_CLASS possible values: events, gti, aeff_2d, edisp_2d, psf_3gauss, bkg_3d
- FILE_NAME: so far i only see some combination of irf_file.fits and gps_baseline_ (observation number here).fits
- HDU_NAME possible values: EVENTS, GTI, EFFECTIVE AREA, ENERGY DISPERSION, POINT SPREAD FUNCTION, BACKGROUND
- Questions:
- What does gti/GTI mean in the case of the HDU_TYPE/NAME?
June 28, 2021
- What was done:
- Met with Massimo to copy cta files over to my directory and had ds9 set up to view fits files.
- Massimo sent me an email with a pdf of the CTA DC1 to read.
- Nevis VERITAS/CTA meeting
- installed fitsviewer.
- Things left to do:
- check index files using fitsviewer. Take notes on these.
- Notes:
- I'm not currently sure about how to start fitsviewer. I'm going to check the fitsviewer website for help.
Week 4
- What was done:
- Completed tutorials:
- Overview – overview.ipynb
CTA with gammapy – cta.ipynb
3D map simulation – simulate_3d.ipynb
1D spectrum simulation – spectrum_simulation.ipynb
Point source sensitivity – cta_sensitivity.ipynb
- Went through some exercises in the tutorials. Included plots I added as attatchments to this page.
- Attended VERITAS summer meeting. Went to blazar science and ACG talks.
- Things left to do:
- Complete exercises from the tutorials i've completed so far to practice what they covered.
- Will go through irf section of cta.ipynb again to take notes on the plots the code produces.
- Need to complete taking notes on the papers I have read/need to read so far.
June 24, 2021
- What was done today:
- Attended 1st half of today's session of the VERITAS summer meeting.
- Attended REU talk
- Took notes on cta.ipynb. Worked on exercises in overview.ipynb but struggled getting through the first exercise.
- Made a sky map of hess observations!
- Things left to do:
- Finish notes on cta.ipynb
- Notes
- overview.ipynb exercise notes: my best guess is that i am supposed to use SphericalCircle from astropy.visualization.wcsaxes.
- ^^^Figured it out
June 16, 2021
- What was done today:
- read about fits, found the standard paper for fits
- read about the icrs, dec, and ra
- looked for a formal definition of the dl3-dr1 data from hess. did not find much info about what a data level is
- ran into same issue with the path associated with the GAMMAPY_DATA environment variable
- I fixed this by adding a line to my .profile on the nevis computers. I don't see this becoming a problem again.
- completed tutorial 2
- What is left to do:
- Read up on background modeling.
- Understand what the classes of gammapy do
- get a better understanding of how the analysis (both high level and lower level gammapy api)
June 17-18, 2021
- What was done today:
- Went over again the analysis steps found in tutorial "analysis 1"
- Things left to do:
- started working through tutorial "overview"
- Notes:
- How higher-level analysis works in gammapy:
- tutorial intro intro definition:
- (data reduction): observations reduced to a specified geometry (1D/3D). Combined with IRFS, this makes a dataset
- (Analysis): set a physical model and fit it to the datasets
- definition based on code:
- create config object for the settings used in your analysis
- set config object's type, stack, geom, background, fit, and flux_point settings settings
- (optional) write config object to a YAML file to use later.
- select observations to use
- data reduction
- (optional) save dataset to disk
- create model_config object with model settings
- set model_config object to analysis object
- use run_fit on analysis object
- create model best fit yaml file.
- estimate flux points
- questions:
- what is the model-best-fit.yaml file for? what about the model-best-fit_covariance.dat file?
- is data really reduced?
June 9, 2021
- What was done today:
- Added gammapy resources to .myprofile file
- started working on gammapy tutorials
- code to start tutorials:
-
ssh jbatshoun@tehanu.nevis.columbia.edu -L 9888:localhost:9888
- module load gammapy/0.18
- gammapy_start
- jupyter notebook --no-browser --port=9888
- copy & paste resulting link to chrome and use jupyter notebook normally
- COMPLETED: 1st gammapy tutorial analysis_1.ipynb
- Things left to do:
- create a .myprofile and copy contents of .profile into it.
- Remove gammapy line in .profile so that it is the same as when I first started (This might be unnecessary).
- Notes:
- Useful commands
- To check where the "juypter notebook" command is being used from (i.e. gammapy vs python): which jupyter-notebook
- Made an error when executing "export $GAMMAPY_DATA". executed in jbatshoun directory and not datasets directory. Noticed in tutorial what should have been the real path and made corrections.
June 9, 2021
- What was done today:
- Things Left to do:
- Notes:
- aa5351-06: Is the IRF a good measure of telescope performance? what about the psf?
June 8, 2021
- Read through gammapy and cta explanation of IRFs
- Read gammapy overview
June 7, 2021 (Meeting Massimo, Jamil)
- Introduction to project
- To-do list
- https://docs.gammapy.org/0.18.2/
- Read overview carefully
- Installation: no need to worry about it, we have shared tools on the nevis cluster
- log into the nevis cluster
- module load gammapy/0.18
- gammapy_start
- download tutorial datasets (gammapy download tutorials --release 0.18.2 , export GAMMAPY_DATA=<>)
- go through tutorials
- Weekly meeting with Massimo: Thursdays, 11 AM
--
Massimo Capasso - 2021-06-27