# Trying out jointcal with pipeline tutorial

**URL:** <https://www.rubin.community/t/trying-out-jointcal-with-pipeline-tutorial/2895>\
**Category:** Support\
**Created:** [May 8, 2018, 10:21pm UTC](https://www.rubin.community/t/trying-out-jointcal-with-pipeline-tutorial/2895 "2018-05-08T22:21:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yoachim](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/yoachim/32/74_2.png) [@yoachim](https://www.rubin.community/u/yoachim)\
**Post date:** [May 8, 2018, 10:21pm UTC](https://www.rubin.community/t/trying-out-jointcal-with-pipeline-tutorial/2895/1 "2018-05-08T22:21:50Z")

</div>

I’ve run through the [LSST Science Pipelines](https://pipelines.lsst.io/getting-started/index.html#getting-started-tutorials), and thought it would be fun to try to run jointcal on the results.

Trying  
`jointcal.py DATA --rerun coadd:jointOut`  
I get:

```
root INFO: Running: /Users/yoachim/lsstp3/stack/miniconda3-4.3.21-10a4fa6/DarwinX86/jointcal/15.0/bin/jointcal.py DATA --rerun coadd:jointOut
Traceback (most recent call last):
  File "/Users/yoachim/lsstp3/stack/miniconda3-4.3.21-10a4fa6/DarwinX86/jointcal/15.0/bin/jointcal.py", line 5, in <module>
    JointcalTask.parseAndRun()
  File "/Users/yoachim/lsstp3/stack/miniconda3-4.3.21-10a4fa6/DarwinX86/pipe_base/15.0/python/lsst/pipe/base/cmdLineTask.py", line 586, in parseAndRun
    resultList = taskRunner.run(parsedCmd)
  File "/Users/yoachim/lsstp3/stack/miniconda3-4.3.21-10a4fa6/DarwinX86/pipe_base/15.0/python/lsst/pipe/base/cmdLineTask.py", line 233, in run
    if self.precall(parsedCmd):
  File "/Users/yoachim/lsstp3/stack/miniconda3-4.3.21-10a4fa6/DarwinX86/pipe_base/15.0/python/lsst/pipe/base/cmdLineTask.py", line 347, in precall
    task = self.makeTask(parsedCmd=parsedCmd)
  File "/Users/yoachim/lsstp3/stack/miniconda3-4.3.21-10a4fa6/DarwinX86/pipe_base/15.0/python/lsst/pipe/base/cmdLineTask.py", line 472, in makeTask
    return self.TaskClass(config=self.config, log=self.log, butler=butler)
  File "/Users/yoachim/lsstp3/stack/miniconda3-4.3.21-10a4fa6/DarwinX86/jointcal/15.0/python/lsst/jointcal/jointcal.py", line 233, in __init__
    self.makeSubtask('astrometryRefObjLoader', butler=butler)
  File "/Users/yoachim/lsstp3/stack/miniconda3-4.3.21-10a4fa6/DarwinX86/pipe_base/15.0/python/lsst/pipe/base/task.py", line 299, in makeSubtask
    subtask = taskField.apply(name=name, parentTask=self, **keyArgs)
  File "/Users/yoachim/lsstp3/stack/miniconda3-4.3.21-10a4fa6/DarwinX86/pex_config/15.0/python/lsst/pex/config/configurableField.py", line 83, in apply
    return self.target(*args, config=self.value, **kw)
  File "/Users/yoachim/lsstp3/stack/miniconda3-4.3.21-10a4fa6/DarwinX86/meas_algorithms/15.0/python/lsst/meas/algorithms/loadIndexedReferenceObjects.py", line 49, in __init__
    dataset_config = butler.get("ref_cat_config", name=self.config.ref_dataset_name, immediate=True)
  File "/Users/yoachim/lsstp3/stack/miniconda3-4.3.21-10a4fa6/DarwinX86/daf_persistence/15.0/python/lsst/daf/persistence/butler.py", line 1410, in get
    raise NoResults("No locations for get:", datasetType, dataId)
lsst.daf.persistence.butlerExceptions.NoResults: No locations for get: datasetType:ref_cat_config dataId:DataId(initialdata={'name': 'cal_ref_cat'}, tag=set())

```

So how do I set my `ref_cat_config`? As part of the tutorial I set up `DATA/ref_cats/ps1_pv3_3pi_20170110` from the `ci_hsc` repo and that seemed to work find with `processCcd.py`.

---

<div class="post-metadata">

**Author:** ![parejkoj](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/parejkoj/32/138_2.png) [@parejkoj](https://www.rubin.community/u/parejkoj)\
**Post date:** [May 8, 2018, 10:35pm UTC](https://www.rubin.community/t/trying-out-jointcal-with-pipeline-tutorial/2895/2 "2018-05-08T22:35:56Z")

</div>

jointcal uses the standard refcat system, so you shouldn’t have to change anything compared to how processCcd works.

---

<div class="post-metadata">

**Author:** ![price](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/price/32/488_2.png) [@price](https://www.rubin.community/u/price)\
**Post date:** [May 8, 2018, 11:17pm UTC](https://www.rubin.community/t/trying-out-jointcal-with-pipeline-tutorial/2895/3 "2018-05-08T23:17:47Z")

</div>

> [@yoachim](#):
>
> lsst.daf.persistence.butlerExceptions.NoResults: No locations for get: datasetType:ref\_cat\_config dataId:DataId(initialdata={‘name’: ‘cal\_ref\_cat’}, tag=set())

I think you need a config override to tell it to use the `ps1_pv3_3pi_20170110` refcat.

---

<div class="post-metadata">

**Author:** ![yoachim](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/yoachim/32/74_2.png) [@yoachim](https://www.rubin.community/u/yoachim)\
**Post date:** [May 8, 2018, 11:25pm UTC](https://www.rubin.community/t/trying-out-jointcal-with-pipeline-tutorial/2895/4 "2018-05-08T23:25:42Z")

</div>

yes, thanks. I just worked my way back and found where `obs_subaru` was doing that for me automatically.

---

<div class="post-metadata">

**Author:** ![parejkoj](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/parejkoj/32/138_2.png) [@parejkoj](https://www.rubin.community/u/parejkoj)\
**Post date:** [May 10, 2018, 5:56am UTC](https://www.rubin.community/t/trying-out-jointcal-with-pipeline-tutorial/2895/5 "2018-05-10T05:56:24Z")

</div>

So, what happened?

---

<div class="post-metadata">

**Author:** ![yoachim](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/yoachim/32/74_2.png) [@yoachim](https://www.rubin.community/u/yoachim)\
**Post date:** [May 10, 2018, 6:04pm UTC](https://www.rubin.community/t/trying-out-jointcal-with-pipeline-tutorial/2895/6 "2018-05-10T18:04:49Z")

</div>

I cargo-culted some lines about `refObjLoader` into a config file and it looks like it ran and generated output! Now to see if the wcs is better…
