# Lots of warnings and errors when combining a set of images, I think WCS related

**URL:** <https://community.openastronomy.org/t/lots-of-warnings-and-errors-when-combining-a-set-of-images-i-think-wcs-related/249>\
**Category:** Astropy\
**Tags:** astropy, question\
**Created:** [January 8, 2022, 8:31pm UTC](https://community.openastronomy.org/t/lots-of-warnings-and-errors-when-combining-a-set-of-images-i-think-wcs-related/249 "2022-01-08T20:31:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![astropyLearner](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@astropyLearner](https://community.openastronomy.org/u/astropyLearner)\
**Post date:** [January 8, 2022, 8:31pm UTC](https://community.openastronomy.org/t/lots-of-warnings-and-errors-when-combining-a-set-of-images-i-think-wcs-related/249/1 "2022-01-08T20:31:57Z")

</div>

Hello!

I am creating a pipeline for our processing and reductions, and I am curious what all the errors here are:

 ![Screen Shot 2022-01-08 at 2.27.33 PM](https://europe1.discourse-cdn.com/flex005/uploads/openastronomy/original/1X/9fb98b7b06bb0e44cd8f92388bba134b8c20919d.jpeg)

It’s obviously related to the WCS info that IS NOT currently present in any of my data (I will use [Astrometry.net](http://Astrometry.net)’s offline package to create it later, unless anyone can suggest a better way :]).

Is there a flag I can put somewhere that will solve this, or even anything that will just suppress the warnings as I am pretty sure the combination goes on without a hitch.

Thanks for looking!  
JW

---

<div class="post-metadata">

**Author:** ![hamogu](https://dub1.discourse-cdn.com/flex005/user_avatar/community.openastronomy.org/hamogu/32/93_2.png) [@hamogu](https://community.openastronomy.org/u/hamogu)\
**Post date:** [January 20, 2022, 3:53pm UTC](https://community.openastronomy.org/t/lots-of-warnings-and-errors-when-combining-a-set-of-images-i-think-wcs-related/249/2 "2022-01-20T15:53:28Z")

</div>

Look like the WCS information is missing (and filled with default values like 0) or it’s in the file header but makes no sense (again probably all 0). Then, the code does something that does not work (e.g. inverting a matrix that’s all 0) and that’s where your warning comes from. If it works for you and you just want to suppress the output, have a look at the Python warning module [warnings — Warning control — Python 3.10.2 documentation](https://docs.python.org/3/library/warnings.html) that has functions for exactly that.
