# MeasureMultiTask implementation

**URL:** <https://www.rubin.community/t/measuremultitask-implementation/6224>\
**Category:** Rubin Science Platform\
**Created:** [January 14, 2022, 8:19pm UTC](https://www.rubin.community/t/measuremultitask-implementation/6224 "2022-01-14T20:19:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![petarz](https://avatars.discourse-cdn.com/v4/letter/p/f19dbf/32.png) [@petarz](https://www.rubin.community/u/petarz)\
**Post date:** [January 14, 2022, 8:19pm UTC](https://www.rubin.community/t/measuremultitask-implementation/6224/1 "2022-01-14T20:19:06Z")

</div>

Hi,  
I would like to use MeasureMultiTask from meas\_modelfit for measuring moving sources. It is mentioned in the docs but the implementation seems to be missing. Can someone tell me if it was renamed or moved somewhere?

Thanks,  
Petar

---

<div class="post-metadata">

**Author:** ![jbosch](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/jbosch/32/12_2.png) [@jbosch](https://www.rubin.community/u/jbosch)\
**Post date:** [January 21, 2022, 8:26pm UTC](https://www.rubin.community/t/measuremultitask-implementation/6224/2 "2022-01-21T20:26:42Z")

</div>

That task never made it out of the proof-of-concept phase, and was removed before ever being used in production (and everything it did then is now sufficiently out of date that I don’t think it’d be of any use). I wasn’t aware there was still a reference to it in the docs, and it sounds like that’s a problem we need to fix.

If you’re trying to write a new `PipelineTask`to do multifit-style measurements, first be aware that this is a pretty significant undertaking, but here are a few starting points:

- First you’ll want to read up on `PipelineTask`, the thing you’ll want to inherit from, itself. The class reference docs are [here](https://pipelines.lsst.io/py-api/lsst.pipe.base.PipelineTask.html#lsst.pipe.base.PipelineTask), but there’s also a big tutorial that’s in review and close to completion. I’ll be back with a link to that once it lands.

- I think you’ll want you task to run on each patch independently (maybe patch+band combination, if you want to process each band independently), read one of our patch-level coadd-measurement catalogs as inputs, and load cutouts from the overlapping `calexp` datasets as you iterate over the objects in that catalog. You’ll also want to read FGCM and jointcal output datasets to update the photometric calibration and WCS (respectively) to our best estimates. There are examples of how to do all of these things scattered across many of our other tasks (in `pipe_tasks`, mostly) but there are none that do all of them, and all of those potential examples have a lot of other complicating features you don’t care about.

I’m happy to help more with the details, but I think it’s probably best to stop here instead of writing a novel that wouldn’t necessarily make sense to you yet anyway. And if you can find a way to arrange it, doing some pair-coding with a DM team member would definitely be the fastest way to get this up and running quickly.

---

<div class="post-metadata">

**Author:** ![petarz](https://avatars.discourse-cdn.com/v4/letter/p/f19dbf/32.png) [@petarz](https://www.rubin.community/u/petarz)\
**Post date:** [January 21, 2022, 8:49pm UTC](https://www.rubin.community/t/measuremultitask-implementation/6224/3 "2022-01-21T20:49:07Z")

</div>

Great. Thanks for a great introduction. I will follow those breadcrumbs and hopefully not get lost along the way. I will also be waiting for that tutorial.
