! butler create GEN3_run
! butler register-instrument GEN3_run/ lsst.obs.subaru.HyperSuprimeCam
I used a hack to get the refcats into this butler repository
Question - Is there a way of ingestiing the refcats in a gen 3 format ??
! butler import GEN3_run/ ~/lsst_stack/DATA_gen3/ --export-file exports.yaml
! butler ingest-raws GEN3_run/ DATA_gen3/HSC/raw/
! butler define-visits GEN3_run/ HSC
butler write-curated-calibrations GEN3_run/ HSC
Useful links
These links are very helpful when defining the configs for each task for your data (path within your conda environment (starting point is within lsst_stact directory)
"stack/miniconda3-py37_4.8.2-cb4e2dc/Linux64/pipe_tasks/21.0.0+44ca056b81/python/lsst/pipe/tasks/" and
"stack/miniconda3-py37_4.8.2-cb4e2dc/Linux64/ip_isr/21.0.0+ee58a624b3/python/lsst/ip/isr/")
Question - Are the configs correct?
pipetask run -b GEN3_run/ --input HSC/raw/all --register-dataset-types -p "${PIPE_TASKS_DIR}/pipelines/DRP.yaml":processCcd
--instrument lsst.obs.subaru.HyperSuprimeCam --output-run demo_collection -c isr:doBias=False -c
isr:doBrighterFatter=False -c isr:doDark=False -c isr:doFlat=False -c isr:doDefect=False -c
calibrate:doPhotoCal=False -c calibrate:doAstrometry=False
Useful links
These links are very helpful when defining the configs for each task for your data (path within your conda environment (starting point is within lsst_stact directory)
"stack/miniconda3-py37_4.8.2-cb4e2dc/Linux64/pipe_tasks/21.0.0+44ca056b81/python/lsst/pipe/tasks/"
The healSparsePropertyMaps was commented out. As a EUPS couldn't recognise new files added into the python pipetask directory. (These file weren't already in the stack unlike the other files I've edited)
I'm assuming that the "healSparsePropertyMaps" deals with the images that have 0 good pixels in "directWarp" and "psfMatchedWarp"
Before you can run the coaddtions pipe task you have to run the make-discrete-skymap command line task
! butler make-discrete-skymap test1/GEN3_run HSC --collections demo_collection
! pipetask run -b GEN3_run/ --input demo_collection --input skymaps --register-dataset-types -p DRP.yaml:coaddition
--instrument lsst.obs.subaru.HyperSuprimeCam --output-run coadd -c makeWarp:doApplySkyCorr=False -c
makeWarp:doApplyExternalSkyWcs=False -c makeWarp:doApplyExternalPhotoCalib=False -d "(patch=0 AND visit=903988) OR
(patch=1 AND visit IN (903986,903988,903990,904014,903334,903336,903338,903344,903346)) OR
(patch=2 AND visit IN (903986,903988,903990,904014,903334,903336,903344,903346)) OR
(patch=3 AND visit IN (903986,903988,903334)) OR
(patch=4 AND visit IN (903986,903988,903990,904010,904014,903334,903336,903338,903342,903344,903346)) OR
(patch=5 AND visit IN (903986,903988,903990,904010,904014,903334,903336,903338,903342,903344,903346)) OR
(patch=7 AND visit IN (904010,904014,903342,903344,903346)) OR
(patch=8 AND visit IN (904010,904014,903342,903344,903346)) "
The coaddtions pipetask directory sturture looks like this
Very similar to the gen 2 repository which was converted into gen3. (assuming that the name convention of files has cahnge from gen2 to gen3 format)
Useful links
These links are very helpful when defining the configs for each task for your data (path within your conda environment (starting point is within lsst_stact directory)
"stack/miniconda3-py37_4.8.2-cb4e2dc/Linux64/pipe_tasks/21.0.0+44ca056b81/python/lsst/pipe/tasks/" and
"stack/miniconda3-py37_4.8.2-cb4e2dc/Linux64/meas_base/21.0.0+087873070b/python/lsst/meas/base/")
! pipetask run -b test1/GEN3_run --input demo_collection --input skymaps --input coadd --register-dataset-types
-p DRP.yaml:detection --instrument lsst.obs.subaru.HyperSuprimeCam --output-run dec
I had edit 2 files to get this command to work
with the exposureidinfo.py I updated that file to the latest version that is found on the github (https://github.com/lsst/obs_base/blob/master/python/lsst/obs/base/exposureIdInfo.py)
Then I imported this in the mulitband.py (from lsst.obs.base import ExposureIdInfo)
I copyed and pasted the latest runQuantum from the github (https://github.com/lsst/pipe_tasks/blob/master/python/lsst/pipe/tasks/mergeMeasurements.py)
After these changes the command worked
pipetask run -b test1/GEN3_run --input demo_collection --input skymaps --input coadd --input dec
--register-dataset-types -p DRP.yaml:mergeDetections --instrument lsst.obs.subaru.HyperSuprimeCam
--output-run coaddPhot_merge_12 --debug
Similarly to the task above i had to Import the exposureidinfo and change runQuantum (to the latest version that found on the github
https://github.com/lsst/pipe_tasks/blob/master/python/lsst/pipe/tasks/deblendCoaddSourcesPipeline.py)
(from lsst.obs.base import ExposureIdInfo)
In addtion to this i had to edit line 205 as outputs.templateCatalogs
pipetask run -b test1/GEN3_run --input demo_collection --input skymaps --input coadd --input dec
--input coaddPhot_merge_12 --register-dataset-types -p DRP.yaml:deblend --instrument lsst.obs.subaru.HyperSuprimeCam
--output-run coaddPhot_deblend_2
Here is a example:
Question - is this error message expected ???
I haven't got this working
I am getting this error