debian/0000755000000000000000000000000012175004072007164 5ustar debian/wcstools.examples0000644000000000000000000000002312040760347012601 0ustar SAOimage.scripts/* debian/clean0000644000000000000000000000005312040761224010167 0ustar man/man_generated/* libwcs/libwcstools.so* debian/compat0000644000000000000000000000000212040760347010367 0ustar 9 debian/changelog0000644000000000000000000000271612175003705011046 0ustar wcstools (3.8.7-2) unstable; urgency=low * Install wcscat.h. Closes: #717942 * Fix crashes found by the mayhem tool. Closes: #715682, #715755, #715905, #715956, #715957 -- Ole Streicher Sat, 27 Jul 2013 17:24:33 +0200 wcstools (3.8.7-1) unstable; urgency=low * Package description corrected. Closes: #699683 * Push policy version to 3.9.4 (no changes) * Forward CFLAGS, CPPFLAGS, LDFLAGS for fortification -- Ole Streicher Sat, 20 Apr 2013 08:33:51 +0200 wcstools (3.8.7-1~exp1) experimental; urgency=low * New upstream version -- Ole Streicher Sun, 21 Oct 2012 13:48:34 +0200 wcstools (3.8.6-1~exp1) experimental; urgency=low * New upstream version * Multiarch support * Fortify compilation -- Ole Streicher Thu, 16 Aug 2012 15:07:34 +0200 wcstools (3.8.5-1) unstable; urgency=low * New upstream version. * Bump Standards version to 3.9.3. * Set DM-Upload-Allowed: yes * Fix a crash that appears in saods9 -- Ole Streicher Mon, 04 Jun 2012 08:30:00 +0200 wcstools (3.8.4-2) unstable; urgency=low * Rename remap to wcsremap. Closes: #657644 * Rename imcat to imcatalog. Closes: #657645 -- Ole Streicher Fri, 27 Jan 2012 20:26:17 +0100 wcstools (3.8.4-1) unstable; urgency=low * Initial release. (Closes: #655695) -- Ole Streicher Fri, 13 Jan 2012 17:11:08 +0100 debian/wcstools.install0000644000000000000000000000001612040760347012433 0ustar bin/* usr/bin debian/control0000644000000000000000000000422612134433061010572 0ustar Source: wcstools Section: science Priority: optional Maintainer: Debian Science Maintainers Uploaders: Ole Streicher Build-Depends: debhelper (>= 9), dh-exec (>= 0.1), help2man Standards-Version: 3.9.4 Homepage: http://tdc-www.harvard.edu/software/wcstools/ Vcs-Git: git://anonscm.debian.org/debian-science/packages/wcstools.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/wcstools.git Package: wcstools Architecture: any Depends: libwcstools0 (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends} Description: Handle the WCS of a FITS image WCSTools is a set of software utilities, written in C, which create, display and manipulate the world coordinate system of a FITS or IRAF image, using specific keywords in the image header which relate pixel position within the image to position on the sky. Auxillary programs search star catalogs and manipulate images. . This package contains the binary tools. Package: libwcstools-dev Architecture: any Section: libdevel Depends: libwcstools0 (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends} Description: Handle the WCS of a FITS image (development files) WCSTools is a set of software utilities, written in C, which create, display and manipulate the world coordinate system of a FITS or IRAF image, using specific keywords in the image header which relate pixel position within the image to position on the sky. Auxillary programs search star catalogs and manipulate images. . This package contains the files needed for development. Package: libwcstools0 Architecture: any Section: libs Depends: ${misc:Depends}, ${shlibs:Depends} Pre-Depends: ${misc:Pre-Depends} Multi-Arch: same Description: Handle the WCS of a FITS image (shared library) WCSTools is a set of software utilities, written in C, which create, display and manipulate the world coordinate system of a FITS or IRAF image, using specific keywords in the image header which relate pixel position within the image to position on the sky. Auxillary programs search star catalogs and manipulate images. . This package contains the shared library. debian/docs0000644000000000000000000000000712040760347010041 0ustar Readme debian/wcstools.manpages0000644000000000000000000000003712040761124012555 0ustar man/man1/* man/man_generated/* debian/wcstools.lintian-overrides0000644000000000000000000000022512040760347014425 0ustar # Ang is used as an abbreviation for "angle" here. spelling-error-in-binary usr/bin/* ang and spelling-error-in-manpage usr/share/man/man1/* ang and debian/copyright0000644000000000000000000000366412040760347011135 0ustar Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=202 Upstream-Name: wcstools Upstram-Author: Doug Mink Source: http://tdc-www.harvard.edu/software/wcstools/ Files: * Copyright: Copyright (C) 1996-2011, Smithsonian Astrophysical Observatory, Cambridge, MA USA License: GPL This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. Files: libwcs/* Copyright: Copyright (C) 1995-2002, Mark Calabretta Copyright (C) 1994-2011 Associated Universities, Inc. Washington DC, USA. Copyright (C) 1995-2011 Smithsonian Astrophysical Observatory, Cambridge, MA, USA License: LGPLv2.1+ This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . On Debian systems, the full text of the GNU Lesser General Public License version 3 can be found in the file `/usr/share/common-licenses/LGPL-2.1'. Files: debian/* Copyright: not-applicable License: public-domain Debian packaging by Ole Streicher debian/libwcstools0.lintian-overrides0000644000000000000000000000013112040760347015170 0ustar # calling exit() is part of the wcstools API. shlib-calls-exit usr/lib/*/libwcstools.so* debian/watch0000644000000000000000000000027212040760347010223 0ustar version=3 # The ftp server really WANTS to have an email address. Use a generic hint here. ftp://anonymous:uscan%40debian.org@cfa-ftp.harvard.edu/pub/gsc/WCSTools/wcstools-(.+)\.tar\.gz debian/patches/0000755000000000000000000000000012175003666010623 5ustar debian/patches/fix_spelling.patch0000644000000000000000000000417612040760347014334 0ustar Author: Ole Streicher Description: Spellfixes to make lintian happy --- a/libwcs/fitsfile.c +++ b/libwcs/fitsfile.c @@ -1568,7 +1568,7 @@ if (!access (filename, 0)) { fd = open (filename, O_WRONLY); if (fd < 3) { - snprintf (fitserrmsg,79, "FITSWIMAGE: file %s not writeable\n", filename); + snprintf (fitserrmsg,79, "FITSWIMAGE: file %s not writable\n", filename); return (0); } } @@ -1607,7 +1607,7 @@ if (!access (filename, 0)) { fd = open (filename, O_WRONLY); if (fd < 3) { - snprintf (fitserrmsg,79, "FITSWEXT: file %s not writeable\n", + snprintf (fitserrmsg,79, "FITSWEXT: file %s not writable\n", filename); return (0); } @@ -1869,7 +1869,7 @@ if (!access (filename, 0)) { fdout = open (filename, O_WRONLY); if (fdout < 3) { - snprintf (fitserrmsg,79, "FITSCIMAGE: file %s not writeable\n", filename); + snprintf (fitserrmsg,79, "FITSCIMAGE: file %s not writable\n", filename); return (0); } } @@ -1955,7 +1955,7 @@ if (!access (filename, 0)) { fd = open (filename, O_WRONLY); if (fd < 3) { - snprintf (fitserrmsg, 79, "FITSWHEAD: file %s not writeable\n", filename); + snprintf (fitserrmsg, 79, "FITSWHEAD: file %s not writable\n", filename); return (0); } } @@ -2057,7 +2057,7 @@ if (ext != NULL) *ext = cext; if (fd < 3) { - snprintf (fitserrmsg, 79, "FITSWEXHEAD: file %s not writeable\n", filename); + snprintf (fitserrmsg, 79, "FITSWEXHEAD: file %s not writable\n", filename); return (-1); } --- a/libwcs/imhfile.c +++ b/libwcs/imhfile.c @@ -896,7 +896,7 @@ if (!access (hdrname, 0)) { fd = open (hdrname, O_WRONLY); if (fd < 3) { - fprintf (stderr, "IRAFWIMAGE: file %s not writeable\n", hdrname); + fprintf (stderr, "IRAFWIMAGE: file %s not writable\n", hdrname); return (0); } } @@ -993,7 +993,7 @@ if (!access (pixname, 0)) { fd = open (pixname, O_WRONLY); if (fd < 3) { - fprintf (stderr, "IRAFWIMAGE: file %s not writeable\n", pixname); + fprintf (stderr, "IRAFWIMAGE: file %s not writable\n", pixname); return (0); } } debian/patches/series0000644000000000000000000000012712175003315012027 0ustar makefiles.patch fix_spelling.patch fix_manpages.patch use_abort.patch fix_mayhem.patch debian/patches/fix_manpages.patch0000644000000000000000000005626412134433061014311 0ustar Author: Ole Streicher Description: Fix the names and spelling of manpages to make lintian happy --- a/man/man1/skycoor.1 +++ b/man/man1/skycoor.1 @@ -1,12 +1,12 @@ -.TH skycoor(1) WCSTools "9 November 2001" +.TH skycoor 1 WCSTools "9 November 2001" .SH Name skycoor \- Convert coordinates .SH Synopsis -skycoor [-bdgjv] [-n ndec] ra1 dec1 sys1 ... ran decn sysn +skycoor [\-bdgjv] [\-n ndec] ra1 dec1 sys1 ... ran decn sysn .br or .br -skycoor [-vbjg] [-n ndec] @listfile +skycoor [\-vbjg] [\-n ndec] @listfile .SH Description .I skycoor converts coordinates between the J2000, B1950, and galactic coordinate --- a/man/man1/sethead.1 +++ b/man/man1/sethead.1 @@ -1,8 +1,8 @@ -.TH sethead(1) WCSTools "6 July 2001" +.TH sethead 1 WCSTools "6 July 2001" .SH Name sethead \- Set FITS or IRAF header keyword values .SH Synopsis -sethead [-dknv][r letter] kw1=val1 kw2=val2 ... kwn=valuen +sethead [\-dknv][r letter] kw1=val1 kw2=val2 ... kwn=valuen .SH Description Set parameters in the header of a FITS or IRAF image. If the keywords do not already exist, they are added at the end of the header. Values are --- a/man/man1/keyhead.1 +++ b/man/man1/keyhead.1 @@ -1,13 +1,13 @@ -.TH keyhead(1) WCSTools "6 July 2001" +.TH keyhead 1 WCSTools "6 July 2001" .SH Name keyhead \- Change FITS or IRAF header keyword names .SH Synopsis -sethead [-hknv] kw1=kw1a kw2=kwd2a ... kwn=kwdna +keyhead [\-hknv] kw1=kw1a kw2=kwd2a ... kwn=kwdna .SH Description Change the names of keywords in FITS or IRAF image headers. Each current image keyword whose entry is to be modified should be followed by an equal sign and a second keyword, with no intervening spaces. -If the -r option is used, the value of the second keyword is transfered +If the \-r option is used, the value of the second keyword is transferred to that of the first. Otherwise, the name of the first keyword is changed to the second keyword. To change keywords in a list of files, substitute @ for the file --- a/man/man1/sgsc.1 +++ b/man/man1/sgsc.1 @@ -1,15 +1,15 @@ -.TH sgsc(1) WCS "14 April 1998" +.TH sgsc 1 WCS "14 April 1998" .SH Name sgsc \- Find HST GSC stars in a square on the sky .SH Synopsis -sgsc [options] [-b or -j] ra dec +sgsc [options] [\-b or \-j] ra dec .SH Description .I sgsc is a utility for finding all of the Hubble Space Telescope Guide Star Catalog objects in a specified region of the sky and listing them with their sky positions and magnitudes in order of brightness, with the brighter ones first. -Output is to standard out, unless the -w flag is set, in +Output is to standard out, unless the \-w flag is set, in which case it goes to objectname.gsc or search.gsc. It is somewhat similar to RGSC, which can search from lists of coordinates but cannot sort the output. It is a link to scat. @@ -25,7 +25,7 @@ Sort by distance from center instead of flux .TP .B \-g -Object class (0=stars 3=galaxies -1=all) +Object class (0=stars 3=galaxies \-1=all) .TP .B \-h Print heading, else do not @@ -34,7 +34,7 @@ Output J2000 (FK5) coordinates around this center .TP .B \-m [] -Limiting catalog magnitude(s) (default none, bright -2 if only faint is given) +Limiting catalog magnitude(s) (default none, bright \-2 if only faint is given) .TP .B \-n Number of brightest stars to print --- a/man/man1/setpix.1 +++ b/man/man1/setpix.1 @@ -1,8 +1,8 @@ -.TH setpix(1) WCSTools "6 July 2001" +.TH setpix 1 WCSTools "6 July 2001" .SH Name setpix \- Set FITS or IRAF image values .SH Synopsis -setpix [-vn] file.fts [x_range y_range value] [@valuefile] +setpix [\-vn] file.fts [x_range y_range value] [@valuefile] .SH Description Set a specified pixel or range of pixels in a FITS or IRAF image to a specified value. More than one range of pixels and values may be specified --- a/man/man1/sky2xy.1 +++ b/man/man1/sky2xy.1 @@ -1,12 +1,12 @@ -.TH sky2xy(1) WCSTools "6 July 2001" +.TH sky2xy 1 WCSTools "6 July 2001" .SH Name sky2xy \- Compute X Y from RA Dec using WCS in FITS and IRAF image files .SH Synopsis -sky2xy [-vbjg] file.fts ra1 dec1 ... ran decn +sky2xy [\-vbjg] file.fts ra1 dec1 ... ran decn .br or .br -sky2xy [-vbjg] file.fts @listfile +sky2xy [\-vbjg] file.fts @listfile .SH Description .I sky2xy (pronounced sky-to-X-Y) is a utility for getting the image coordinates of --- a/man/man1/getcol.1 +++ b/man/man1/getcol.1 @@ -1,8 +1,8 @@ -.TH getcol(1) WCSTools "8 November 2001" +.TH getcol 1 WCSTools "8 November 2001" .SH Name getcol \- Extract specified columns from an ASCII table file .SH Synopsis -getcol [-amv][-n num][-r lines][-s num] filename [column number range] +getcol [\-amv][\-n num][\-r lines][\-s num] filename [column number range] .SH Description Extract specified columns from an ASCII table file @@ -20,8 +20,8 @@ .TP .B field range Print value of these columns for the number of lines of the table -specified by the -n argument after the skippiing the number of -lines specified by the -s argument. A value of 0 causes the +specified by the \-n argument after the skippiing the number of +lines specified by the \-s argument. A value of 0 causes the entire input line to be printed. .TP .B \-a @@ -59,12 +59,12 @@ .B \-m Compute the means of all numeric columns selected, printing the mean on the line following the result (or the line following the sum if --a is used). Columns with no mean are filled with ___. +\-a is used). Columns with no mean are filled with ___. (Added in version 2.6.9) .TP .B \-n num Print selected columns for this many lines. If not specified, all -lines will be read after the number of lines specified by -s have +lines will be read after the number of lines specified by \-s have been skipped. .TP .B \-o --- a/man/man1/imwcs.1 +++ b/man/man1/imwcs.1 @@ -1,4 +1,4 @@ -.TH imwcs(1) WCSTools "30 January 2003" +.TH imwcs 1 WCSTools "30 January 2003" .SH Name imwcs \- Set WCS in FITS and IRAF image files .SH Synopsis @@ -47,7 +47,7 @@ Write FITS output no matter what input .TP .B \-g -Guide Star Catalog class (-1=all,0,3) (default -1) +Guide Star Catalog class (\-1=all,0,3) (default \-1) .TP .B \-h Change the maximum number of reference stars to match from 25 to @@ -66,7 +66,7 @@ Reflect left<->right before rotating and fitting .TP .B \-m [] -Limiting catalog magnitude(s) (default none, bright -2 if only faint is given) +Limiting catalog magnitude(s) (default none, bright \-2 if only faint is given) .TP .B \-n Number of parameters to fit (1-8, or digit string). The default is 2 (RA+Dec) @@ -99,7 +99,7 @@ Offset tolerance in pixels (default 20) .TP .B \-u --u: File of X Y RA Dec assignments for initial WCS +File of X Y RA Dec assignments for initial WCS .TP .B \-v Verbose listing of processing intermediate results --- a/man/man1/wcstools.1 +++ b/man/man1/wcstools.1 @@ -1,10 +1,10 @@ -.TH wcstools(1) WCSTools "6 July 2001" +.TH wcstools 1 WCSTools "6 July 2001" .SH Name wcstools \- Programs to access image world coordinate systems and catalogs .SH Setting an Image World Coordinate System .TP imwcs -Automaticaly find stars in a FITS or IRAF image, match them to HST Guide +Automatically find stars in a FITS or IRAF image, match them to HST Guide USNO A or USNO UJ Stars, compute the relation between sky coordinates and image coordinates, and write in in the image header. [after U of Iowa SETWCS] .TP --- a/man/man1/imua2.1 +++ b/man/man1/imua2.1 @@ -1,4 +1,4 @@ -.TH imua2(1) WCS "14 April 1998" +.TH imua2 1 WCS "14 April 1998" .SH Name imua2 \- Find USNO-A2.0 stars in FITS or IRAF image files .SH Synopsis @@ -19,7 +19,7 @@ Output in J2000, optional new image center in J2000 (FK5) RA and Dec .TP .B \-m [] -Limiting catalog magnitude(s) (default none, bright -2 if only faint is given) +Limiting catalog magnitude(s) (default none, bright \-2 if only faint is given) .TP .B \-n Number of brightest stars to print @@ -63,7 +63,7 @@ Output J2000 (FK5) coordinates (optional center) .TP .B \-m [] -Limiting catalog magnitude(s) (default none, bright -2 if only faint is given) +Limiting catalog magnitude(s) (default none, bright \-2 if only faint is given) .TP .B \-n Number of brightest stars to print --- a/man/man1/delhead.1 +++ b/man/man1/delhead.1 @@ -1,8 +1,8 @@ -.TH delhead(1) WCSTools "15 July 1999" +.TH delhead 1 WCSTools "15 July 1999" .SH Name delhead \- Set FITS or IRAF header keyword values .SH Synopsis -delhead [-nv] kw1 kw2 ... kwn +delhead [\-nv] kw1 kw2 ... kwn .SH Description Delete keyword entries from the header of FITS or IRAF image[s]. If a keyword does not already exist, ignore it. To delete keywords in --- a/man/man1/imusa2.1 +++ b/man/man1/imusa2.1 @@ -1,4 +1,4 @@ -.TH imusa2(1) WCS "14 April 1998" +.TH imusa2 1 WCS "14 April 1998" .SH Name imusa2 \- Find USNO-SA2.0 stars in FITS or IRAF image files .SH Synopsis @@ -19,7 +19,7 @@ Output in J2000, optional new image center in J2000 (FK5) RA and Dec .TP .B \-m [] -Limiting catalog magnitude(s) (default none, bright -2 if only faint is given) +Limiting catalog magnitude(s) (default none, bright \-2 if only faint is given) .TP .B \-n Number of brightest stars to print --- a/man/man1/gethead.1 +++ b/man/man1/gethead.1 @@ -1,8 +1,8 @@ -.TH gethead(1) WCSTools "6 July 2001" +.TH gethead 1 WCSTools "6 July 2001" .SH Name gethead \- Print FITS or IRAF header keyword values .SH Synopsis -gethead [-hptv] [-d pathname] [-n num] kw1 kw2 ... kwn +gethead [\-hptv] [\-d pathname] [\-n num] kw1 kw2 ... kwn .SH Description Print values of the specified keywords from the given image header. By default they are all listed on one line, separated by spaces. The --- a/man/man1/imcat.1 +++ b/man/man1/imcat.1 @@ -1,4 +1,4 @@ -.TH imcat(1) WCSTools "30 January 2003" +.TH imcat 1 WCSTools "30 January 2003" .SH Name imcat \- List catalog stars in FITS and IRAF image files .SH Synopsis @@ -41,13 +41,13 @@ Add this keyword to output from tab table search .TP .B \-m [] -Limiting catalog magnitude(s) (default none, bright -2 if only faint is given) +Limiting catalog magnitude(s) (default none, bright \-2 if only faint is given) .TP .B \-n Number of brightest stars to print .TP .B \-o -Set HST Guide Star object class to print (0=stars, 3=nonstars, -1=all, -2=band) +Set HST Guide Star object class to print (0=stars, 3=nonstars, \-1=all, \-2=band) .TP .B \-p Initial plate scale in arcsec per pixel (default from file) @@ -55,9 +55,9 @@ .B \-q Write SAOimage region file with this shape, o=circle, s=square, d=diamond, +=cross, and x=X, with the radius scaled with magnitude unless specified -with a -r command line entry. v will cause stellar Guide Stars to plot with +with a \-r command line entry. v will cause stellar Guide Stars to plot with a + and nonstellar Guide Stars to plot with an x. If character is is preceded -by p, the size specified by the -r command is assumed to be in pixels, not +by p, the size specified by the \-r command is assumed to be in pixels, not arcseconds. A p alone specifies a circle in pixels. .TP .B \-r @@ -65,7 +65,7 @@ arcseconds. SAOimage can then read this file, with will have positions and radii in pixels and plot it over an image. If the radius is specified as zero, the output radii will scale between 5 and dim/100 over the range of -magnitudes of sources found in the image area. If the -q option is specified +magnitudes of sources found in the image area. If the \-q option is specified with a 'p' in it, this number is assumed to be in pixels instead of arcseconds. .TP .B \-s d|m|n|p|r|x|y --- a/man/man1/scat.1 +++ b/man/man1/scat.1 @@ -1,18 +1,18 @@ -.TH scat(1) WCSTools "30 January 2003" +.TH scat 1 WCSTools "30 January 2003" .SH Name scat \- Find catalog stars in a square or circle on the sky .SH Synopsis -scat [options] [-b or -j] ra dec +scat [options] [\-b or \-j] ra dec .SH Description .I scat is a utility for finding all of the Hubble Space Telescope Guide Star Catalog (GSC), U.S. Naval Observatory A2.0 (UA2), B1.0 (UB1), SA2.0 (USA2), or UJ (UJC) Catalogs, or locally catalogued objects in a specified region -of the sky and listing their sky coordinates to standard output. If the -w +of the sky and listing their sky coordinates to standard output. If the \-w flag is set, they are written to a file objectname.catalogname, where objectname -is given by the argument to -o on the command line, defaulting to "search", -and catalogname is given by the argument to -c on the command line. The -catalog defaults to the GSC, if no -c argument is present. scat resembles +is given by the argument to \-o on the command line, defaulting to "search", +and catalogname is given by the argument to \-c on the command line. The +catalog defaults to the GSC, if no \-c argument is present. scat resembles rgsc(1) and star(1), which can search from lists of coordinates but cannot sort the output. sgsc, suac, and susac are links to this program.1 .SH Options @@ -37,7 +37,7 @@ Output search center for other programs .TP .B \-g -HST Guide Star Catalog object class (0=stars 3=galaxies -1=all) +HST Guide Star Catalog object class (0=stars 3=galaxies \-1=all) .TP .B \-h Print search and column heading, else do not @@ -55,7 +55,7 @@ Print search center and closest star on one line .TP .B \-m [] -Limiting catalog magnitude(s) (default none, bright -2 if only faint is given) +Limiting catalog magnitude(s) (default none, bright \-2 if only faint is given) .TP .B \-n Number of brightest stars to print @@ -67,7 +67,7 @@ Equinox of output position in fractional years .TP .B \-r -Halfwidth (-radius if negative) of search area in arcseconds (default 10) +Halfwidth (\-radius if negative) of search area in arcseconds (default 10) .TP .B \-s d|m|n|p|r Sort by (d)eclination, (m)agnitude, (n)o sort, (p)distance from center, or @@ -84,10 +84,10 @@ Verbose listing of processing intermediate results .TP .B \-w -Write output file objectname.catalog or search.catalog if -o is not used. +Write output file objectname.catalog or search.catalog if \-o is not used. .TP .B \-x -GSC object type (0=stars 3=galaxies -1=all -2=bands) +GSC object type (0=stars 3=galaxies \-1=all \-2=bands) .TP .B \-y Epoch of output positions in fractional years (for proper motion only) --- a/man/man1/imsize.1 +++ b/man/man1/imsize.1 @@ -1,8 +1,8 @@ -.TH imsize(1) WCSTools "6 July 2001" +.TH imsize 1 WCSTools "6 July 2001" .SH Name imsize \- Print size of image in WCS and pixels .SH Synopsis -imsize [-vcd] [-p scale] [-b ra dec] [-j ra dec] FITS or IRAF file(s) +imsize [\-vcd] [\-p scale] [\-b ra dec] [\-j ra dec] FITS or IRAF file(s) .SH Description .I imsize is a utility for printing the region covered by an image using the world --- a/man/man1/imrot.1 +++ b/man/man1/imrot.1 @@ -1,4 +1,4 @@ -.TH imrot(1) WCSTools "6 July 2001" +.TH imrot 1 WCSTools "6 July 2001" .SH Name imrot \- Rotate and/or Reflect FITS and IRAF image files .SH Synopsis @@ -26,8 +26,8 @@ Verbose .B \-x Output pixel size in bits (FITS code, default=input) -Allowed values are 8, 16, 32 for integers, -16 for unsigned integers, and --32 and -64 for 4- and 8-byte floating point numbers +Allowed values are 8, 16, 32 for integers, \-16 for unsigned integers, and +\-32 and \-64 for 4- and 8-byte floating point numbers .SH Author Doug Mink, SAO (dmink@cfa.harvard.edu) --- a/man/man1/imhead.1 +++ b/man/man1/imhead.1 @@ -1,4 +1,4 @@ -.TH imhead(1) WCSTools "6 July 2001" +.TH imhead 1 WCSTools "6 July 2001" .SH Name imhead \- Print FITS or IRAF image header .SH Synopsis --- a/man/man1/susa2.1 +++ b/man/man1/susa2.1 @@ -1,13 +1,13 @@ -.TH susa2(1) WCS "9 June 2000" +.TH susa2 1 WCS "9 June 2000" .SH Name -Find USNO-SA2.0 Catalog stars in a square on the sky +susa2 \- Find USNO-SA2.0 Catalog stars in a square on the sky .SH Synopsis -susac [options] [-b or -j] ra dec +susac [options] [\-b or \-j] ra dec .SH Description .I suac finds all of the U.S. Naval Observatory SA2.0 Catalog objects in a specified region of the sky and lists their sky positions and magnitudes in order of -brightness. Output is to standard out, unless the -w flag is set, in which +brightness. Output is to standard out, unless the \-w flag is set, in which case it goes to objectname.uac or search.uac. It is a link to scat. .SH Options .B \-a @@ -21,7 +21,7 @@ .B \-j Output J2000 (FK5) coordinates around this center .B \-m [] -Limiting catalog magnitude(s) (default none, bright -2 if only faint is given) +Limiting catalog magnitude(s) (default none, bright \-2 if only faint is given) .B \-n Number of brightest stars to print .B \-o --- a/man/man1/wcshead.1 +++ b/man/man1/wcshead.1 @@ -1,8 +1,8 @@ -.TH wcshead(1) WCSTools "19 July 2004" +.TH wcshead 1 WCSTools "19 July 2004" .SH Name wcshead \- Print WCS part of FITS or IRAF image header .SH Synopsis -wcshead [-hrtvsz] FITS or IRAF file(s) +wcshead [\-hrtvsz] FITS or IRAF file(s) .SH Description .I wcshead is a utility for printing the world coordinate system information in --- a/man/man1/delwcs.1 +++ b/man/man1/delwcs.1 @@ -1,8 +1,8 @@ -.TH delwcs(1) WCSTools "6 July 2001" +.TH delwcs 1 WCSTools "6 July 2001" .SH Name delwcs \- Delete WCS in FITS and IRAF image files .SH Synopsis -delwcs [-v] FITS or IRAF file(s) +delwcs [\-v] FITS or IRAF file(s) .SH Description Delete WCS keywords "CTYPE1", "CRVAL1", "CDELT1", "CRPIX1", "CROTA1", "CTYPE2", "CRVAL2", "CDELT2", "CRPIX2", "CROTA2", and "IMWCS" from a fits header. If --- a/man/man1/imstar.1 +++ b/man/man1/imstar.1 @@ -1,4 +1,4 @@ -.TH imstar(1) WCSTools "6 July 2001" +.TH imstar 1 WCSTools "6 July 2001" .SH Name imstar \- Find stars in FITS and IRAF image files .SH Synopsis @@ -7,7 +7,7 @@ .SH Options .TP .B [J2000, B1950] -Coordinates for center (or reference pixel if -x is used). +Coordinates for center (or reference pixel if \-x is used). .TP .B \-a Image rotation angle in degrees (default 0). If multiple of 90, rotate @@ -34,7 +34,7 @@ .B \-i Minimum peak value for star in image (<0=-sigma) Setting this to reject all but 10-15 stars is a good way to speed up the -star-finding process. If num is less than zero, the minimum peak is -num +star-finding process. If num is less than zero, the minimum peak is \-num image pixel standard deviations. Setting this number rejects faint stars early in the selection process for a significant saving in computing time. .TP @@ -45,7 +45,7 @@ Print each star as it is found for debugging .TP .B \-l -Reflect the image left <-> right before rotating (-a) and searching for stars. +Reflect the image left <\-> right before rotating (\-a) and searching for stars. .TP .B \-m Magnitude offset @@ -81,16 +81,16 @@ .TP .B \-w Write output to a file in addition to standard out. -If DAO format (-o), create the name by adding .dao to the image file name. -If Starbase format (-t), create the name by adding .tab to the image file name. -If ASCII format (-f), create the name by adding .stars to the image file name. +If DAO format (\-o), create the name by adding .dao to the image file name. +If Starbase format (\-t), create the name by adding .tab to the image file name. +If ASCII format (\-f), create the name by adding .stars to the image file name. .TP .B \-x X and Y coordinates of reference pixel (if not in header or image center) .TP .B \-z -Use AIPS classic projection code (for "-SIN", "-TAN", "-ARC", "-NCP", -"-GLS", "-MER", "-AIT" and "-STG" only) instead of WCSLIB proposed +Use AIPS classic projection code (for "\-SIN", "\-TAN", "\-ARC", "\-NCP", +"\-GLS", "\-MER", "\-AIT" and "\-STG" only) instead of WCSLIB proposed standard projection code. .SH Web Page --- a/man/man1/xy2sky.1 +++ b/man/man1/xy2sky.1 @@ -1,12 +1,12 @@ -.TH xy2sky(1) WCSTools "6 July 2001" +.TH xy2sky 1 WCSTools "6 July 2001" .SH Name xy2sky \- Compute RA Dec from X Y using WCS in FITS and IRAF image files .SH Synopsis -xy2sky [-vbjg] [-n ndec] file.fts x1 y1 ... xn yn +xy2sky [\-vbjg] [\-n ndec] file.fts x1 y1 ... xn yn .br or .br -xy2sky [-bdjgv] [-n ndec] file.fts @listfile +xy2sky [\-bdjgv] [\-n ndec] file.fts @listfile .SH Description .I xy2sky (pronounced X-Y-to-sky) is a utility for getting the world coordinates of @@ -31,7 +31,7 @@ RA and Dec output in degrees .TP .B \-e -Ouput in ecliptic longitude and latitude in degrees. +Output in ecliptic longitude and latitude in degrees. .TP .B \-f Set third dimension for 3-D projections such as CSC @@ -54,7 +54,7 @@ Number of decimal places in output RA seconds .TP .B \-q -Output equinox if not 2000 (-j) or 1950 (-b) +Output equinox if not 2000 (\-j) or 1950 (\-b) .TP .B \-t Output as tab-separated table --- a/man/man1/imgsc.1 +++ b/man/man1/imgsc.1 @@ -1,4 +1,4 @@ -.TH imgsc(1) WCS "14 April 1998" +.TH imgsc 1 WCS "14 April 1998" .SH Name imgsc \- Find HST GSC stars in FITS or IRAF image files .SH Synopsis @@ -16,7 +16,7 @@ Reference catalog (gsc, ujc, or tab table file .TP .B \-g -Guide Star Catalog class (-1=all,0,3 (default -1) +Guide Star Catalog class (\-1=all,0,3 (default \-1) .TP .B \-h Print heading, else do not @@ -25,7 +25,7 @@ Output in J2000, optional new image center in J2000 (FK5) RA and Dec .TP .B \-m [] -Limiting catalog magnitude(s) (default none, bright -2 if only faint is given) +Limiting catalog magnitude(s) (default none, bright \-2 if only faint is given) .TP .B \-n Number of brightest stars to print --- a/man/man1/i2f.1 +++ b/man/man1/i2f.1 @@ -1,4 +1,4 @@ -.TH i2f(1) WCSTools "6 July 2001" +.TH i2f 1 WCSTools "6 July 2001" .SH Name i2f \- Write FITS files from IRAF image files .SH Synopsis --- a/man/man1/edhead.1 +++ b/man/man1/edhead.1 @@ -1,4 +1,4 @@ -.TH edhead(1) WCSTools "6 July 2001" +.TH edhead 1 WCSTools "6 July 2001" .SH Name edhead \- Edit header of FITS or IRAF image file .SH Synopsis --- a/man/man1/sua2.1 +++ b/man/man1/sua2.1 @@ -1,13 +1,13 @@ -.TH sua2(1) WCS "19 November 1999" +.TH sua2 1 WCS "19 November 1999" .SH Name -Find USNO-A2.0 Catalog stars in a square on the sky +sua2 \- Find USNO-A2.0 Catalog stars in a square on the sky .SH Synopsis sua2 [options] ra dec system .SH Description .I suac finds all of the U.S. Naval Observatory A2.0 Catalog objects in a specified region of the sky and lists their sky positions and magnitudes in order of -brightness. Output is to standard out, unless the -w flag is set, in which +brightness. Output is to standard out, unless the \-w flag is set, in which case it goes to objectname.uac or search.uac. It is a link to scat. .SH Options .B \-a @@ -31,7 +31,7 @@ .B \-l Print center and closest star on one line .B \-m [] -Limiting catalog magnitude(s) (default none, bright -2 if only faint is given) +Limiting catalog magnitude(s) (default none, bright \-2 if only faint is given) .B \-n Number of brightest stars to print .B \-o debian/patches/makefiles.patch0000644000000000000000000003031412134433061013574 0ustar Author: Ole Streicher Description: Rename libwcs to libwcstools to avoid conflicts with Mark Calabretta's wcslib package. Also, build a dynamic library and forward CFLAGS, CPPFLAGS and LDFLAGS for fortification. --- a/libwcs/Makefile +++ b/libwcs/Makefile @@ -1,5 +1,5 @@ -CFLAGS= -g -D_FILE_OFFSET_BITS=64 -CC= cc +CFLAGS+= -fPIC +CC= gcc OBJS = imsetwcs.o imgetwcs.o matchstar.o findstar.o daoread.o wcscon.o \ fitswcs.o wcsinit.o wcs.o ty2read.o webread.o tmcread.o \ @@ -11,10 +11,17 @@ sortstar.o platefit.o iget.o fileutil.o \ wcslib.o lin.o cel.o proj.o sph.o wcstrig.o distort.o poly.o -libwcs.a: $(OBJS) +all: libwcstools.so.0.0.0 libwcstools.a + +libwcstools.a: $(OBJS) ar rv $@ $? ranlib $@ +libwcstools.so.0.0.0: $(OBJS) + $(CC) $(LDFLAGS) -shared -o $@ -Wl,-soname,libwcstools.so.0 $? -lm + ln -s libwcstools.so.0.0.0 libwcstools.so.0 + ln -s libwcstools.so.0.0.0 libwcstools.so + actread.o: fitsfile.h wcscat.h wcs.h fitshead.h wcslib.h binread.o: wcscat.h wcs.h fitshead.h wcslib.h ctgread.o: wcscat.h wcs.h fitshead.h wcslib.h @@ -67,4 +74,4 @@ worldpos.o: wcs.h fitshead.h wcslib.h clean: - rm -f *.a *.o + rm -f *.a *.o *.so *.so.* --- a/Makefile +++ b/Makefile @@ -1,13 +1,11 @@ -CFLAGS= -g -D_FILE_OFFSET_BITS=64 -CC= cc -LIBWCS = libwcs/libwcs.a +LIBWCS = libwcs/libwcstools.so LIBNED = libned/libned.a -LIBS = $(LIBWCS) -lm +LIBS = -L libwcs -lwcstools -lm #LIBS = $(LIBWCS) -lm -lnsl -lsocket BIN = bin .PRECIOUS: ${LIBWCS} ${LIBNED} .c.o: - $(CC) -c $(CFLAGS) $(DEFS) $< + $(CC) -c $(CFLAGS) $(CPPFLAGS) $(DEFS) $< all: cphead delwcs delhead edhead fixpix gethead i2f imcat imhead immatch \ imrot imsize imstar imwcs scat sethead addpix getpix setpix sky2xy \ @@ -17,178 +15,178 @@ simpos nedpos bincat addpix: addpix.c $(LIBWCS) libwcs/fitsfile.h - $(CC) $(CFLAGS) -o $(BIN)/addpix addpix.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/addpix addpix.c $(LIBS) bincat: bincat.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h - $(CC) $(CFLAGS) -o $(BIN)/bincat bincat.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/bincat bincat.c $(LIBS) char2sp: char2sp.c $(LIBWCS) libwcs/fitsfile.h - $(CC) $(CFLAGS) -o $(BIN)/char2sp char2sp.c $(LIBWCS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/char2sp char2sp.c $(LIBWCS) conpix: conpix.c $(LIBWCS) libwcs/fitsfile.h - $(CC) $(CFLAGS) -o $(BIN)/conpix conpix.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/conpix conpix.c $(LIBS) cphead: cphead.c $(LIBWCS) libwcs/fitsfile.h - $(CC) $(CFLAGS) -o $(BIN)/cphead cphead.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/cphead cphead.c $(LIBS) crlf: crlf.c - $(CC) $(CFLAGS) -o $(BIN)/crlf crlf.c + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/crlf crlf.c delwcs: delwcs.c $(LIBWCS) libwcs/fitsfile.h - $(CC) $(CFLAGS) -o $(BIN)/delwcs delwcs.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/delwcs delwcs.c $(LIBS) delhead: delhead.c $(LIBWCS) libwcs/fitsfile.h - $(CC) $(CFLAGS) -o $(BIN)/delhead delhead.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/delhead delhead.c $(LIBS) edhead: edhead.c $(LIBWCS) libwcs/fitsfile.h - $(CC) $(CFLAGS) -o $(BIN)/edhead edhead.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/edhead edhead.c $(LIBS) filename: filename.c - $(CC) $(CFLAGS) -o $(BIN)/filename filename.c + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/filename filename.c filedir: filedir.c - $(CC) $(CFLAGS) -o $(BIN)/filedir filedir.c + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/filedir filedir.c fileroot: fileroot.c - $(CC) $(CFLAGS) -o $(BIN)/fileroot fileroot.c + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/fileroot fileroot.c filext: filext.c - $(CC) $(CFLAGS) -o $(BIN)/filext filext.c + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/filext filext.c fixpix: fixpix.c $(LIBWCS) libwcs/fitsfile.h - $(CC) $(CFLAGS) -o $(BIN)/fixpix fixpix.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/fixpix fixpix.c $(LIBS) getcol: getcol.c $(LIBWCS) libwcs/wcscat.h - $(CC) $(CFLAGS) -o $(BIN)/getcol getcol.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/getcol getcol.c $(LIBS) getdate: getdate.c $(LIBWCS) libwcs/wcscat.h - $(CC) $(CFLAGS) -o $(BIN)/getdate getdate.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/getdate getdate.c $(LIBS) gethead: gethead.c $(LIBWCS) libwcs/wcs.h libwcs/fitsfile.h libwcs/wcscat.h - $(CC) $(CFLAGS) -o $(BIN)/gethead gethead.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/gethead gethead.c $(LIBS) getfits: getfits.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h libwcs/wcscat.h - $(CC) $(CFLAGS) -o $(BIN)/getfits getfits.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/getfits getfits.c $(LIBS) getpix: getpix.c $(LIBWCS) libwcs/wcs.h libwcs/fitsfile.h libwcs/wcscat.h - $(CC) $(CFLAGS) -o $(BIN)/getpix getpix.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/getpix getpix.c $(LIBS) gettab: gettab.c $(LIBWCS) libwcs/wcscat.h - $(CC) $(CFLAGS) -o $(BIN)/gettab gettab.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/gettab gettab.c $(LIBS) httpget: httpget.c $(LIBWCS) libwcs/wcscat.h - $(CC) $(CFLAGS) -o $(BIN)/httpget httpget.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/httpget httpget.c $(LIBS) i2f: i2f.c $(LIBWCS) libwcs/fitsfile.h - $(CC) $(CFLAGS) -o $(BIN)/i2f i2f.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/i2f i2f.c $(LIBS) imcat: imcat.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h - $(CC) $(CFLAGS) -o $(BIN)/imcat imcat.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imcat imcat.c $(LIBS) imfill: imfill.c $(LIBWCS) libwcs/fitsfile.h - $(CC) $(CFLAGS) -o $(BIN)/imfill imfill.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imfill imfill.c $(LIBS) imresize: imresize.c $(LIBWCS) libwcs/fitsfile.h - $(CC) $(CFLAGS) -o $(BIN)/imresize imresize.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imresize imresize.c $(LIBS) imsmooth: imsmooth.c $(LIBWCS) libwcs/fitsfile.h - $(CC) $(CFLAGS) -o $(BIN)/imsmooth imsmooth.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imsmooth imsmooth.c $(LIBS) imhead: imhead.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h - $(CC) $(CFLAGS) -o $(BIN)/imhead imhead.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imhead imhead.c $(LIBS) imrot: imrot.c $(LIBWCS) libwcs/fitsfile.h - $(CC) $(CFLAGS) -o $(BIN)/imrot imrot.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imrot imrot.c $(LIBS) imsize: imsize.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h - $(CC) $(CFLAGS) -o $(BIN)/imsize imsize.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imsize imsize.c $(LIBS) imstack: imstack.c $(LIBWCS) libwcs/fitsfile.h - $(CC) $(CFLAGS) -o $(BIN)/imstack imstack.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imstack imstack.c $(LIBS) imextract: imextract.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcscat.h - $(CC) $(CFLAGS) -o $(BIN)/imextract imextract.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imextract imextract.c $(LIBS) imstar: imstar.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h libwcs/lwcs.h libwcs/wcscat.h - $(CC) $(CFLAGS) -o $(BIN)/imstar imstar.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imstar imstar.c $(LIBS) isfits: isfits.c $(LIBWCS) libwcs/fitshead.h - $(CC) $(CFLAGS) -o $(BIN)/isfits isfits.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/isfits isfits.c $(LIBS) isnum: isnum.c $(LIBWCS) libwcs/fitshead.h - $(CC) $(CFLAGS) -o $(BIN)/isnum isnum.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/isnum isnum.c $(LIBS) isrange: isrange.c - $(CC) $(CFLAGS) -o $(BIN)/isrange isrange.c + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/isrange isrange.c imwcs: imwcs.c $(LIBWCS) libwcs/fitsfile.h libwcs/lwcs.h - $(CC) $(CFLAGS) -o $(BIN)/imwcs imwcs.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/imwcs imwcs.c $(LIBS) immatch: immatch.c $(LIBWCS) libwcs/fitsfile.h libwcs/lwcs.h - $(CC) $(CFLAGS) -o $(BIN)/immatch immatch.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/immatch immatch.c $(LIBS) immwcs: immwcs.c $(LIBWCS) libwcs/fitsfile.h libwcs/lwcs.h - $(CC) $(CFLAGS) -o $(BIN)/immwcs immwcs.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/immwcs immwcs.c $(LIBS) keyhead: keyhead.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h - $(CC) $(CFLAGS) -o $(BIN)/keyhead keyhead.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/keyhead keyhead.c $(LIBS) matchcat: matchcat.c $(LIBWCS) libwcs/wcscat.h libwcs/wcs.h - $(CC) $(CFLAGS) -o $(BIN)/matchcat matchcat.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/matchcat matchcat.c $(LIBS) nedname: nedname.c $(LIBWCS) $(LIBNED) libwcs/wcs.h libned/ned_client.h - $(CC) $(CFLAGS) -o $(BIN)/nedname nedname.c $(LIBS) $(LIBNED) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/nedname nedname.c $(LIBS) $(LIBNED) nedpos: nedpos.c $(LIBWCS) $(LIBNED) libwcs/wcs.h libned/ned_client.h - $(CC) $(CFLAGS) -o $(BIN)/nedpos nedpos.c $(LIBS) $(LIBNED) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/nedpos nedpos.c $(LIBS) $(LIBNED) newfits: newfits.c $(LIBWCS) libwcs/fitshead.h libwcs/wcs.h - $(CC) $(CFLAGS) -o $(BIN)/newfits newfits.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/newfits newfits.c $(LIBS) remap: remap.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h - $(CC) $(CFLAGS) -o $(BIN)/remap remap.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/remap remap.c $(LIBS) scat: scat.c $(LIBWCS) libwcs/wcscat.h libwcs/wcs.h - $(CC) $(CFLAGS) -o $(BIN)/scat scat.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/scat scat.c $(LIBS) sethead: sethead.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcs.h - $(CC) $(CFLAGS) -o $(BIN)/sethead sethead.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/sethead sethead.c $(LIBS) setpix: setpix.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcscat.h - $(CC) $(CFLAGS) -o $(BIN)/setpix setpix.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/setpix setpix.c $(LIBS) sky2xy: sky2xy.c $(LIBWCS) libwcs/wcs.h libwcs/fitsfile.h - $(CC) $(CFLAGS) -o $(BIN)/sky2xy sky2xy.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/sky2xy sky2xy.c $(LIBS) skycoor: skycoor.c $(LIBWCS) libwcs/wcs.h libwcs/wcscat.h - $(CC) $(CFLAGS) -o $(BIN)/skycoor skycoor.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/skycoor skycoor.c $(LIBS) sp2char: sp2char.c $(LIBWCS) libwcs/fitsfile.h - $(CC) $(CFLAGS) -o $(BIN)/sp2char sp2char.c $(LIBWCS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/sp2char sp2char.c $(LIBWCS) subpix: subpix.c $(LIBWCS) libwcs/fitsfile.h - $(CC) $(CFLAGS) -o $(BIN)/subpix subpix.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/subpix subpix.c $(LIBS) sumpix: sumpix.c $(LIBWCS) libwcs/fitsfile.h libwcs/wcscat.h - $(CC) $(CFLAGS) -o $(BIN)/sumpix sumpix.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/sumpix sumpix.c $(LIBS) wcshead: wcshead.c $(LIBWCS) libwcs/fitsfile.h - $(CC) $(CFLAGS) -o $(BIN)/wcshead wcshead.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/wcshead wcshead.c $(LIBS) xy2sky: xy2sky.c $(LIBWCS) libwcs/wcs.h libwcs/wcscat.h - $(CC) $(CFLAGS) -o $(BIN)/xy2sky xy2sky.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/xy2sky xy2sky.c $(LIBS) -simpos: simpos.c libwcs/libwcs.a - $(CC) $(CFLAGS) -o $(BIN)/simpos simpos.c $(LIBS) +simpos: simpos.c $(LIBWCS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/simpos simpos.c $(LIBS) gsc2cat: gsc2cat.c $(LIBWCS) - $(CC) $(CFLAGS) -o $(BIN)/gsc2cat gsc2cat.c $(LIBS) + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/gsc2cat gsc2cat.c $(LIBS) tmcat: tmcat.c - $(CC) $(CFLAGS) -o $(BIN)/tmcat tmcat.c + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/tmcat tmcat.c tmcate: tmcate.c - $(CC) $(CFLAGS) -o $(BIN)/tmcate tmcate.c + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(BIN)/tmcate tmcate.c $(LIBWCS): libwcs/*.c libwcs/*.h cd libwcs; make --- a/libned/Makefile +++ b/libned/Makefile @@ -5,9 +5,6 @@ # you need to link your object files with -lsocket and -lnsl to make executable. -CFLAGS = -g -D_NO_PROTO -CC = cc - SRC = ned_cli.c ned_cif.c ned_err.c ned_sk.c OBJ = ned_cli.o ned_cif.o ned_err.o ned_sk.o debian/patches/use_abort.patch0000644000000000000000000000052612040760347013627 0ustar Author: Ole Streicher Description: If a unrecoverable error occurred, abort() instead of exit() to allow the user for tracing the problem. --- a/libwcs/poly.c +++ b/libwcs/poly.c @@ -43,7 +43,7 @@ void qerror(char *msg1, char *msg2) { fprintf(stderr, "\n> %s%s\n\n",msg1,msg2); - exit(-1); + abort(); } debian/patches/fix_mayhem.patch0000644000000000000000000000373212175003450013766 0ustar Author: Ole Streicher Description: Fix several bugs that appear in during the mayhem tests. Bug: http://bugs.debian.org/715682 Bug: http://bugs.debian.org/715755 Bug: http://bugs.debian.org/715905 Bug: http://bugs.debian.org/715956 Bug: http://bugs.debian.org/715957 --- a/getfits.c +++ b/getfits.c @@ -109,6 +109,7 @@ usage ("Right ascension given but no declination"); else { strcpy (rastr, *av); + ac--; strcpy (decstr, *++av); ra0 = str2ra (rastr); dec0 = str2dec (decstr); --- a/getpix.c +++ b/getpix.c @@ -73,6 +73,7 @@ char *crange; /* Column range string */ char *rstr; char *dstr = NULL; + char rastr[32], decstr[32]; char *cstr; int systemp; int i; @@ -208,11 +209,11 @@ if (ac < 2) usage (); else { - strcpy (rstr, *av); + strcpy (rastr, *av); ac--; - strcpy (dstr, *++av); - ra0 = str2ra (rstr); - dec0 = str2dec (dstr); + strcpy (decstr, *++av); + ra0 = str2ra (rastr); + dec0 = str2dec (decstr); ac--; if (ac < 1) { syscoor = WCS_J2000; --- a/bincat.c +++ b/bincat.c @@ -156,7 +156,7 @@ if (ac < 3) usage((char)0, "3 arguments needed for center coordinate"); else { - strcpy (rastr, *++av); + strcpy (rastr, *av); ac--; strcpy (decstr, *++av); setcenter (rastr, decstr); --- a/cphead.c +++ b/cphead.c @@ -137,7 +137,7 @@ break; case 'w': /* Copy entire WCS */ - nkwd1 = 87; + nkwd1 = 236; if (nkwd + nkwd1 > maxnkwd) { maxnkwd = nkwd + nkwd1 + 32; kwdnew = (char **) calloc (maxnkwd, sizeof (void *)); @@ -148,7 +148,7 @@ free (kwd); kwd = kwdnew; } - for (ikwd = nkwd; i < nkwd+nkwd1; i++) { + for (ikwd = nkwd; ikwd < nkwd+nkwd1+32; ikwd++) { kwd[ikwd] = (char *) calloc (32, 1); } strcpy (kwd[nkwd], "RA"); --- a/filext.c +++ b/filext.c @@ -80,7 +80,7 @@ ext = ext + 1; } } - printf ("%s\n", ext); + printf ("%s\n", (ext)?ext:""); } return (0); debian/patches/fix_compiler_warnings.patch0000644000000000000000000000175112174763711016243 0ustar Author: Ole Streicher Description: Fix some compiler warnings. --- a/libwcs/imio.c +++ b/libwcs/imio.c @@ -750,7 +750,7 @@ int pix1; /* Offset of first pixel to check */ int npix; /* Number of pixels to check */ { - short *im2, imin2, *ip2, *il2; + short *im2, imin2, ip2, *il2; int *im4, imin4, ip4; unsigned short *imu, iminu, ipu; float *imr, iminr, ipr; @@ -780,7 +780,7 @@ int npix; /* Number of pixels to check */ for (ipix = pix1; ipix < pix2; ipix++) { ip2 = *(im2 + ipix); if (*ip2 < imin2) - imin2 = *ip2; + imin2 = ip2; } dmin = (double) imin2; break; --- a/imcat.c +++ b/imcat.c @@ -1772,7 +1772,7 @@ char **refcatname; /* reference catalog name */ if (refcat == UCAC2 || refcat == UCAC3) { nim = gc[i] / 1000; nct = gc[i] % 1000; - sprintf (temp, " ni nc", nim, nct); + sprintf (temp, " ni%i nc%i", nim, nct); strcat (headline, temp); } else if (gcset) debian/rules0000755000000000000000000000155412175003764010260 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ override_dh_auto_build: mkdir -p bin dh_auto_build mv bin/imcat bin/imcatalog mv bin/remap bin/wcsremap override_dh_installchangelogs: dh_installchangelogs NEWS override_dh_installman: mkdir -p man/man_generated mv man/man1/imcat.1 man/man1/imcatalog.1 for i in `ls bin` ; do \ if [ ! -f man/man1/$$i.1 ] ; then \ NAME=`fgrep $$i wcstools | sed "s/:/ \\\\- /"` ; \ LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:libwcs help2man --no-discard-stderr --version-string=3.8.7 -N -h "" -n "$NAME" bin/$$i | fgrep -v WCSTools > man/man_generated/$$i.1 ; \ fi \ done dh_installman mv man/man1/imcatalog.1 man/man1/imcat.1 override_dh_fixperms: dh_fixperms chmod 0644 debian/wcstools/usr/share/doc/wcstools/examples/* override_dh_install: dh_install debian/README.Debian0000644000000000000000000000064312040760347011235 0ustar wcstools for Debian ------------------- The wcstools installation for Debian has some names changed due to conflict with other packages: - libwcs.{so,a} --> libwcstools.{so,a}: Conflict with the "libwcs" package by Mark Calabretta. - imcat --> imcatalog: Conflict with the "im" package - remap --> wcsremap: Conflict with the "emboss" package Ole Streicher Fri, 27 Jan 2012 20:26:17 +0100 debian/libwcstools0.install0000755000000000000000000000020612040760347013206 0ustar #! /usr/bin/dh-exec libwcs/libwcstools.so.0 usr/lib/${DEB_HOST_MULTIARCH}/ libwcs/libwcstools.so.0.0.0 usr/lib/${DEB_HOST_MULTIARCH}/ debian/libwcstools-dev.install0000755000000000000000000000053212174763044013711 0ustar #! /usr/bin/dh-exec libwcs/fitsfile.h usr/include/wcstools libwcs/fitshead.h usr/include/wcstools libwcs/libwcstools.a usr/lib/${DEB_HOST_MULTIARCH}/ libwcs/libwcstools.so usr/lib/${DEB_HOST_MULTIARCH}/ libwcs/lwcs.h usr/include/wcstools libwcs/wcs.h usr/include/wcstools libwcs/wcslib.h usr/include/wcstools libwcs/wcscat.h usr/include/wcstools debian/source/0000755000000000000000000000000012040760347010471 5ustar debian/source/format0000644000000000000000000000001412040760347011677 0ustar 3.0 (quilt)