Changeset 34138
- Timestamp:
- Jul 11, 2012, 6:58:05 AM (14 years ago)
- Location:
- branches/eam_branches/ipp-20120627/Ohana/src
- Files:
-
- 1 added
- 9 edited
-
libautocode/def/measure-ps1-v3.d (modified) (3 diffs)
-
libautocode/def/measure.d (modified) (3 diffs)
-
libdvo/Makefile (modified) (2 diffs)
-
libdvo/doc/notes.txt (modified) (2 diffs)
-
libdvo/include/dvo.h (modified) (1 diff)
-
libdvo/include/ps1_v4_defs.h (added)
-
libdvo/src/LoadPhotcodesFITS.c (modified) (1 diff)
-
libdvo/src/SavePhotcodesFITS.c (modified) (2 diffs)
-
libdvo/src/dvo_image.c (modified) (1 diff)
-
libdvo/src/dvo_image_raw.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120627/Ohana/src/libautocode/def/measure-ps1-v3.d
r33647 r34138 5 5 DESCRIPTION DVO Detection Measurement Table 6 6 7 FIELD dR, D_RA, float, RA offset, arcsec8 FIELD dD, D_DEC, float, DEC offset, arcsec9 FIELD M, MAG, float, catalog mag, mag10 FIELD Mcal, M_CAL, float, image cal mag, mag11 FIELD Map, M_APER, float, aperture mag, mag7 FIELD dR, D_RA, float, RA offset, arcsec 8 FIELD dD, D_DEC, float, DEC offset, arcsec 9 FIELD M, MAG, float, catalog mag, mag 10 FIELD Mcal, M_CAL, float, image cal mag, mag 11 FIELD Map, M_APER, float, aperture mag, mag 12 12 FIELD dM, MAG_ERR, float, mag error, mag 13 13 FIELD dMcal, MAG_CAL_ERR, float, systematic calibration error, mag … … 15 15 16 16 # note that with airmass = 1.0 / cos(90 - alt), we have full alt/az representation 17 FIELD airmass, AIRMASS, float, (airmass - 1), airmass17 FIELD airmass, AIRMASS, float, (airmass - 1), airmass 18 18 FIELD az, AZ, float, telescope azimuth 19 19 … … 26 26 FIELD dSky, SKY_FLUX_ERR, float, local estimate of sky flux, counts/sec 27 27 28 FIELD t, TIME, int, time in seconds (UNIX)28 FIELD t, TIME, int, time in seconds (UNIX) 29 29 FIELD averef, AVE_REF, unsigned int, reference to average entry 30 30 -
branches/eam_branches/ipp-20120627/Ohana/src/libautocode/def/measure.d
r34131 r34138 2 2 EXTNAME DVO_MEASURE 3 3 TYPE BINTABLE 4 SIZE 1 604 SIZE 156 5 5 DESCRIPTION DVO Detection Measurement Table 6 6 7 FIELD dR, D_RA, float, RA offset, arcsec8 FIELD dD, D_DEC, float, DEC offset, arcsec9 FIELD M, MAG, float, catalog mag, mag10 FIELD Mcal, M_CAL, float, image cal mag, mag11 FIELD Map, M_APER, float, aperture mag, mag12 FIELD Mkron, M_KRON, float, kron magnitude,mag13 FIELD dMkron, M_KRON_ERR, float, kron magnitude error,mag7 FIELD dR, D_RA, float, RA offset, arcsec 8 FIELD dD, D_DEC, float, DEC offset, arcsec 9 FIELD M, MAG, float, catalog mag, mag 10 FIELD Mcal, M_CAL, float, image cal mag, mag 11 FIELD Map, M_APER, float, aperture mag, mag 12 FIELD Mkron, M_KRON, float, kron magnitude, mag 13 FIELD dMkron, M_KRON_ERR, float, kron magnitude error, mag 14 14 FIELD dM, MAG_ERR, float, mag error, mag 15 15 FIELD dMcal, MAG_CAL_ERR, float, systematic calibration error, mag … … 17 17 18 18 # note that with airmass = 1.0 / cos(90 - alt), we have full alt/az representation 19 FIELD airmass, AIRMASS, float, (airmass - 1), airmass19 FIELD airmass, AIRMASS, float, (airmass - 1), airmass 20 20 FIELD az, AZ, float, telescope azimuth 21 21 … … 28 28 FIELD dSky, SKY_FLUX_ERR, float, local estimate of sky flux, counts/sec 29 29 30 FIELD t, TIME, int, time in seconds (UNIX)30 FIELD t, TIME, int, time in seconds (UNIX) 31 31 FIELD t_msec, TIME_MSEC, unsigned short, time fraction of second, milliseconds 32 32 FIELD averef, AVE_REF, unsigned int, reference to average entry -
branches/eam_branches/ipp-20120627/Ohana/src/libdvo/Makefile
r33649 r34138 35 35 $(DESTINC)/ps1_v2_defs.h \ 36 36 $(DESTINC)/ps1_v3_defs.h \ 37 $(DESTINC)/ps1_v4_defs.h \ 37 38 $(DESTINC)/ps1_ref_defs.h 38 39 … … 73 74 $(SRC)/dvo_convert_PS1_V2.$(ARCH).o \ 74 75 $(SRC)/dvo_convert_PS1_V3.$(ARCH).o \ 76 $(SRC)/dvo_convert_PS1_V4.$(ARCH).o \ 75 77 $(SRC)/dvo_convert_PS1_REF.$(ARCH).o \ 76 78 $(SRC)/flatcorr_io.$(ARCH).o \ -
branches/eam_branches/ipp-20120627/Ohana/src/libdvo/doc/notes.txt
r21508 r34138 25 25 include the new STRUCT name. 26 26 27 7) create a new conversion file dvo_convert_foo.c and define the27 7) create a new conversion file libdvo/src/dvo_convert_foo.c and define the 28 28 internal to Foo conversions. 29 29 30 8) add the new format to the list of FORMAT conversion in dvo_convert.c. 30 8a) add the new dvo_convert_foo.c to libdvo/Makefile 31 32 8b) add the new format to the list of FORMAT conversion in dvo_convert.c. 31 33 32 34 9) any changes to the internal format need to be reflected in the … … 44 46 45 47 13) Add the conversion functions to the header file libdvo/include/foo_defs.h 48 49 14) Add the above foo_defs.h to libdvo/include/dvo.h 50 51 14) Add the above foo_defs.h to libdvo/Makefile 46 52 47 53 * Note some esoteric format issues: -
branches/eam_branches/ipp-20120627/Ohana/src/libdvo/include/dvo.h
r34130 r34138 572 572 # include "ps1_v2_defs.h" 573 573 # include "ps1_v3_defs.h" 574 # include "ps1_v4_defs.h" 574 575 # include "ps1_ref_defs.h" 575 576 -
branches/eam_branches/ipp-20120627/Ohana/src/libdvo/src/LoadPhotcodesFITS.c
r33649 r34138 63 63 CONVERT_FORMAT("DVO_PHOTCODE_PS1_V2", PS1_V2); 64 64 CONVERT_FORMAT("DVO_PHOTCODE_PS1_V3", PS1_V3); 65 CONVERT_FORMAT("DVO_PHOTCODE_PS1_V4", PS1_V4); 65 66 66 67 table = GetPhotcodeTable (); -
branches/eam_branches/ipp-20120627/Ohana/src/libdvo/src/SavePhotcodesFITS.c
r33649 r34138 4 4 /* locking is used to avoid collisions with programs trying to update the photcodes values */ 5 5 /* XXX better distinction between NOT FOUND and FAILURE */ 6 6 7 int SavePhotcodesFITS (char *filename) { 7 8 … … 29 30 // for the moment, we simply support the latest photcode format for output 30 31 // XXX update this as needed as new formats are defined 31 PhotCode_PS1_V 3 *photcode_output = PhotCode_Internal_To_PS1_V3(table[0].code, table[0].Ncode);32 PhotCode_PS1_V4 *photcode_output = PhotCode_Internal_To_PS1_V4 (table[0].code, table[0].Ncode); 32 33 33 34 /* convert FITS format data to internal format (byteswaps & EXTNAME) */ 34 35 if (!gfits_db_create (&db)) return (FALSE); 35 if (!gfits_table_set_PhotCode_PS1_V 3(&db.ftable, photcode_output, table[0].Ncode)) return (FALSE);36 if (!gfits_table_set_PhotCode_PS1_V4 (&db.ftable, photcode_output, table[0].Ncode)) return (FALSE); 36 37 if (!gfits_db_save (&db)) return (FALSE); 37 38 if (!gfits_db_close (&db)) return (FALSE); -
branches/eam_branches/ipp-20120627/Ohana/src/libdvo/src/dvo_image.c
r34088 r34138 212 212 if (db[0].format == DVO_FORMAT_PS1_V2) gfits_modify (&db[0].header, "FORMAT", "%s", 1, "PS1_V2"); 213 213 if (db[0].format == DVO_FORMAT_PS1_V3) gfits_modify (&db[0].header, "FORMAT", "%s", 1, "PS1_V3"); 214 if (db[0].format == DVO_FORMAT_PS1_V4) gfits_modify (&db[0].header, "FORMAT", "%s", 1, "PS1_V4"); 214 215 if (db[0].format == DVO_FORMAT_PS1_REF) gfits_modify (&db[0].header, "FORMAT", "%s", 1, "PS1_REF"); 215 216 -
branches/eam_branches/ipp-20120627/Ohana/src/libdvo/src/dvo_image_raw.c
r33649 r34138 58 58 if (db[0].format == DVO_FORMAT_PS1_V2) ImageSize = sizeof(Image_PS1_V2); 59 59 if (db[0].format == DVO_FORMAT_PS1_V3) ImageSize = sizeof(Image_PS1_V3); 60 if (db[0].format == DVO_FORMAT_PS1_V4) ImageSize = sizeof(Image_PS1_V4); 60 61 if (db[0].format == DVO_FORMAT_PS1_REF) ImageSize = sizeof(Image_PS1_REF); 61 62 … … 87 88 if (db[0].format == DVO_FORMAT_PS1_V2) gfits_table_mkheader_Image_PS1_V2 (&db[0].theader); 88 89 if (db[0].format == DVO_FORMAT_PS1_V3) gfits_table_mkheader_Image_PS1_V3 (&db[0].theader); 90 if (db[0].format == DVO_FORMAT_PS1_V4) gfits_table_mkheader_Image_PS1_V4 (&db[0].theader); 89 91 if (db[0].format == DVO_FORMAT_PS1_REF) gfits_table_mkheader_Image_PS1_REF (&db[0].theader); 90 92
Note:
See TracChangeset
for help on using the changeset viewer.
