Changeset 3400
- Timestamp:
- Mar 9, 2005, 9:20:18 PM (21 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 13 edited
-
Makefile (modified) (4 diffs)
-
src/addstar/include/addstar.h (modified) (1 diff)
-
src/addstar/src/RegionOps.c (modified) (1 diff)
-
src/addstar/src/get2mass.c (modified) (3 diffs)
-
src/addstar/src/getgsc.c (modified) (1 diff)
-
src/addstar/src/greference.c (modified) (1 diff)
-
src/elixir/src/MachineOps.c (modified) (1 diff)
-
src/libfits/header/F_modify.c (modified) (1 diff)
-
src/libfits/include/fits.h (modified) (2 diffs)
-
src/libfits/table/F_get_column.c (modified) (1 diff)
-
src/libfits/table/F_table_format.c (modified) (2 diffs)
-
src/libohana/include/loneos.h (modified) (1 diff)
-
src/libohana/include/ohana.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/Makefile
r2853 r3400 28 28 # directory may be compiled by going to those directories. 29 29 PROGRAM = \ 30 addrefs \31 addspphot \32 30 addstar \ 33 31 delstar \ … … 42 40 kii \ 43 41 misc \ 44 mosastro.v 2\42 mosastro.v3 \ 45 43 nightd \ 46 44 opihi.v2 \ … … 56 54 opihi.v1 \ 57 55 addusno \ 56 addrefs \ 57 addspphot \ 58 58 fixcat \ 59 59 getstar \ … … 63 63 markstar \ 64 64 mosastro.v1 \ 65 mosastro.v2 \ 65 66 skycalc 66 67 -
trunk/Ohana/src/addstar/include/addstar.h
r3389 r3400 161 161 int FindRegionDecBandStart (GSCRegion *region, int Nregion, double dec); 162 162 int FindRegionDecBandStop (GSCRegion *region, int Nregion, double dec); 163 int FindDecBand (double dec, double *DEC0, double *DEC1); 164 163 165 int hms_to_deg (double *h0, double *h1, double *d0, double *d1, char *string); 164 166 void find_matches_refstars (GSCRegion *region, Stars **stars, int Nstars, Catalog *catalog); -
trunk/Ohana/src/addstar/src/RegionOps.c
r3376 r3400 21 21 GSCRegion *LoadRegions (int *nregions) { 22 22 23 int Nregions, i, N , NDec, Nx, Ny;24 char buffer[28800],temp[50], file[256];23 int Nregions, i, NDec, Nx, Ny; 24 char temp[50], file[256]; 25 25 double RA0, RA1, DEC0, DEC1, D0, D1; 26 26 FILE *f; -
trunk/Ohana/src/addstar/src/get2mass.c
r3376 r3400 5 5 Stars *get2mass (GSCRegion *patch, int *NSTARS) { 6 6 7 int i, j, k, Ns,Nstars, Nrefcat, Nregions;7 int i, Nstars, Nrefcat, Nregions; 8 8 Stars *stars; 9 9 Stars *refcat; … … 84 84 Stars *get2mass_data (TM_Region *region, GSCRegion *patch, int *nstars) { 85 85 86 int i, Nstars, NSTARS, Nbyte, Nline , Nval;86 int i, Nstars, NSTARS, Nbyte, Nline; 87 87 Stars *stars; 88 88 gzFile gf; 89 char *filename, buffer[NLINE*NBYTE] , datestr[64];89 char *filename, buffer[NLINE*NBYTE]; 90 90 double RA, DEC, J, H, K, dJ, dH, dK; 91 e_time time;92 91 double RA0, RA1, DEC0, DEC1; 93 92 … … 170 169 } 171 170 172 /*173 Nval = sscanf (&buffer[NBYTE*i + 0], "%lf %lf", &RA, &DEC);174 Nval += sscanf (&buffer[NBYTE*i + 53], "%lf %lf", &J, &dJ);175 Nval += sscanf (&buffer[NBYTE*i + 72], "%lf %lf", &H, &dH);176 Nval += sscanf (&buffer[NBYTE*i + 91], "%lf %lf", &K, &dK);177 Nval += sscanf (&buffer[NBYTE*i + 164], "%s", datestr);178 */179 180 171 /* this just scans along in the file. file is sorted by dec, so we 181 172 should be skipping large chunks - but we would need to have -
trunk/Ohana/src/addstar/src/getgsc.c
r3376 r3400 8 8 Stars *getgsc (GSCRegion *patch, int *NSTARS) { 9 9 10 int i, j, k, Ns,Ngsc, Nregions, Nstars;10 int i, Ngsc, Nregions, Nstars; 11 11 Stars *gsc; 12 12 Stars *stars; -
trunk/Ohana/src/addstar/src/greference.c
r3376 r3400 10 10 11 11 Nstars = 0; 12 stars = NULL; 12 13 13 14 /* get stars from USNO for the given region */ -
trunk/Ohana/src/elixir/src/MachineOps.c
r2428 r3400 447 447 double dt; 448 448 449 fd = 0; 449 450 if (filename == (char *) NULL) { 450 451 system ("tput clear"); -
trunk/Ohana/src/libfits/header/F_modify.c
r3369 r3400 102 102 char *fits_keyword_start (char *line) { 103 103 104 int done;105 104 char *c; 106 105 -
trunk/Ohana/src/libfits/include/fits.h
r3391 r3400 32 32 X = (T *) malloc ((unsigned)(MAX(((S)*((int)sizeof(T))),1))); \ 33 33 if (X == NULL) { \ 34 fprintf(stderr,"failed malloc at % sin %s\n", __LINE__, __FILE__);\34 fprintf(stderr,"failed malloc at %d in %s\n", __LINE__, __FILE__);\ 35 35 exit (10); } 36 36 # define REALLOCATE(X,T,S) \ 37 37 X = (T *) realloc(X,(unsigned)(MAX(((S)*((int)sizeof(T))),1))); \ 38 38 if (X == NULL) { \ 39 fprintf(stderr,"failed realloc at % sin %s\n", __LINE__, __FILE__);\39 fprintf(stderr,"failed realloc at %d in %s\n", __LINE__, __FILE__);\ 40 40 exit (10); } 41 41 # define CHECK_REALLOCATE(X,T,S,N,D) \ … … 44 44 X = (T *) realloc(X,(unsigned)(MAX(((S)*((int)sizeof(T))),1))); \ 45 45 if (X == NULL) { \ 46 fprintf(stderr,"failed realloc increment at % sin %s\n", __LINE__, __FILE__);\46 fprintf(stderr,"failed realloc increment at %d in %s\n", __LINE__, __FILE__);\ 47 47 exit (10); } } 48 48 # endif /* ALLOCATE */ -
trunk/Ohana/src/libfits/table/F_get_column.c
r2415 r3400 197 197 if (label == (char *) NULL) return (FALSE); 198 198 if (label[0] == 0) return (FALSE); 199 array = NULL; 199 200 200 201 /* find label in header */ -
trunk/Ohana/src/libfits/table/F_table_format.c
r2415 r3400 54 54 int fits_table_format (char *format, char *type, int *Nval, int *Nbytes) { 55 55 56 char Fchar, foo[80], bar;56 char Fchar, Size[80], Type; 57 57 int Nv; 58 58 … … 64 64 if (Nv == 0) { 65 65 Nv = 1; 66 strcpy ( foo, "1");66 strcpy (Size, "1"); 67 67 } else { 68 strcpy ( foo, &format[1]);68 strcpy (Size, &format[1]); 69 69 } 70 71 if (Fchar == 'F') { *Nbytes = 1; strcpy (type, "float"); bar = 'f'; *Nval = Nv; } 72 if (Fchar == 'I') { *Nbytes = 1; strcpy (type, "int"); bar = 'd'; *Nval = Nv; } 73 if (Fchar == 'A') { *Nbytes = 1; strcpy (type, "char"); bar = 's'; *Nval = Nv; } 70 71 Type = 'x'; 72 if (Fchar == 'F') { *Nbytes = 1; strcpy (type, "float"); Type = 'f'; *Nval = Nv; } 73 if (Fchar == 'I') { *Nbytes = 1; strcpy (type, "int"); Type = 'd'; *Nval = Nv; } 74 if (Fchar == 'A') { *Nbytes = 1; strcpy (type, "char"); Type = 's'; *Nval = Nv; } 74 75 if (!*Nbytes) { return (FALSE); } 75 76 76 sprintf (format, "%%-%s%c", foo, bar);77 sprintf (format, "%%-%s%c", Size, Type); 77 78 78 79 return (TRUE); -
trunk/Ohana/src/libohana/include/loneos.h
r3389 r3400 414 414 void coords_precess (double *ra, double *dec, double in_epoch, double out_epoch); 415 415 416 int FindMosaicForImage (Image *images, int Nimages, int entry); 417 int FindMosaicForImage_TableSearch (Image *images, int Nimages, int entry); 418 int FindMosaicForImage_MatchSearch (Image *images, int Nimages, int entry); 419 int BuildChipMatch (Image *images, int Nimages); 420 416 421 short int putMi (double value); 417 422 double getMi (short int value); -
trunk/Ohana/src/libohana/include/ohana.h
r3388 r3400 78 78 X = (T *) malloc ((unsigned)(MAX(((S)*((int)sizeof(T))),1))); \ 79 79 if (X == NULL) { \ 80 fprintf(stderr,"failed malloc at % sin %s\n", __LINE__, __FILE__);\80 fprintf(stderr,"failed malloc at %d in %s\n", __LINE__, __FILE__);\ 81 81 exit (10); } 82 82 # define REALLOCATE(X,T,S) \ 83 83 X = (T *) realloc(X,(unsigned)(MAX(((S)*((int)sizeof(T))),1))); \ 84 84 if (X == NULL) { \ 85 fprintf(stderr,"failed realloc at % sin %s\n", __LINE__, __FILE__);\85 fprintf(stderr,"failed realloc at %d in %s\n", __LINE__, __FILE__);\ 86 86 exit (10); } 87 87 # define CHECK_REALLOCATE(X,T,S,N,D) \ … … 90 90 X = (T *) realloc(X,(unsigned)(MAX(((S)*((int)sizeof(T))),1))); \ 91 91 if (X == NULL) { \ 92 fprintf(stderr,"failed realloc increment at % sin %s\n", __LINE__, __FILE__);\92 fprintf(stderr,"failed realloc increment at %d in %s\n", __LINE__, __FILE__);\ 93 93 exit (10); } } 94 94 # endif /* ALLOCATE */
Note:
See TracChangeset
for help on using the changeset viewer.
