-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DL2 to DL3 step implementation #81
Conversation
� Conflicts: � environment.yml � setup.py
Codecov Report
@@ Coverage Diff @@
## main #81 +/- ##
=======================================
Coverage 81.39% 81.40%
=======================================
Files 41 41
Lines 4294 4296 +2
=======================================
+ Hits 3495 3497 +2
Misses 799 799
Continue to review full report at Codecov.
|
Currently, we may have problems with IERS-A data from astropy (see astropy/astropy#10494). We should download the IERS data separately (keep them up to date on a weekly basis?) and cache that data without trying to download anything when running in the cluster. Just for reference, I leave here a link on how to proceed with the astropy cache when working in clusters (https://docs.astropy.org/en/stable/utils/data.html#astropy-data-and-clusters) |
@moralejo @rlopezcoto @chaimain how does this directory structure scheme for post-DL2 analysis steps sound to you? |
Sorry @morcuended , we have been very busy this week with the school. The structure looks overall good, thanks for this taking care of proposing it and for this PR. I just have a few questions:
|
We indeed have to have a discussion on the definition of
It seems to be by using a database query from
For IRFs, we are still awaiting the completion of various tasks - producing 'all-sky' MC list, creating the new RF model, DL2 files, merging the IRF interpolation and using energy-dependent cuts in IRF/DL3 Tools. I think it would make sense, only after these tasks, that we can talk on a 'standard' IRF type/s. |
Hi @rlopezcoto After talking with @chaimain I realized that there are still some open issues that are not reflected in this very simplistic scheme. The main one is the selection of proper IRFs for each observation. I'll try to answer your questions below:
Here I was foreseen to have an IRF file per set of cuts not per source. This could rather be done by lstmcpipe and then we just would look for them. As @chaimain says there are several open points to be considered before we go further in lstosa. For the moment we could produce IRF-less DL3 files and store them in the same night/date directory (without sorting them by source). We would not run either the observation indexing script for the moment. Or we could not produce DL3 files at all for the time being until previous issues are worked out. I just wanted to move this forward so we could have automatic & fast next-day high-level results. But I guess that it only makes sense to produce theta2 & significance results for now from DL2 files or these DL3 without IRFs incorporated. Do you think this makes sense @rlopezcoto? |
thanks @morcuended and @chaimain, this sounds good for the time being, it would, however, be great if DL3 files could at least be produced for a few sets of cuts (that can be discussed as @chaimain was suggesting).
what is the problem with running the observation indexing script? |
Sorry, I just checked again, and there should be no problem with running the indexing Tool for IRF-less DL3 files. Also, we will try and merge the PR in lstchain for using energy-dependent cuts, so we can have a better definition on the types of cuts we apply, based on the gamma efficiency for each energy bin we define. |
Then we will do it like this. No IRFs but we do index the files. For the time being, I will test the production of DL3 with fixed cuts then we will move to energy-dependent ones. |
Great, thanks guys! |
Hi @morcuended, after discussing with @maxnoe regarding IRF-less DL3 production, we should not create DL3 files without IRFs, as it provides no additional information over the DL2 files. The lstchain DL3 Tool, will be fixed in #709 to require IRFs, and take the gammaness cut information from the provided IRFs only, be it global cut or energy-dependent cuts. It will be available in the upcoming lstchain release. So, maybe you should close #94 |
No, I have not yet discussed the "standard" cuts and type of IRFs to be produced. Will do it on Slack now, and if need be, open a github issue. |
Usage:
dl3_stage -d 2021_08_08 -c cfg/sequencer.cfg LST1
It makes use of the metadata information extracted from the TCU database (source name and RADec coordinates). (WARNING: a run catalog is to be implemented. This would ease the access to metadata information needed for the DL3 tool).
It pipes the lstchain scripts:
lstchain_create_irf_files
(once per selection cuts)lstchain_create_dl3_file
(run-wise)lstchain_create_dl3_index_files
(source-wise)The idea is to end up with the following structure:
Right now this script is intended to be run separately, once closer has been launched and files have been moved to final destinations.
TODO in further PRs:
datasequence
.