aboutsummaryrefslogtreecommitdiff
path: root/lib/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pkg')
-rw-r--r--lib/pkg/center1d.h6
-rw-r--r--lib/pkg/cq.h100
-rw-r--r--lib/pkg/dttext.h19
-rw-r--r--lib/pkg/gtools.h48
-rw-r--r--lib/pkg/icfit.h14
-rw-r--r--lib/pkg/igsfit.h17
-rw-r--r--lib/pkg/inlfit.h89
-rw-r--r--lib/pkg/mef.h52
-rw-r--r--lib/pkg/rg.h8
-rw-r--r--lib/pkg/rmsorted.h15
-rw-r--r--lib/pkg/skywcs.h132
-rw-r--r--lib/pkg/xtanswer.h5
12 files changed, 505 insertions, 0 deletions
diff --git a/lib/pkg/center1d.h b/lib/pkg/center1d.h
new file mode 100644
index 00000000..c2d4972d
--- /dev/null
+++ b/lib/pkg/center1d.h
@@ -0,0 +1,6 @@
+# Type of features for one dimensional centering.
+
+define EMISSION 1 # Emission feature
+define ABSORPTION 2 # Absorption feature
+
+define FTYPES "|emission|absorption|" # Types for strdic and clgwrd.
diff --git a/lib/pkg/cq.h b/lib/pkg/cq.h
new file mode 100644
index 00000000..9d9f801f
--- /dev/null
+++ b/lib/pkg/cq.h
@@ -0,0 +1,100 @@
+# Public definitions file for the catalog query interface.
+
+# The catalog access interface parameter definitions
+
+define CQNRECS 1 # the number of records in the catalog database
+define CQSZRECLIST 2 # the length of the record name list in chars
+define CQRECLIST 3 # the record name @list
+define CQCATDB 4 # the catalog database file name
+define CQCATNO 5 # the current catalog record number
+define CQCATNAME 6 # the current catalog name
+
+# The max size of a query parameter name, value, units, and formats string.
+
+define CQ_SZ_QPNAME 19
+define CQ_SZ_QPVALUE 79
+define CQ_SZ_QPUNITS 19
+define CQ_SZ_QPFMTS 11
+
+# The maximum number of fields or columns in the result.
+
+define CQ_MAX_NFIELDS 100
+
+# The catalog access results parameter definitions
+
+define CQRCATDB 1 # the catalog database file
+define CQRCATNAME 2 # the catalog name
+define CQRADDRESS 3 # the address
+define CQRQUERY 4 # the query
+define CQRNQPARS 5 # the number of query parameters
+define CQRQPNAMES 6 # the query parameter names
+define CQRQPVALUES 7 # the query parameter values
+define CQRQPUNITS 8 # the query parameter units
+
+define CQRTYPE 9 # the results format (currently stext or btext)
+define CQRECSIZE 10 # the record length in characters (default = 0)
+define CQRHSKIP 11 # the number of header lines to skip (default = 0)
+define CQRTSKIP 12 # the number of trailing lines to skip (default = 0)
+define CQRTRIML 13 # the number of leading characters to trim
+define CQRTRIMR 14 # the number of trailing characters to trim
+
+define CQRNRECS 15 # The number of records in the results
+define CQNHEADER 16 # The number of header keywords in the results
+define CQNFIELDS 17 # The number of record fields in the results
+define CQRECPTR 18 # the current record pointer
+
+# The surveys access results parameter definitions
+
+define CQIMCATDB 1
+define CQIMCATNAME 2
+define CQIMADDRESS 3
+define CQIMQUERY 4
+define CQINQPARS 5
+define CQIQPNAMES 6
+define CQIQPVALUES 7
+define CQIQPUNITS 8
+define CQIMNAME 9
+define CQIMTYPE 10
+define CQWCS 11
+define CQNWCS 12
+define CQNIMPARS 13
+
+
+# The max size of a field name, value, units, and formats string.
+
+define CQ_SZ_FNAME 19
+define CQ_SZ_FVALUE 79
+define CQ_SZ_FUNITS 19
+define CQ_SZ_FFMTS 11
+
+
+# Define the default input catalog file types
+
+define CQ_RTYPESTR "|stext|btext|"
+
+define CQ_STEXT 1 # Simple text (free format fields)
+ # Newline delimited records
+ # Whitespace delimited fields
+ # No embedded whitespace unless in ""
+ # Skip nlines header
+ # Skip nchars at beginning / end of record
+ # Skip nlines trailer
+
+
+define CQ_BTEXT 2 # Blocked text (fixed format fields)
+ # Fixed size newline delimited records
+ # Offset and size delimited fields
+ # Embedded whitespace permitted
+ # Skip nlines header
+ # Skip nchars at beginning / end of record
+ # Skip nlines trailer
+
+
+define CQ_ITYPESTR "|fits|"
+define CQ_FITS 1
+
+
+define CQ_WTYPESTR "|fits|dss|none|"
+define CQ_WFITS 1
+define CQ_WDSS 2
+define CQ_WNONE 3
diff --git a/lib/pkg/dttext.h b/lib/pkg/dttext.h
new file mode 100644
index 00000000..887e5c32
--- /dev/null
+++ b/lib/pkg/dttext.h
@@ -0,0 +1,19 @@
+# Defintion for dbtext structure.
+
+define DT_LEN 106
+define DT_SZFNAME 99
+
+define DT Memi[$1] # FIO channel
+define DT_NRECS Memi[$1+1] # Number of records
+define DT_OFFSETS Memi[$1+2] # Pointer to record offsets
+define DT_NAMES Memi[$1+3] # Pointer to name indices
+define DT_MAP Memi[$1+4] # Pointer to record names
+define DT_MODE Memi[$1+5] # Access mode
+define DT_DNAME Memc[P2C($1+6)] # Directory name
+define DT_FNAME Memc[P2C($1+56)] # File name
+
+define DT_OFFSET Meml[DT_OFFSETS($1)+$2-1]
+define DT_NAMEI Memi[DT_NAMES($1)+$2-1]
+define DT_NAME Memc[DT_MAP($1)+DT_NAMEI($1,$2)]
+
+define DT_ALLOC 20 # Allocation block size
diff --git a/lib/pkg/gtools.h b/lib/pkg/gtools.h
new file mode 100644
index 00000000..d42b2898
--- /dev/null
+++ b/lib/pkg/gtools.h
@@ -0,0 +1,48 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+# Public Definitions
+
+define GTVXMIN 0 # Viewport X minimum
+define GTVXMAX 1 # Viewport X maximum
+define GTVYMIN 2 # Viewport Y minimum
+define GTVYMAX 3 # Viewport Y maximum
+define GTXMIN 4 # WCS X minimum
+define GTXMAX 5 # WCS X maximum
+define GTYMIN 6 # WCS Y minimum
+define GTYMAX 7 # WCS Y maximum
+
+define GTSYSID 8 # Add SYSID?
+define GTPARAMS 9 # Graph parameters
+define GTTITLE 10 # Graph title
+define GTSUBTITLE 11 # Graph subtitle
+define GTCOMMENTS 12 # Comments
+define GTXLABEL 13 # X label
+define GTYLABEL 14 # Y label
+define GTXUNITS 15 # X units
+define GTYUNITS 16 # Y units
+
+define GTDRAWTITLE 17 # Draw title block?
+define GTDRAWXLABELS 18 # Draw x axis label block?
+define GTDRAWYLABELS 19 # Draw y axis label block?
+
+define GTTYPE 20 # Graph type
+define GTMARK 21 # Mark type
+define GTLINE 22 # Line type
+define GTXSIZE 23 # X Mark size
+define GTYSIZE 24 # Y Mark size
+define GTCOLOR 25 # Color
+
+define GTXTRAN 26 # WCS X transform
+define GTYTRAN 27 # WCS Y transform
+define GTXFLIP 28 # Flip X axis
+define GTYFLIP 29 # Flip Y axis
+define GTTRANSPOSE 30 # Transpose X and Y axes?
+
+define GTXFORMAT 31 # X format
+define GTYFORMAT 32 # Y format
+
+define GTXBUF 33 # Autoscaling buffer factor
+define GTYBUF 34 # Autoscaling buffer factor
+define GTLCLIP 35 # Low clipping factor
+define GTHCLIP 36 # High clipping factor
+
diff --git a/lib/pkg/icfit.h b/lib/pkg/icfit.h
new file mode 100644
index 00000000..4d8a0f18
--- /dev/null
+++ b/lib/pkg/icfit.h
@@ -0,0 +1,14 @@
+# Definitions for the interactive curve fitting package.
+
+define IC_XMIN 1
+define IC_XMAX 2
+define IC_SAMPLE 3
+define IC_NAVERAGE 4
+define IC_FUNCTION 5
+define IC_ORDER 6
+define IC_LOWREJECT 7
+define IC_HIGHREJECT 8
+define IC_NITERATE 9
+define IC_GROW 10
+define IC_REJPTS 11
+define IC_NREJECT 12
diff --git a/lib/pkg/igsfit.h b/lib/pkg/igsfit.h
new file mode 100644
index 00000000..d8bc58a1
--- /dev/null
+++ b/lib/pkg/igsfit.h
@@ -0,0 +1,17 @@
+define IGSPARAMS 7
+
+define FEATURE 1
+define X 2
+define Y 3
+define Z 4
+define W 5
+define S 6
+define R 7
+
+define IGS_FUNCTION 1
+define IGS_XORDER 2
+define IGS_YORDER 3
+define IGS_XMIN 4
+define IGS_XMAX 5
+define IGS_YMIN 6
+define IGS_YMAX 7
diff --git a/lib/pkg/inlfit.h b/lib/pkg/inlfit.h
new file mode 100644
index 00000000..7a85d10a
--- /dev/null
+++ b/lib/pkg/inlfit.h
@@ -0,0 +1,89 @@
+# The user callable header file for the INLFIT pacakge
+
+# -------------------------------------------------------------------------
+# Definitions to retrieve INLFIT parameters (attributes) with the in_get(),
+# and in_put() procedures.
+
+# Integer valued parameters (in_geti, in_puti)
+
+define INLFUNCTION 1 # Fitting function
+define INLDERIVATIVE 2 # Fitting function derivatives
+define INLNPARAMS 3 # Total number of parameters
+define INLNFPARAMS 4 # Number of fitting parameters
+define INLNVARS 5 # Number of variables
+define INLNPTS 6 # Number of variables
+define INLMAXITER 7 # Max. number of iterations
+define INLNREJECT 8 # Number of rejection iterations
+define INLNREJPTS 9 # Number of rejected points
+define INLUAXES 10 # User plot function
+define INLUCOLON 11 # User colon function
+define INLUFIT 12 # User fit function
+define INLOVERPLOT 13 # Overplot next plot ?
+define INLPLOTFIT 14 # Overplot fit ?
+define INLFITERROR 15 # Error fit code
+define INLGKEY 16 # Graph key
+
+
+# Real/double valued parameters (in_get[rd], in_put[rd])
+
+define INLTOLERANCE 20 # Tolerance of convergence
+define INLLOW 21 # Low rejection value
+define INLHIGH 22 # High rejection value
+define INLGROW 23 # Rejection growing radius
+
+
+# Pointer valued parameters (in_getp, in_getp)
+
+define INLNL 30 # NLFIT descriptor
+define INLPARAM 31 # Parameter vector
+define INLDPARAM 32 # Parameter change vector
+define INLPLIST 33 # Parameter list
+define INLREJPTS 34 # Rejected points
+define INLXMIN 35 # Minimum value for curve
+define INLXMAX 36 # Maximum value for curve
+define INLSFLOAT 37 # Floating point substructure
+define INLSGAXES 38 # Graphics substructure
+
+
+# String valued parameters (in_gstr, in_pstr)
+
+define INLLABELS 40 # standard axis labels
+define INLUNITS 41 # standard axis units
+define INLFLABELS 42 # Function labels
+define INLFUNITS 43 # Function units
+define INLPLABELS 44 # Parameter labels
+define INLPUNITS 45 # Parameter units
+define INLVLABELS 46 # Variable labels
+define INLVUNITS 47 # Variable units
+define INLUSERLABELS 48 # User plot labels
+define INLUSERUNITS 49 # User plot units
+define INLHELP 50 # Help file name
+define INLPROMPT 51 # Help prompt
+
+
+# -------------------------------------------------------------------------
+# Graphic key and axis definitions. These are used to retrieve key/axis
+# attributes using the in_gkey() and in_pkey() procedures.
+
+# Max number of graph keys
+
+define INLNGKEYS 5
+
+
+# Axis codes.
+
+define INLXAXIS 1 # X axis
+define INLYAXIS 2 # Y axis
+
+
+# Graph key/axis codes.
+
+define KEY_FUNCTION 1 # Function
+define KEY_FIT 2 # Fit
+define KEY_RESIDUALS 3 # Residuals
+define KEY_RATIO 4 # Ratio
+define KEY_NONLINEAR 5 # Non-linear part
+define KEY_VARIABLE 6 # Variable (user or default)
+define KEY_UAXIS 7 # User plot function
+define KEY_MIN KEY_FUNCTION # Min. key type
+define KEY_MAX KEY_UAXIS # Max. key type
diff --git a/lib/pkg/mef.h b/lib/pkg/mef.h
new file mode 100644
index 00000000..635a6e0a
--- /dev/null
+++ b/lib/pkg/mef.h
@@ -0,0 +1,52 @@
+define LEN_CARD 80
+define SZ_EXTTYPE 20
+define LEN_CARDNL 81
+define SZ_KEYWORD 8
+define FITS_STARTVALUE 10
+define FITS_ENDVALUE 30
+define FITS_BLKSZ_CHAR 1440 # Number of chars per FITS block
+define FITS_BLKSZ_NL 2916 # 36*81
+define FITS_BLOCK_BYTES 2880
+define MEF_SZVALSTR 68
+define FITS_ORIGIN "NOAO-IRAF FITS MEF utility Sep99"
+
+define LEN_MEF 271
+
+define MEF_FD Memi[$1] # File descriptor
+define MEF_HOFF Memi[$1+2] # Header offset in chars
+define MEF_ACMODE Memi[$1+3] # Access mode
+define MEF_ENUMBER Memi[$1+4] # Absolute extension number
+define MEF_EXTVER Memi[$1+5] # Extension version
+define MEF_CGROUP Memi[$1+6] # Current group read
+define MEF_HFLAG Memi[$1+7] # Header update flag
+define MEF_HSIZE Memi[$1+8] # Header size
+define MEF_HDRP Memi[$1+9] # Header area pointer
+define MEF_POFF Memi[$1+10] # Offset to pixel area (chars)
+define MEF_NDIM Memi[$1+11] # Unit dimensionality
+define MEF_NAXIS Memi[$1+$2+12-1] # Upto 7 axis
+define MEF_BITPIX Memi[$1+18] # Unit datatype
+define MEF_DATATYPE Memi[$1+19] # Unit datatype
+define MEF_SKDATA Memi[$1+20] # Has data been skipped?
+define MEF_PCOUNT Memi[$1+21] # Has data been skipped?
+define MEF_KEEPXT Memi[$1+22] # Has data been skipped?
+define MEF_EXTTYPE Memc[P2C($1+23)] # Extension type
+define MEF_FNAME Memc[P2C($1+63)] # Filename
+define MEF_OBJECT Memc[P2C($1+191)] # Object
+define MEF_EXTNAME Memc[P2C($1+231)] # Extension name
+
+define NEW_UNIT NEW_FILE
+
+define SIMPLE 1
+define NAXIS 2
+define NAXISN 3
+define EXTNAME 4
+define EXTVER 5
+define END 6
+define BITPIX 7
+define EXTEND 8
+define OBJECT 9
+define PCOUNT 10
+define GCOUNT 11
+define INHERIT 12
+define FILENAME 13
+define XTENSION 14
diff --git a/lib/pkg/rg.h b/lib/pkg/rg.h
new file mode 100644
index 00000000..0d068132
--- /dev/null
+++ b/lib/pkg/rg.h
@@ -0,0 +1,8 @@
+# Definitions for the RANGES structure.
+
+define LEN_RG 2
+
+define RG_NPTS Memi[$1] # Number of points in ranges
+define RG_NRGS Memi[$1+1] # Number of range intervals
+define RG_X1 Memi[$1+2*($2)] # Start of interval $2
+define RG_X2 Memi[$1+2*($2)+1] # End of interval $2
diff --git a/lib/pkg/rmsorted.h b/lib/pkg/rmsorted.h
new file mode 100644
index 00000000..f0b2bcc2
--- /dev/null
+++ b/lib/pkg/rmsorted.h
@@ -0,0 +1,15 @@
+define RMS_OFFSET 5 # Offset to data
+define RMS_LEN (RMS_OFFSET+2*$1+2) # Structure length
+define RMS_BOX Memi[$1] # Running box size
+define RMS_TYPE Memi[$1+1] # Output type
+define RMS_DATA Memi[$1+2] # Sorted data (ptr)
+define RMS_IN Memi[$1+3] # Mapping to input (ptr)
+define RMS_OUT Memi[$1+4] # Mapping to output (ptr)
+
+define DATA Memr[RMS_DATA($1)+$2]
+define IN Mems[RMS_IN($1)+$2]
+define OUT Mems[RMS_OUT($1)+$2]
+
+define RMS_TYMED 1 # Median
+define RMS_TYMAX 2 # Maximum
+define RMS_TYMIN 3 # Minimum
diff --git a/lib/pkg/skywcs.h b/lib/pkg/skywcs.h
new file mode 100644
index 00000000..c0c6a3b7
--- /dev/null
+++ b/lib/pkg/skywcs.h
@@ -0,0 +1,132 @@
+# Public definitions file for the SKYWCS library.
+
+# Define the SKYWCS library parameters.
+
+define S_VXOFF 1
+define S_VYOFF 2
+define S_VXSTEP 3
+define S_VYSTEP 4
+define S_EQUINOX 5
+define S_EPOCH 6
+define S_CTYPE 7
+define S_RADECSYS 8
+define S_WTYPE 9
+define S_PLNGAX 10
+define S_PLATAX 11
+define S_XLAX 12
+define S_YLAX 13
+define S_PIXTYPE 14
+define S_NLNGAX 15
+define S_NLATAX 16
+define S_NLNGUNITS 17
+define S_NLATUNITS 18
+define S_COOSYSTEM 19
+define S_STATUS 20
+
+# Define the list of supported fundamental coordinate systems.
+
+define FTYPE_LIST "|fk4|noefk4|fk5|icrs|apparent|ecliptic|galactic|\
+supergalactic|"
+
+define FTYPE_FK4 1
+define FTYPE_FK4NOE 2
+define FTYPE_FK5 3
+define FTYPE_ICRS 4
+define FTYPE_GAPPT 5
+define FTYPE_ECLIPTIC 6
+define FTYPE_GALACTIC 7
+define FTYPE_SUPERGALACTIC 8
+
+# Define the list of supported coordinate systems.
+
+define CTYPE_LIST "|equatorial|ecliptic|galactic|supergalactic|"
+
+define CTYPE_EQUATORIAL 1
+define CTYPE_ECLIPTIC 2
+define CTYPE_GALACTIC 3
+define CTYPE_SUPERGALACTIC 4
+
+# Define the supported equatoral reference systems.
+
+define EQTYPE_LIST "|fk4|fk4-no-e|fk5|icrs|gappt|"
+
+define EQTYPE_FK4 1
+define EQTYPE_FK4NOE 2
+define EQTYPE_FK5 3
+define EQTYPE_ICRS 4
+define EQTYPE_GAPPT 5
+
+# Define the input coordinate file longitude latitude units.
+
+define SKY_LNG_UNITLIST "|degrees|radians|hours|"
+define SKY_LAT_UNITLIST "|degrees|radians|"
+
+define SKY_DEGREES 1
+define SKY_RADIANS 2
+define SKY_HOURS 3
+
+# Define the list of supported image sky projection types.
+
+define WTYPE_LIST "|lin|azp|tan|sin|stg|arc|zpn|zea|air|cyp|car|\
+mer|cea|cop|cod|coe|coo|bon|pco|gls|par|ait|mol|csc|qsc|tsc|tnx|zpx|"
+
+define PTYPE_LIST "|z|z|z|z|z|z|z|z|z|c|c|c|c|n|n|n|n|c|c|c|c|c|c|c|c|c|\
+x|x|"
+
+define WTYPE_LIN 1
+define WTYPE_AZP 2
+define WTYPE_TAN 3
+define WTYPE_SIN 4
+define WTYPE_STG 5
+define WTYPE_ARC 6
+define WTYPE_ZPN 7
+define WTYPE_ZEA 8
+define WTYPE_AIR 9
+define WTYPE_CYP 10
+define WTYPE_CAR 11
+define WTYPE_MER 12
+define WTYPE_CEA 13
+define WTYPE_COP 14
+define WTYPE_COD 15
+define WTYPE_COE 16
+define WTYPE_COO 17
+define WTYPE_BON 18
+define WTYPE_PCO 19
+define WTYPE_GLS 20
+define WTYPE_PAR 21
+define WTYPE_AIT 22
+define WTYPE_MOL 23
+define WTYPE_CSC 24
+define WTYPE_QSC 25
+define WTYPE_TSC 26
+define WTYPE_TNX 27
+define WTYPE_ZPX 28
+
+define PTYPE_NAMES "|z|c|n|x|"
+
+define PTYPE_ZEN 1
+define PTYPE_CYL 2
+define PTYPE_CON 3
+define PTYPE_EXP 4
+
+# Define the supported image axis types.
+
+define AXTYPE_LIST "|ra|dec|glon|glat|elon|elat|slon|slat|"
+
+define AXTYPE_RA 1
+define AXTYPE_DEC 2
+define AXTYPE_GLON 3
+define AXTYPE_GLAT 4
+define AXTYPE_ELON 5
+define AXTYPE_ELAT 6
+define AXTYPE_SLON 7
+define AXTYPE_SLAT 8
+
+# Define the supported image pixel coordinate systems.
+
+define PIXTYPE_LIST "|logical|tv|physical|world|"
+
+define PIXTYPE_LOGICAL 1
+define PIXTYPE_TV 2
+define PIXTYPE_PHYSICAL 3
+define PIXTYPE_WORLD 4
diff --git a/lib/pkg/xtanswer.h b/lib/pkg/xtanswer.h
new file mode 100644
index 00000000..46c382bf
--- /dev/null
+++ b/lib/pkg/xtanswer.h
@@ -0,0 +1,5 @@
+# Answers for emphatic yes and no.
+
+define XT_ANSWERS "|no|yes|NO|YES|"
+define ALWAYSNO 2
+define ALWAYSYES 3