Changeset 3536
- Timestamp:
- Mar 28, 2005, 4:48:19 PM (21 years ago)
- Location:
- trunk/Ohana/src
- Files:
-
- 4 added
- 21 edited
-
imregister/Makefile (modified) (1 diff)
-
imregister/include/photreg.h (modified) (1 diff)
-
imregister/photreg/args.photreg.c (modified) (7 diffs)
-
imregister/photreg/args.photsearch.c (modified) (1 diff)
-
imregister/photreg/convert.c (added)
-
imregister/photreg/delete.c (modified) (3 diffs)
-
imregister/photreg/match.c (modified) (2 diffs)
-
imregister/photreg/output.c (modified) (6 diffs)
-
imregister/spreg/output.c (modified) (1 diff)
-
imregister/src/photreg.c (modified) (1 diff)
-
imregister/src/photsearch.c (modified) (1 diff)
-
imregister/src/select.c (added)
-
imregister/src/spregister.c (modified) (2 diffs)
-
imregister/src/spsearch.c (modified) (2 diffs)
-
libautocode/Makefile (modified) (2 diffs)
-
libautocode/def/common.h (modified) (1 diff)
-
libautocode/def/photreg-old.d (added)
-
libautocode/def/photreg.d (added)
-
libautocode/def/spectrum.d (modified) (1 diff)
-
libautocode/generate (modified) (4 diffs)
-
libohana/Makefile (modified) (2 diffs)
-
libohana/include/dvo.h (modified) (3 diffs)
-
libohana/include/elixir.h (modified) (1 diff)
-
libohana/include/loneos.h (modified) (1 diff)
-
libohana/include/panstarrs.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/imregister/Makefile
r3534 r3536 73 73 74 74 PHOTOBJ = \ 75 $(PHOTREG)/db.$(ARCH).o \ 76 $(PHOTREG)/delete.$(ARCH).o \ 77 $(PHOTREG)/match.$(ARCH).o \ 75 $(PHOTREG)/delete.$(ARCH).o \ 76 $(PHOTREG)/match.$(ARCH).o \ 78 77 $(PHOTREG)/define.$(ARCH).o \ 79 $(PHOTREG)/getImageData.$(ARCH).o \ 80 $(PHOTREG)/output.$(ARCH).o 78 $(PHOTREG)/convert.$(ARCH).o \ 79 $(PHOTREG)/output.$(ARCH).o \ 80 $(PHOTREG)/getImageData.$(ARCH).o 81 81 82 82 DETOBJ = \ -
trunk/Ohana/src/imregister/include/photreg.h
r3466 r3536 27 27 int args (int argc, char **argv); 28 28 int regargs (int argc, char **argv, PhotPars *); 29 PhotPars *get_images (int *N); 30 int set_images (PhotPars *new, int Nnew); 31 int load_db (); 32 void init_db (); 33 int save_db (); 34 int update_db (int *match, int Nmatch); 35 int append_db (PhotPars *new, int Nnew); 36 int create_db (); 37 int close_db (); 38 void DeleteSubset (int *match, int Nmatch); 39 int *match_criteria (int *Nmatch); 40 int *match_images (PhotPars *subset, int Nsubset, int *Nmatch); 41 void ModifySubset (int *match, int Nmatch); 42 void OutputSubset (int *match, int Nmatch); 29 30 void DeleteSubset (FITS_DB *db, PhotPars *photpars, int Nphotpars, int *match, int Nmatch); 31 int *match_criteria (PhotPars *photpars, int Nphotpars, int *Nmatch); 32 33 void OutputSubset (PhotPars *photpars, int Nphotpars, int *match, int Nmatch); 34 43 35 void DumpFitsBintable (char *filename, PhotPars *image, int *match, int Nmatch); 44 36 void DumpFitsTable (char *filename, PhotPars *image, int *match, int Nmatch); 45 37 int PrintSubset (PhotPars *image, int *match, int Nmatch); 46 int define_table (Header *header, Matrix *matrix, Header *theader, FTable *table); 38 47 39 void set_timezone (double dt); 48 void DumpCADCTable (char *filename, PhotPars *image, int *match, int Nmatch);49 40 void getImageData (char *Image, char *ImageCCD, char *ImageMode); 50 void set_Binary_name (char *name);51 void set_ASCII_name (char *string);52 int load_old_db ();53 41 int escape (int mode, char *message); 42 43 PhotPars *PhotParsOld_to_PhotPars (PhotParsOld *input, int Nphotpars); 44 -
trunk/Ohana/src/imregister/photreg/args.photreg.c
r2803 r3536 7 7 8 8 int *list, Nlist; 9 int N, required,Ntimes;9 int N, Ntimes; 10 10 unsigned long *tstart, *tstop; 11 11 PhotCode *photcode, *depcode; … … 15 15 photcode = NULL; 16 16 output.modify = TRUE; 17 required = 0x0;18 17 bzero (newdata, sizeof(PhotPars)); 19 18 … … 67 66 newdata[0].tstart = tstart[0]; 68 67 newdata[0].tstop = tstop[0]; 69 required |= 0x03; 68 69 if (!get_argument (argc, argv, "-zp")) goto required; 70 if (!get_argument (argc, argv, "-dzp")) goto required; 71 if (!get_argument (argc, argv, "-photcode")) goto required; 70 72 71 73 /* observed zero point */ … … 74 76 newdata[0].ZP = atof (argv[N]); 75 77 remove_argument (N, &argc, argv); 76 required |= 0x04; 77 } 78 } 78 79 79 80 /* error on observed zero point */ … … 82 83 newdata[0].dZP = atof (argv[N]); 83 84 remove_argument (N, &argc, argv); 84 required |= 0x08;85 85 } 86 86 … … 93 93 } 94 94 remove_argument (N, &argc, argv); 95 required |= 0x10;96 }97 98 if (required ^ 0x1f) {99 fprintf (stderr, "missing required field\n");100 usage ();101 95 } 102 96 … … 121 115 if (output.offset) newdata[0].ZP += newdata[0].ZPo; 122 116 return (TRUE); 117 118 required: 119 fprintf (stderr, "missing required fields\n"); 120 usage (); 123 121 } 124 122 -
trunk/Ohana/src/imregister/photreg/args.photsearch.c
r2803 r3536 84 84 output.convert = TRUE; 85 85 if (output.delete || output.modify) { 86 fprintf (stderr, "can't change dold format table\n");86 fprintf (stderr, "can't change old format table\n"); 87 87 exit (1); 88 88 } -
trunk/Ohana/src/imregister/photreg/delete.c
r2823 r3536 2 2 # include "photreg.h" 3 3 4 void DeleteSubset ( int *match, int Nmatch) {4 void DeleteSubset (FITS_DB *db, PhotPars *photdata, int Nphotdata, int *match, int Nmatch) { 5 5 6 6 int i, j; 7 int *keep, Ndel, Nphotdata, Nsubset; 8 PhotPars *photdata, *subset; 9 10 photdata = get_images (&Nphotdata); 7 int *keep, Ndel, Nsubset; 8 PhotPars *subset; 11 9 12 10 ALLOCATE (keep, int, MAX (Nphotdata, 1)); … … 25 23 if (Ndel == 0) { 26 24 fprintf (stderr, "SUCCESS\n"); 27 close_db (); 25 fits_db_close (db); 26 fits_db_free (db); 28 27 exit (0); 29 28 } … … 39 38 } 40 39 41 free (keep); 42 free (photdata); 43 set_images (subset, Nsubset); 40 fits_table_set_PhotPars (&db[0].ftable, subset, Nsubset); 41 fits_db_save (db); 42 fits_db_close (db); 43 fits_db_free (db); 44 44 45 save_db ();46 45 fprintf (stderr, "SUCCESS\n"); 47 46 exit (0); 48 49 47 } -
trunk/Ohana/src/imregister/photreg/match.c
r126 r3536 2 2 # include "photreg.h" 3 3 4 int *match_criteria ( int *Nmatch) {4 int *match_criteria (PhotPars *photdata, int Nphotdata, int *Nmatch) { 5 5 6 int i, j , Nphotdata;6 int i, j; 7 7 int N, NMATCH; 8 8 int *match; 9 9 int reject; 10 PhotPars *photdata;11 10 12 11 /* create selection index */ … … 14 13 NMATCH = 1000; 15 14 ALLOCATE (match, int, NMATCH); 16 17 photdata = get_images (&Nphotdata);18 15 19 16 /* find entries that matches criteria */ -
trunk/Ohana/src/imregister/photreg/output.c
r2803 r3536 6 6 static char *ASCIIName = (char *) NULL; 7 7 8 void set_ASCII_name (char *string) {9 ASCIIName = string;10 }11 12 8 /* given a subset list, write out the selected images, if desired */ 13 void OutputSubset (int *match, int Nmatch) { 14 15 int Nphotdata; 16 PhotPars *photdata; 17 18 photdata = get_images (&Nphotdata); 9 void OutputSubset (PhotPars *photdata, int Nphotdata, int *match, int Nmatch) { 19 10 20 11 if (output.table != (char *) NULL) { … … 36 27 37 28 int i, j; 38 Header header, theader; 29 FILE *f; 30 Header header; 39 31 Matrix matrix; 40 FTable table; 32 Header theader; 33 FTable ftable; 41 34 PhotPars *subset; 42 35 43 /* define table layout */ 44 define_table (&header, &matrix, &theader, &table); 45 36 /* extract subset of input data */ 46 37 ALLOCATE (subset, PhotPars, MAX (1, Nmatch)); 47 38 for (i = 0; i < Nmatch; i++){ … … 49 40 memcpy (&subset[i], &photdata[j], sizeof (PhotPars)); 50 41 } 51 ConvertStruct ((char *) subset, sizeof (PhotPars), Nmatch, "photpars"); 52 fits_add_rows (&table, (char *) subset, Nmatch, sizeof (PhotPars)); 42 43 /* open file for output */ 44 f = fopen (filename, "w"); 45 if (f == NULL) { 46 fprintf (stderr, "ERROR: can't open output file %s\n", filename); 47 exit (1); 48 } 49 50 /* create primary header */ 51 fits_init_header (&header); 52 header.extend = TRUE; 53 fits_create_header (&header); 54 fits_create_matrix (&header, &matrix); 55 fits_print (&header, "NEXTEND", "%d", 1, 1); 56 57 ftable.header = &theader; 58 fits_table_set_PhotPars (&ftable, subset, Nmatch); 59 60 /* EXTNAME is set to ZERO_POINTS_3.0 by default */ 61 if (!strcmp (output.db, "trans")) { 62 fits_modify (&theader, "EXTNAME", "%s", 1, "TRANS_POINTS_3.0"); 63 } 53 64 54 65 fits_write_header (filename, &header); 55 66 fits_write_matrix (filename, &matrix); 56 67 fits_write_Theader (filename, &theader); 57 fits_write_table (filename, &table); 68 fits_write_table (filename, &ftable); 69 fclose (f); 58 70 exit (0); 59 71 } 60 72 73 /** add ASCII table to autocode? **/ 61 74 void DumpFitsTable (char *filename, PhotPars *photdata, int *index, int Nkeep) { 62 75 … … 67 80 FILE *f; 68 81 char *startstr, *stopstr, *datestr, *line; 69 char *c1, *c2, *code, *photsys ;82 char *c1, *c2, *code, *photsys, *extname; 70 83 int i; 71 84 unsigned int tsecond; … … 79 92 80 93 /* create table header */ 81 fits_create_table_header (&theader, "TABLE", ASCIIName); 94 if (!strcmp (output.db, "phot")) { 95 extname = strcreate ("IMAGE_ZPTS"); 96 } else { 97 extname = strcreate ("SUMMARY_ZPTS"); 98 } 99 fits_create_table_header (&theader, "TABLE", extname); 82 100 83 101 /* add current date/time to header */ … … 155 173 newdata[0].K, newdata[0].X, startstr, stopstr, 156 174 c1, c2, newdata[0].Nmeas, newdata[0].Ntime, code, photsys, newdata[0].label); 157 if (!fits_add_rows (&table, line, 1, strlen(line))) escape (IGNORE, "error writing dataline"); 175 if (!fits_add_rows (&table, line, 1, strlen(line))) { 176 fprintf (stderr, "error writing dataline"); 177 exit (1); 178 } 158 179 159 180 free (line); -
trunk/Ohana/src/imregister/spreg/output.c
r3509 r3536 68 68 fits_fwrite_table (f, &ftable); 69 69 fclose (f); 70 71 70 exit (0); 72 71 } -
trunk/Ohana/src/imregister/src/photreg.c
r2823 r3536 1 1 # include "imregister.h" 2 2 # include "photreg.h" 3 static char *version = "photreg $Revision: 1. 3$";3 static char *version = "photreg $Revision: 1.4 $"; 4 4 5 5 int main (int argc, char **argv) { 6 6 7 int status; 8 PhotPars newdata; 7 char *filename; 8 PhotPars newdata, *photdata; 9 VTable vtable; 10 FITS_DB db; 9 11 10 /* data values are set in args by matching flags */11 12 get_version (argc, argv, version); 12 13 regargs (argc, argv, &newdata); 13 14 14 init_db (); 15 status = load_db (); 16 if (!status) { 17 create_db (); 15 db.lockstate = LCK_HARD; 16 db.timeout = 300.0; 17 fits_db_init (&db); 18 19 if (!strcmp (output.db, "phot")) { 20 filename = PhotDB; 21 } else { 22 filename = TransDB; 18 23 } 19 append_db (&newdata, 1); 24 25 if (!fits_db_lock (&db, filename)) { 26 fits_db_close (&db); 27 exit (1); 28 } 29 if (db.dbstate == LCK_EMPTY) { 30 fits_init_header (&db.header); 31 db.header.extend = TRUE; 32 fits_create_header (&db.header); 33 fits_create_matrix (&db.header, &db.matrix); 34 fits_print (&db.header, "NEXTEND", "%d", 1, 1); 35 db.ftable.header = &db.theader; 36 fits_table_set_PhotPars (&db.ftable, NULL, 0); 37 /* EXTNAME is set to ZERO_POINTS_3.0 by default */ 38 if (!strcmp (output.db, "trans")) { 39 fits_modify (&db.theader, "EXTNAME", "%s", 1, "TRANS_POINTS_3.0"); 40 } 41 } else { 42 if (!fits_db_load (&db)) { 43 fits_db_close (&db); 44 exit (1); 45 } 46 } 47 48 /** we may later want to pull this out and put it elsewhere **/ 49 fits_convert_PhotPars (&newdata, sizeof (PhotPars), 1); 50 fits_table_to_vtable (&db.ftable, &vtable, 0, 1); 51 fits_db_update (&db, &vtable); 52 fits_db_close (&db); 53 fits_db_free (&db); 20 54 21 55 fprintf (stderr, "SUCCESS\n"); 22 56 exit (0); 57 } 23 58 24 } 59 /* data values are set in args by matching flags */ 60 61 /*** stick the header, table, theader, ftable creation in a single API? ***/ -
trunk/Ohana/src/imregister/src/photsearch.c
r2823 r3536 1 1 # include "imregister.h" 2 2 # include "photreg.h" 3 static char *version = "photsearch $Revision: 1. 3$";3 static char *version = "photsearch $Revision: 1.4 $"; 4 4 5 5 int main (int argc, char **argv) { 6 6 7 int status, Nmatch; 7 char *filename; 8 int status, Nmatch, Nphotpars; 8 9 int *match; 10 FITS_DB db; 11 PhotPars *photpars; 12 PhotParsOld *photpars_old; 9 13 10 /* db selection is set in args, based on -trans */11 14 get_version (argc, argv, version); 12 15 args (argc, argv); 13 16 14 init_db (); 15 status = load_db (); 16 if (!status) { 17 close_db (); 18 exit (0); 17 db.lockstate = (output.modify || output.delete) ? LCK_HARD : LCK_SOFT; 18 db.timeout = 300.0; 19 fits_db_init (&db); 20 21 if (!strcmp (output.db, "phot")) { 22 filename = PhotDB; 23 } else { 24 filename = TransDB; 19 25 } 20 if (!output.modify && !output.delete) close_db ();21 26 22 match = match_criteria (&Nmatch); 27 if (!fits_db_lock (&db, filename)) { 28 fits_db_close (&db); 29 exit (1); 30 } 31 32 if (!fits_db_load (&db)) { 33 fits_db_close (&db); 34 exit (1); 35 } 23 36 24 if ( output.delete) DeleteSubset (match, Nmatch);37 if (!output.modify && !output.delete) fits_db_close (&db); 25 38 26 OutputSubset (match, Nmatch); 39 /* add test to EXTNAME? */ 40 if (output.convert) { 41 photpars_old = fits_table_get_PhotParsOld (&db.ftable, &Nphotpars); 42 photpars = PhotParsOld_to_PhotPars (photpars_old, Nphotpars); 43 } else { 44 photpars = fits_table_get_PhotPars (&db.ftable, &Nphotpars); 45 } 46 47 match = match_criteria (photpars, Nphotpars, &Nmatch); 48 49 if (output.delete) DeleteSubset (&db, photpars, Nphotpars, match, Nmatch); 50 51 OutputSubset (photpars, Nphotpars, match, Nmatch); 27 52 exit (0); 28 53 } 54 55 /* db selection is set in args, based on -trans */ 56 57 /* valid EXTNAME values: 58 59 phot, !output.convert, bintable: "ZERO_POINTS_3.0" 60 phot, !output.convert, table: "IMAGE_ZPTS" 61 62 trans, !output.convert, bintable: "TRANS_POINTS_3.0" 63 trans, !output.convert, table: "SUMMARY_ZPTS" 64 65 phot, !output.convert, bintable: "ZERO_POINTS" 66 phot, !output.convert, table: "IMAGE_ZPTS" 67 68 trans, !output.convert, bintable: "TRANS_POINTS" 69 trans, !output.convert, table: "SUMMARY_ZPTS" 70 71 */ -
trunk/Ohana/src/imregister/src/spregister.c
r3509 r3536 1 1 # include "imregister.h" 2 2 # include "spreg.h" 3 static char *version = "spregister $Revision: 1. 4$";3 static char *version = "spregister $Revision: 1.5 $"; 4 4 5 5 int main (int argc, char **argv) { … … 28 28 } 29 29 if (db.dbstate == LCK_EMPTY) { 30 /* create db header & matrix */ 30 fits_init_header (&db.header); 31 db.header.extend = TRUE; 32 fits_create_header (&db.header); 33 fits_create_matrix (&db.header, &db.matrix); 34 fits_print (&db.header, "NEXTEND", "%d", 1, 1); 35 db.ftable.header = &db.theader; 36 fits_table_set_Spectrum (&db.ftable, NULL, 0); 31 37 } else { 32 38 if (!fits_db_load (&db)) { -
trunk/Ohana/src/imregister/src/spsearch.c
r3509 r3536 1 1 # include "imregister.h" 2 2 # include "spreg.h" 3 static char *version = "spsearch $Revision: 1. 3$";3 static char *version = "spsearch $Revision: 1.4 $"; 4 4 5 5 int main (int argc, char **argv) { … … 14 14 db.lockstate = (output.modify || output.delete) ? LCK_HARD : LCK_SOFT; 15 15 db.timeout = 300.0; 16 17 16 fits_db_init (&db); 18 17 -
trunk/Ohana/src/libautocode/Makefile
r3519 r3536 27 27 @echo done autocode 28 28 29 # remember to add entries here to libohana/Makefile:AOBJ as well 29 30 LIBOBJ = \ 31 $(SRC)/photreg.$(ARCH).o \ 32 $(SRC)/photreg-old.$(ARCH).o \ 30 33 $(SRC)/smpdata.$(ARCH).o \ 31 34 $(SRC)/spectrum.$(ARCH).o \ … … 33 36 34 37 LIBINC = \ 38 $(INC)/photreg.h \ 39 $(INC)/photreg-old.h \ 35 40 $(INC)/smpdata.h \ 36 41 $(INC)/spectrum.h \ -
trunk/Ohana/src/libautocode/def/common.h
r3517 r3536 31 31 # endif 32 32 33 # define e_time unsigned int 34 35 /*** this file uses data types which must have fixed sizes regardless 36 of the platform. It originally used the basic C primitives: 37 float, double, int, short int, unsigned long int, etc. 38 this breaks under 64 bit (and probably on other systems). 39 I should define internal data types which should be set by the 40 use of # define statements if needed. I will cheat for now and use 41 the time_t to replace unsigned long int in this file 42 ***/ 43 -
trunk/Ohana/src/libautocode/def/spectrum.d
r3515 r3536 1 # name of structure type2 1 STRUCT Spectrum 3 2 EXTNAME SPECTRUM_DATABASE -
trunk/Ohana/src/libautocode/generate
r3515 r3536 103 103 if ($type eq "short") { $pt1 = "I"; } 104 104 if ($type eq "int") { $pt1 = "J"; } 105 if ($type eq "e_time") { $pt1 = "J"; } 105 106 if ($type eq "float") { $pt1 = "E"; } 106 107 if ($type eq "double") { $pt1 = "D"; } … … 125 126 if ($type eq "short") { $pt1 = sprintf "I%s", $length; } 126 127 if ($type eq "int") { $pt1 = sprintf "I%s", $length; } 128 if ($type eq "e_time") { $pt1 = sprintf "I%s", $length; } 127 129 if ($type eq "float") { $pt1 = sprintf "F%s", $length; } 128 130 if ($type eq "double") { $pt1 = sprintf "F%s", $length; } … … 181 183 $n = 2; 182 184 } 183 if ($type eq " float"){185 if ($type eq "int") { 184 186 $T = "WORD"; 185 187 $n = 4; 186 188 } 187 if ($type eq "int") { 189 if ($type eq "e_time") { 190 $T = "WORD"; 191 $n = 4; 192 } 193 if ($type eq "float") { 188 194 $T = "WORD"; 189 195 $n = 4; … … 217 223 } 218 224 } 225 if ($type eq "byte") { $Nbytes += 1; } 226 if ($type eq "short") { $Nbytes += 2; } 227 if ($type eq "int") { $Nbytes += 4; } 228 if ($type eq "e_time") { $Nbytes += 4; } 229 if ($type eq "float") { $Nbytes += 4; } 219 230 if ($type eq "double") { $Nbytes += 8; } 220 if ($type eq "int") { $Nbytes += 4; }221 if ($type eq "short") { $Nbytes += 2; }222 if ($type eq "float") { $Nbytes += 4; }223 231 } 224 232 return ($Nbytes); -
trunk/Ohana/src/libohana/Makefile
r3522 r3536 48 48 49 49 AOBJ = \ 50 $(ASRC)/photreg.$(ARCH).o \ 51 $(ASRC)/photreg-old.$(ARCH).o \ 50 52 $(ASRC)/smpdata.$(ARCH).o \ 51 53 $(ASRC)/spectrum.$(ARCH).o \ … … 78 80 rm -f */*.o 79 81 rm -f */*.a 80 #cd $(AUTO) && make clean82 cd $(AUTO) && make clean 81 83 82 84 dist: clean -
trunk/Ohana/src/libohana/include/dvo.h
r3517 r3536 6 6 # define LONEOS 0 7 7 # define PANSTARRS 0 8 9 /*** this file uses data types which must have fixed sizes regardless10 of the platform. It originally used the basic C primitives:11 float, double, int, short int, unsigned long int, etc.12 this breaks under 64 bit (and probably on other systems).13 I should define internal data types which should be set by the14 use of # define statements if needed. I will cheat for now and use15 the time_t to replace unsigned long int in this file16 ***/17 18 # define e_time unsigned int19 8 20 9 /* image data modes in RegImage */ … … 132 121 void coords_precess (double *ra, double *dec, double in_epoch, double out_epoch); 133 122 123 # include <autocode.h> 124 134 125 # if (LONEOS) 135 126 # include <loneos.h> … … 144 135 # endif 145 136 146 # include <autocode.h>147 148 137 /* these functions refer to the DVO structures define in the includes above */ 149 138 int Fread (void *ptr, int size, int nitems, FILE *f, char *type); -
trunk/Ohana/src/libohana/include/elixir.h
r3508 r3536 61 61 char filename[256]; 62 62 } DetReg; /* 416 bytes */ 63 64 /* Instant Zeropoint structure */65 typedef struct {66 float ZP; /* measured zero point */67 float ZPo; /* expected zero point */68 float dZP; /* error on zero point */69 float K; /* airmass term used */70 float X; /* color term used */71 e_time tstart; /* start time of observation */72 e_time tstop; /* end time of observation */73 short int c1; /* photcode for color term */74 short int c2; /* photcode for color term */75 short int photcode; /* appropriate photcode */76 char label[64];77 short int refcode; /* reference photometry system */78 int Ntime; /* number of measurement times */79 int Nmeas; /* number of data points */80 } PhotPars; /* 108 bytes */81 63 82 64 /* average data as stored in the LONEOS database */ -
trunk/Ohana/src/libohana/include/loneos.h
r3508 r3536 51 51 char filename[256]; 52 52 } DetReg; /* 416 bytes */ 53 54 /* Instant Zeropoint structure */55 typedef struct {56 float ZP; /* measured zero point */57 float ZPo; /* expected zero point */58 float dZP; /* error on zero point */59 float K; /* airmass term used */60 float X; /* color term used */61 e_time tstart; /* start time of observation */62 e_time tstop; /* end time of observation */63 short int c1; /* photcode for color term */64 short int c2; /* photcode for color term */65 short int photcode; /* appropriate photcode */66 char label[64];67 short int refcode; /* reference photometry system */68 int Ntime; /* number of measurement times */69 int Nmeas; /* number of data points */70 } PhotPars; /* 108 bytes */71 53 72 54 /* average data as stored in the LONEOS database -- must be translated on load */ -
trunk/Ohana/src/libohana/include/panstarrs.h
r3508 r3536 51 51 char filename[256]; 52 52 } DetReg; /* 416 bytes */ 53 54 /* Instant Zeropoint structure */55 typedef struct {56 float ZP; /* measured zero point */57 float ZPo; /* expected zero point */58 float dZP; /* error on zero point */59 float K; /* airmass term used */60 float X; /* color term used */61 e_time tstart; /* start time of observation */62 e_time tstop; /* end time of observation */63 short int c1; /* photcode for color term */64 short int c2; /* photcode for color term */65 short int photcode; /* appropriate photcode */66 char label[64];67 short int refcode; /* reference photometry system */68 int Ntime; /* number of measurement times */69 int Nmeas; /* number of data points */70 } PhotPars; /* 108 bytes */71 53 72 54 /* average data as stored in the LONEOS database */
Note:
See TracChangeset
for help on using the changeset viewer.
