...
 
Commits (2)
......@@ -8,6 +8,7 @@
#include "model_globals.h"
#include "astrom_io_globals.h"
#include "build_globals.h"
#include "compute_globals.h"
static void build_refpair(reflist_struct *refpair, model_struct *model)
/****** build_refpair ***************************************************
......
......@@ -4,6 +4,7 @@
#include "model_types.h"
#include "gaussj_globals.h"
#include "options_globals.h"
#include "model_globals.h"
#define SWAP(a,b) {double temp=(a);(a)=(b);(b)=temp;}
......
#ifndef MODEL_TYPES_H__
#define MODEL_TYPES_H__
typedef struct {
double **alpha, /* Design matrix or covariance matrix */
**beta; /* Data matrix or solved parameters */
......@@ -20,3 +23,4 @@ typedef struct {
mpix; /* Pixel scaling parameter */
} model_struct;
#endif
......@@ -2,6 +2,8 @@
#include <math.h>
#include "svd_solve.h"
#include "utils_globals.h"
#include "svdcmp.h"
#include "svbksb.h"
void solve(float **A, int nparms, int nobs, float **B, float **X, int nb)
{
......
......@@ -238,6 +238,8 @@
*===========================================================================*/
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include "wcstrig.h"
#include "cel.h"
#include "sph.h"
......
......@@ -196,6 +196,7 @@
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "poly.h"
#include "proj.h"
#include "tnx.h"
......
extern void coepro(double, double, double, double, double, double *, double *);
......@@ -8,6 +8,7 @@
#include "utils_globals.h"
#include "image_io_globals.h"
#include "fits_image_io_globals.h"
#include "coepro.h"
#define NAME "FitsPaste Program"
#define VERS "1.0"
......
......@@ -8,7 +8,7 @@
#
include $(PIPELIB)/$(EXT)/Makefile
#
INCLUDES = -I. -I../common
INCLUDES = -I. -I../common -I../../library
DEFINES = -DNOSMALLHUGE
#
LIBS = -L/usr/local/lib -ltk -ltcl -L/soft2/plplot/lib -lplplotftk -lX11 -lm \
......
......@@ -19,6 +19,9 @@
#include "fitscat_defs.h"
#include "fitscat.h"
#include "svdfit.h"
extern int copy_tab_pos(catstruct *, char *, int, int, catstruct *, int);
/****** about_tab **************************************************************
PROTO int about_tab(catstruct *cat, char *tabname, FILE *stream)
......
......@@ -8,6 +8,7 @@
#include "utils_globals.h"
#include "options_globals.h"
#include "asctoldac_defs.h"
#include "tabutil_globals.h"
#ifdef SHORT
#undef SHORT
......
......@@ -7,6 +7,8 @@
#include "pos_globals.h"
#include "pos_defs.h"
#include "tabutil_globals.h"
#include "obj_obj_util.h"
#include "pos_types.h"
#define NAME "Bit Interleave Program"
#define VERS "1.0"
......@@ -21,6 +23,8 @@ static control_struct control;
char header[MAXCHAR];
char *cline;
extern void pos_to_radec(posstruct, double *, double *);
option my_opts[] = {
{"RA", TEXT, control.ra, 0, 0, 0.0, 0.0,
......
......@@ -23,6 +23,7 @@
#include "fitscat.h"
#include "tabutil_globals.h"
#include "utils_globals.h"
#include "lists_globals.h"
#define MAXCHAR 256
......
......@@ -20,6 +20,7 @@
#include "fitscat_defs.h"
#include "fitscat.h"
#include "utils_globals.h"
#define SYNTAX \
......
......@@ -23,6 +23,7 @@
#include "fitscat_defs.h"
#include "fitscat.h"
#include "utils_globals.h"
#include "tabutil_globals.h"
#define SYNTAX \
......
......@@ -21,6 +21,7 @@
#include "filter_globals.h"
#include "options_globals.h"
#include "utils_globals.h"
#define NAME "Catalog Filter Program"
#define VERS "1.3.1"
#define DATE __DATE__
......
......@@ -16,6 +16,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "fitscat_defs.h"
......
......@@ -38,6 +38,9 @@
#define AUTHOR "E.R. Deul"
extern int copy_tab_pos(catstruct *, char *, int, int, catstruct *, int);
/********************************** main ************************************/
int main(int argc, char *argv[])
......
......@@ -8,6 +8,7 @@
#include "pos_globals.h"
#include "pos_defs.h"
#include "tabutil_globals.h"
#include "obj_obj_util.h"
/*
* Global variables do not take as much memory
......
CFLAGS=$(DEBUG) -Wall $(INCLUDES) $(DEFINES) -DL_ENDIAN -DUNDERSCORE -DBSWAP
#CC=/strw6/deul/pipesoft/checker/linux/bin/checkergcc
CC=gcc
CC?=gcc
CPPFLAGS=
FC=f77
FFLAGS=$(DEBUG)
......
......@@ -20,6 +20,7 @@ extern void
set_no_interp(bool),
init_fits(fitsfile_struct *),
save_fits(fitsfile_struct *, unsigned char *, char *),
write_fits_line(fitsfile_struct *, unsigned char *),
read_fits_line(fitsfile_struct *, unsigned char *, int , bool);
extern int
......@@ -48,7 +49,8 @@ extern int
s_fits_short(char *, fitshead_struct *, short int),
s_fits_float(char *, fitshead_struct *, float),
s_fits_double(char *, fitshead_struct *, double),
s_fits_str(char *, fitshead_struct *, char *);
s_fits_str(char *, fitshead_struct *, char *),
write_fits_header(fitsfile_struct *);
extern double
r_fits_float(char *, fitshead_struct *, double);
#ifndef POS_TYPES_H__
#define POS_TYPES_H__
typedef struct {
unsigned int msb,lsb;
} posstruct;
......@@ -12,3 +16,6 @@ typedef struct {
int *idx;
int n;
} idxstruct;
#endif
extern void svbksb(float **, float [], float **, int, int, float [], float []);
extern void svdcmp(float **, int, int, float *, float **);
#include "svdcmp.h"
#include "svbksb.h"
#define TOL 1.0e-5
void svdfit(x,y,sig,ndata,a,ma,u,v,w,chisq,funcs)
......@@ -7,7 +10,7 @@ void (*funcs)(float,float *,int);
{
int j,i;
float wmax,tmp,thresh,sum,*b,*afunc,*vector();
void svdcmp(),svbksb(),nr_free_vector();
void nr_free_vector();
b=vector(1,ndata);
afunc=vector(1,ma);
......
extern void svdfit(float [], float [], float[], int, float[], int, float **,
float **, float [] , float *, void (*funcs)(float,float *,int));
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "fitscat.h"
#include "fitscat_defs.h"
#include "utils_globals.h"
......
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "fitscat.h"
#include "solve.h"
#include "options_globals.h"
......
......@@ -8,6 +8,7 @@
#include "lists_globals.h"
#include "relphotom_globals.h"
#include "fixed_phot_globals.h"
#include "svdfit.h"
static int nfixed;
static float *fixedcfs;
......
......@@ -2,8 +2,11 @@
#include <math.h>
#include "solve.h"
#include "svdvar.h"
#include "svdcmp.h"
#include "svbksb.h"
#include "utils_globals.h"
#include "options_globals.h"
#include "lists_globals.h"
/*
* Many routines from the numerical recipes C-2nd edition are included here
......
......@@ -40,6 +40,8 @@ static char *process_names[NPROCS] = {"NSETS", "CHANNELS", "ROOT_NAME",
#define MAXCHAR 256
#endif
extern void make_field_count(int, char *, char *);
typedef struct {
char process_type[MAXCHAR], catalog[MAXCHAR],
filter_name[MAXCHAR], camera_name[MAXCHAR];
......