You probably do not have Xcode developer tools. You can get them from your OS X Install Disc or download them from the Apple Developer website.
In this occurrence COSMOS is not finding libpng. You need to locate libpng and add its location to the Makefile for all the programs that give this error. It should resemble something similar to the following:
f77 -o $@ -L$(BASE)/lib -L$(PGLIB) -L$(XLIB) -L$(FITSLIB) $@.o -lcfitsio\ -lX11 -lspline -lpgplot -lcpgplot -lcosmos /usr/lib/libpng.so.3
In this case it was reported that by switching the linker order of -lpgplot and -lcpgplot in the Makefile will solve this problem.
In this case the library libimacs.a or libspline.a already exist. The libraries can be found within Cosmos2/source/clardy or Cosmos2/source/dierckx. Simply deleting them and recompiling should solve the problem.
Make sure you are using 64-bit C and FORTRAN compilers, which you can find and download at http://hpc.sourceforge.net. You also need to make sure that the correct compilers will be used, by making sure its path is found in the PATH environmental variable before any other location where previous versions may be installed.
You need to set the PERLLIB environmental variable to the location of Perl Modules.
You probably need to add the path to the missing library to the environmental variables LD_LIBRARY_PATH and DYLD_LIBRARY_PATH.
align-mask is not finding the rotation of the dewar. Try decreasing the searchbox
, run align-mask again and type no for the response to this question. Repeat this a few times and it should eventually find a rotation. If it does not, refer to Creating and Modifying Dewoff Files to ensure your dewar orientation is correct. If the dewar orientation is off by a large amount, align-mask may not converge and fail in this way.
It is possible that all the features are getting clipped out, so you may need to increase the siglimit
. Another possibility for this failure is that you may be using a feature that does not exist, or the distance is very large outside of the searchbox
. If all fails, one can manually tweak the offset, scale and rotation. Refer to Creating and Modifying Dewoff Files on how to do this.
If you are using the IMACS Long Camera, be sure to specify an order and grating angle in defineobs.
Things to try when this occurs:
search_height
or search_width
to a larger or smaller value. Typically these parameters should be no less than 2 pixels and no greater than 14 pixels.
siglimit
, it is possible that many features are getting clipped out.
histogram
mode off, sometimes there is so much confusion for an object that all the features get clipped out.
outlier-wt
mode off, the weighting can work unusually on some objects.
You need to first open DS9 within IRAF by typing !ds9 &
.
You need to uncomment the line #set stdimage = imt800
in your login.cl file, and change its value from "imt800" to something larger like "imt8192" to accommodate larger image files. For example, if you make the aforementioned changes, that line in your login.cl file should look like this:
set stdimage = imt8192