Skip to content

Commit

Permalink
Merge pull request #363 from olebole/noirlab-pkg
Browse files Browse the repository at this point in the history
NOIRLAB: Small fixes in IRAF system packages
  • Loading branch information
olebole authored Jan 28, 2024
2 parents 8da26b9 + 9843155 commit 95d3652
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 30 deletions.
1 change: 0 additions & 1 deletion noao/mkpkg
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ update:
$call twodspec
$call imred

$ifeq (HOSTID, vms) $purge [...] $endif
$purge noaobin$
;

Expand Down
2 changes: 1 addition & 1 deletion pkg/images/tv/display/t_dcontrol.x
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ begin

# Get device information.
call clgstr ("device", Memc[device], SZ_FNAME)
if (streq (device, stdimage)) {
if (streq (Memc[device], stdimage)) {
if (envgets (stdimage, Memc[device], SZ_FNAME) <= 0)
call syserrs (SYS_ENVNF, stdimage)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/images/tv/mkpkg
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ update:
;

relink:
$set LIBS1 = "-liminterp -lncar -lgks -lds -lxtools"
$set LIBS1 = "-lncar -lgks -lds -lxtools"
$set LIBS2 = "-lgsurfit -lnlfit -lcurfit -lllsq -liminterp"
$checkout libds.a lib$
$update libds.a
Expand Down
1 change: 0 additions & 1 deletion pkg/mkpkg
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ update:
$call proto
$call utilities

$ifeq (HOSTID, vms) $purge [...] $endif
$purge bin$
;

Expand Down
4 changes: 0 additions & 4 deletions pkg/proto/color/mkpkg
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@ $exit

update:
$call update@src

$ifeq (HOSTID, vms) $purge [...] $endif
;

relink:
$call relink@src

$ifeq (HOSTID, vms) $purge [...] $endif
;

install:
Expand Down
4 changes: 0 additions & 4 deletions pkg/proto/vol/mkpkg
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@ $exit

update:
$call update@src

$ifeq (HOSTID, vms) $purge [...] $endif
;

relink:
$call relink@src

$ifeq (HOSTID, vms) $purge [...] $endif
;

install:
Expand Down
10 changes: 5 additions & 5 deletions pkg/tbtables/tbbnll.x
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ char output[ARB] # o: same as input, bit for bit
double buf # local copy of input
char cbuf[SZ_DOUBLE] # will be copied to output
int i
#equivalence (buf, cbuf)
equivalence (buf, cbuf)

begin
buf = input
Expand All @@ -89,7 +89,7 @@ char output[ARB] # o: same as input, bit for bit
real buf # local copy of input
char cbuf[SZ_REAL] # will be copied to output
int i
#equivalence (buf, cbuf)
equivalence (buf, cbuf)

begin
buf = input
Expand All @@ -109,7 +109,7 @@ char output[ARB] # o: same as input, bit for bit
int buf # local copy of input
char cbuf[SZ_INT32] # will be copied to output
int i
#equivalence (buf, cbuf)
equivalence (buf, cbuf)

begin
buf = input
Expand All @@ -129,7 +129,7 @@ char output[ARB] # o: same as input, bit for bit
short buf # local copy of input
char cbuf[SZ_SHORT] # will be copied to output
int i
#equivalence (buf, cbuf)
equivalence (buf, cbuf)

begin
if (SZ_SHORT == SZ_CHAR) {
Expand All @@ -153,7 +153,7 @@ char output[ARB] # o: same as input, bit for bit
bool buf # local copy of input
char cbuf[SZ_BOOL] # will be copied to output
int i
#equivalence (buf, cbuf)
equivalence (buf, cbuf)

begin
buf = input
Expand Down
4 changes: 2 additions & 2 deletions pkg/tbtables/tbfnew.x
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ bool simple, extend
int status # zero is OK
int hdu # HDU number (zero is primary header)
int fd[2] # unit number for FITS file; cfitsio pointer
#double dfd # to force alignment of fd
#equivalence (fd, dfd) # to force alignment of fd
double dfd # to force alignment of fd
equivalence (fd, dfd) # to force alignment of fd
int hdutype # type of current HDU
int extver # value of EXTVER from existing header, or -1
int ncols # number of columns, but min of 1 (for allocating space)
Expand Down
4 changes: 2 additions & 2 deletions pkg/tbtables/tbfopn.x
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ int hdu # HDU number
int extver # extension version number
int hdutype # type of HDU
int fd[2] # unit number for FITS file; cfitsio pointer
#double dfd # to force alignment of fd
#equivalence (fd, dfd) # to force alignment of fd
double dfd # to force alignment of fd
equivalence (fd, dfd) # to force alignment of fd
int tbffnd()
bool strne()
errchk tbffnd, tbferr
Expand Down
6 changes: 3 additions & 3 deletions pkg/tbtables/tbfpri.x
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ int ifd[2] # C pointer for input (template) FITS file
int ofd[2] # C pointer for output FITS file
# These variables and equivalence statements are used to force 8-byte
# alignment of ifd and ofd.
#double d_ifd, d_ofd
#equivalence (ifd, d_ifd)
#equivalence (ofd, d_ofd)
double d_ifd, d_ofd
equivalence (ifd, d_ifd)
equivalence (ofd, d_ofd)
int naxis # NAXIS from primary header of input
int status # zero is OK
int itype, otype # file type based on filename extension
Expand Down
4 changes: 2 additions & 2 deletions pkg/utilities/nttools/nttools.par
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Dummy LOCAL package parameter file.
# Dummy NTTOOLS package parameter file.

version,s,h,"10May2000"
version,s,h,"10Oct2023"
8 changes: 4 additions & 4 deletions pkg/xtools/fixpix/ytpmmap.x
Original file line number Diff line number Diff line change
Expand Up @@ -871,16 +871,16 @@ begin
# Expand the mask bound to avoid missing the edge.
i = (xmin - 1) * icstep + (2*buf) - 1
xmin = (i - (2*buf)) / icstep + 1
xmin = max (1, min (ncpm, nint(xmin)))
xmin = max (1, min (ncpm, nint(xmin*1.0)))
i = (xmax - 1) * icstep + (2*buf) + 1.99
xmax = (i - (2*buf)) / icstep + 1
xmax = max (1, min (ncpm, nint(xmax)))
xmax = max (1, min (ncpm, nint(xmax*1.0)))
j = (ymin - 1) * ilstep + (2*buf) - 1
ymin = (j - (2*buf)) / ilstep + 1
ymin = max (1, min (nlpm, nint(ymin)))
ymin = max (1, min (nlpm, nint(ymin*1.0)))
j = (ymax - 1) * ilstep + (2*buf) + 1.99
ymax = (j - (2*buf)) / ilstep + 1
ymax = max (1, min (nlpm, nint(ymax)))
ymax = max (1, min (nlpm, nint(ymax*1.0)))
# Determine size of mask pixel in reference system.
# This is approximate because we don't take into account the
Expand Down

0 comments on commit 95d3652

Please sign in to comment.