Changeset 16699
- Timestamp:
- Feb 27, 2008, 5:16:19 PM (18 years ago)
- Location:
- branches/eam_branch_20080223/Ohana/src
- Files:
-
- 2 added
- 2 deleted
- 31 edited
-
libautocode/Makefile.Targets (modified) (8 diffs)
-
libautocode/def/AddstarClientOptions.d (modified) (1 diff)
-
libautocode/def/Stars.d (modified) (3 diffs)
-
libautocode/def/average-panstarrs-dev-0.d (modified) (1 diff)
-
libautocode/def/average-panstarrs-dev-1.d (modified) (1 diff)
-
libautocode/def/average-ps1-dev-1.d (modified) (1 diff)
-
libautocode/def/average-ps1-dev-2.d (modified) (2 diffs)
-
libautocode/def/average.d (modified) (1 diff)
-
libautocode/def/image-ps1-dev-2.d (modified) (3 diffs)
-
libautocode/def/image.d (modified) (2 diffs)
-
libautocode/def/measure-ps1-dev-1.d (modified) (1 diff)
-
libautocode/def/measure-ps1-dev-2.d (modified) (4 diffs)
-
libautocode/def/measure.d (modified) (4 diffs)
-
libautocode/def/photcode-ps1-dev-2.d (modified) (1 diff)
-
libautocode/def/ps1_dev_0.d (modified) (1 diff)
-
libautocode/def/ps1_dev_1.d (modified) (1 diff)
-
libautocode/def/secfilt-ps1-dev-2.d (modified) (1 diff)
-
libdvo/Makefile (modified) (3 diffs)
-
libdvo/include/dvo.h (modified) (3 diffs)
-
libdvo/include/ps1_dev_2_defs.h (added)
-
libdvo/src/LoadPhotcodesFITS.c (modified) (1 diff)
-
libdvo/src/SavePhotcodesFITS.c (modified) (1 diff)
-
libdvo/src/dvo_catalog.c (modified) (1 diff)
-
libdvo/src/dvo_catalog_raw.c (modified) (8 diffs)
-
libdvo/src/dvo_convert.c (modified) (9 diffs)
-
libdvo/src/dvo_convert_PS1_DEV_1.c (modified) (12 diffs)
-
libdvo/src/dvo_convert_PS1_DEV_2.c (added)
-
libdvo/src/dvo_convert_elixir.c (modified) (5 diffs)
-
libdvo/src/dvo_convert_loneos.c (modified) (2 diffs)
-
libdvo/src/dvo_convert_panstarrs_DEV_0.c (modified) (5 diffs)
-
libdvo/src/dvo_convert_panstarrs_DEV_1.c (modified) (5 diffs)
-
libdvo/src/dvo_image.c (modified) (1 diff)
-
libdvo/src/dvo_image_raw.c (modified) (2 diffs)
-
libdvo/src/dvo_photcode_convert_elixir.c (deleted)
-
libdvo/src/dvo_photcode_convert_ps1_dev_1.c (deleted)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080223/Ohana/src/libautocode/Makefile.Targets
r15694 r16699 8 8 $(ASRC)/average-panstarrs-dev-1.$(ARCH).o \ 9 9 $(ASRC)/average-ps1-dev-1.$(ARCH).o \ 10 $(ASRC)/average-ps1-dev-2.$(ARCH).o \ 10 11 $(ASRC)/secfilt.$(ARCH).o \ 11 12 $(ASRC)/secfilt-loneos.$(ARCH).o \ … … 14 15 $(ASRC)/secfilt-panstarrs-dev-1.$(ARCH).o \ 15 16 $(ASRC)/secfilt-ps1-dev-1.$(ARCH).o \ 17 $(ASRC)/secfilt-ps1-dev-2.$(ARCH).o \ 16 18 $(ASRC)/measure.$(ARCH).o \ 17 19 $(ASRC)/measure-loneos.$(ARCH).o \ … … 20 22 $(ASRC)/measure-panstarrs-dev-1.$(ARCH).o \ 21 23 $(ASRC)/measure-ps1-dev-1.$(ARCH).o \ 24 $(ASRC)/measure-ps1-dev-2.$(ARCH).o \ 22 25 $(ASRC)/missing.$(ARCH).o \ 23 26 $(ASRC)/photcode.$(ARCH).o \ 24 27 $(ASRC)/photcode-elixir.$(ARCH).o \ 25 28 $(ASRC)/photcode-ps1-dev-1.$(ARCH).o \ 29 $(ASRC)/photcode-ps1-dev-2.$(ARCH).o \ 26 30 $(ASRC)/image.$(ARCH).o \ 27 31 $(ASRC)/image-loneos.$(ARCH).o \ … … 30 34 $(ASRC)/image-panstarrs-dev-1.$(ARCH).o \ 31 35 $(ASRC)/image-ps1-dev-1.$(ARCH).o \ 36 $(ASRC)/image-ps1-dev-2.$(ARCH).o \ 32 37 $(ASRC)/regimage.$(ARCH).o \ 33 38 $(ASRC)/detreg.$(ARCH).o \ … … 55 60 $(AINC)/average-panstarrs-dev-1.h \ 56 61 $(AINC)/average-ps1-dev-1.h \ 62 $(AINC)/average-ps1-dev-2.h \ 57 63 $(AINC)/secfilt.h \ 58 64 $(AINC)/secfilt-loneos.h \ … … 61 67 $(AINC)/secfilt-panstarrs-dev-1.h \ 62 68 $(AINC)/secfilt-ps1-dev-1.h \ 69 $(AINC)/secfilt-ps1-dev-2.h \ 63 70 $(AINC)/measure.h \ 64 71 $(AINC)/measure-loneos.h \ … … 67 74 $(AINC)/measure-panstarrs-dev-1.h \ 68 75 $(AINC)/measure-ps1-dev-1.h \ 76 $(AINC)/measure-ps1-dev-2.h \ 69 77 $(AINC)/missing.h \ 70 78 $(AINC)/photcode.h \ 71 79 $(AINC)/photcode-elixir.h \ 72 80 $(AINC)/photcode-ps1-dev-1.h \ 81 $(AINC)/photcode-ps1-dev-2.h \ 73 82 $(AINC)/image.h \ 74 83 $(AINC)/image-loneos.h \ … … 77 86 $(AINC)/image-panstarrs-dev-1.h \ 78 87 $(AINC)/image-ps1-dev-1.h \ 88 $(AINC)/image-ps1-dev-2.h \ 79 89 $(AINC)/regimage.h \ 80 90 $(AINC)/detreg.h \ -
branches/eam_branch_20080223/Ohana/src/libautocode/def/AddstarClientOptions.d
r16652 r16699 2 2 EXTNAME OPTIONS 3 3 TYPE BINTABLE 4 SIZE 764 SIZE 80 5 5 6 6 FIELD Nsigma, NSIGMA, double, match radius in terms of astrometric error -
branches/eam_branch_20080223/Ohana/src/libautocode/def/Stars.d
r15038 r16699 2 2 EXTNAME STARS 3 3 TYPE BINTABLE 4 SIZE 24 44 SIZE 248 5 5 6 6 FIELD X, X, double, x coordinate on image, pixels … … 20 20 FIELD M, M, double, instrumental mag 21 21 FIELD dM, DM, double, error on mag 22 FIELD dMcal, DMCAL, double, systematic error on mag 22 23 FIELD sky, SKY, double, local sky counts 23 24 FIELD dsky, dSKY, double, local sky error counts … … 25 26 FIELD fy, FY, double, object FWHM y-dir, pixels? 26 27 FIELD df, DF, double, object position angle, degrees 27 FIELD Mgal, MGAL, double, alternative (galaxy) magnitude28 # FIELD Mgal, MGAL, double, alternative (galaxy) magnitude 28 29 FIELD Map, MAP, double, alternative (aperture) magnitude 29 30 FIELD Mpeak, MPEAK, double, alternative (peak) magnitude 30 31 FIELD detID, ID, int, detection identifier 32 FIELD imageID, IMAGE_ID, int, image identifier 31 33 FIELD found, FOUND, int, found in database catalog? 32 34 FIELD t, T, e_time, date/time of exposure (UNIX) 33 35 FIELD dt, EXPTIME, float, exposure time, 2.5*log(exptime) 34 FIELD psf Prob, PSF_PROB,float36 FIELD psfChisq, PSF_CHISQ, float 35 37 FIELD crNsigma, CR_NSIGMA, float 36 38 FIELD extNsigma, EXT_NSIGMA, float -
branches/eam_branch_20080223/Ohana/src/libautocode/def/average-panstarrs-dev-0.d
r15511 r16699 27 27 28 28 # Pan-STARRS uses a 64-bit detection ID. keep this in two 32 bit ints for backwards compatibility? 29 FIELD objID _hi, OBJ_ID_HI,unsigned int, ID upper bytes30 FIELD objID_lo, OBJ_ID_LO,unsigned int, ID lower bytes29 FIELD objID, OBJ_ID, unsigned int, ID upper bytes 30 FIELD catID, CAT_ID, unsigned int, ID lower bytes 31 31 32 32 # this structure should only be used for internal representations -
branches/eam_branch_20080223/Ohana/src/libautocode/def/average-panstarrs-dev-1.d
r15511 r16699 27 27 28 28 # Pan-STARRS uses a 64-bit detection ID. keep this in two 32 bit ints for backwards compatibility? 29 FIELD objID _hi, OBJ_ID_HI,unsigned int, ID upper bytes30 FIELD objID_lo, OBJ_ID_LO,unsigned int, ID lower bytes29 FIELD objID, OBJ_ID, unsigned int, ID upper bytes 30 FIELD catID, CAT_ID, unsigned int, ID lower bytes 31 31 32 32 # this structure should only be used for internal representations -
branches/eam_branch_20080223/Ohana/src/libautocode/def/average-ps1-dev-1.d
r15511 r16699 27 27 28 28 # Pan-STARRS uses a 64-bit detection ID. keep this in two 32 bit ints for backwards compatibility? 29 FIELD objID _hi, OBJ_ID_HI,unsigned int, ID upper bytes30 FIELD objID_lo, OBJ_ID_LO,unsigned int, ID lower bytes29 FIELD objID, OBJ_ID, unsigned int, ID upper bytes 30 FIELD catID, CAT_ID, unsigned int, ID lower bytes 31 31 32 32 # this structure should only be used for internal representations -
branches/eam_branch_20080223/Ohana/src/libautocode/def/average-ps1-dev-2.d
r16632 r16699 2 2 EXTNAME DVO_AVERAGE_PS1_DEV_2 3 3 TYPE BINTABLE 4 SIZE 724 SIZE 80 5 5 DESCRIPTION DVO Average Object Table 6 6 … … 19 19 FIELD dP, PAR_ERR, float, parallax error, arcsec 20 20 21 FIELD Xp, SIGMA_POS, short, position scatter, 1/100 arcsec22 FIELD N psf, NPSF, unsigned short,number of psf measurements23 FIELD N ext, NEXT, unsigned short, number of extended measurements24 FIELD N miss, NMISS, unsigned short, number of missings25 FIELD psfOffset, OFF_PSF, int, offset to firstmeasurement26 FIELD extOffset, OFF_EXT, int, offset to first measurement27 FIELD missOffset, OFF_MISS, int, offset to first missing obs21 FIELD Xp, SIGMA_POS, short, position scatter, 1/100 arcsec 22 FIELD Nmeasure, NMEASURE, unsigned short, number of psf measurements 23 FIELD Nmissing, NMISSING, unsigned short, number of missings 24 FIELD Nextend, NEXTEND, unsigned short, number of extended measurements 25 FIELD measureOffset, OFF_MEASURE, int, offset to first psf measurement 26 FIELD missingOffset, OFF_MISSING, int, offset to first missing obs 27 FIELD extendOffset, OFF_EXTEND, int, offset to first extended measurement 28 28 29 29 FIELD code, code, unsigned short, ID code (star; ghost; etc) 30 FIELD dummy, DUMMY, char[2], padding 30 31 31 # Pan-STARRS uses a 64-bit detection ID. keep this in two 32 bit ints for backwards compatibility? 32 FIELD objID_hi, OBJ_ID_HI, unsigned int, ID upper bytes 33 FIELD objID_lo, OBJ_ID_LO, unsigned int, ID lower bytes 32 # Pan-STARRS uses a 64-bit detection ID. keep this in two 32 bit ints 33 # for C89 compatibility. The objID is constructed based on the 34 # position of first instatiation. this is actually quite expensive 35 # because we need to include the uniqueness test to construct this, 36 # which requires a select for each new object. Therefore, I will use 37 # a table based ID (table ID + object ID), and we will have to 38 # re-number the object IDs if we change the table density, OR treat 39 # all subdivisions as entries which are from a foreign table. 40 41 FIELD objID, OBJ_ID, unsigned int, unique ID for object in table 42 FIELD catID, CAT_ID, unsigned int, unique ID for table in which object was first realized 34 43 35 44 # this structure should only be used for internal representations -
branches/eam_branch_20080223/Ohana/src/libautocode/def/average.d
r16634 r16699 39 39 # all subdivisions as entries which are from a foreign table. 40 40 41 FIELD objID _hi, OBJ_ID_HI, unsigned int, ID upper bytes42 FIELD objID_lo, OBJ_ID_LO, unsigned int, ID lower bytes41 FIELD objID, OBJ_ID, unsigned int, unique ID for object in table 42 FIELD catID, CAT_ID, unsigned int, unique ID for table in which object was first realized 43 43 44 44 # this structure should only be used for internal representations -
branches/eam_branch_20080223/Ohana/src/libautocode/def/image-ps1-dev-2.d
r16632 r16699 1 STRUCT Image_PS1_DEV_ 12 EXTNAME DVO_IMAGE_PS1_DEV_ 11 STRUCT Image_PS1_DEV_2 2 EXTNAME DVO_IMAGE_PS1_DEV_2 3 3 TYPE BINTABLE 4 SIZE 28 84 SIZE 280 5 5 DESCRIPTION DVO Image Table 6 6 … … 26 26 FIELD nstar, NSTAR, unsigned int, number of stars on image 27 27 FIELD secz, SECZ, float, airmass, mag 28 FIELD NX, NX, short,image width29 FIELD NY, NY, short,image height28 FIELD NX, NX, unsigned short, image width 29 FIELD NY, NY, unsigned short, image height 30 30 FIELD apmifit, APMIFIT, float, aperture correction, mag 31 31 FIELD dapmifit, DAPMIFIT, float, apmifit error, mag … … 48 48 FIELD code, CODE, char, image quality flag 49 49 FIELD ccdnum, CCDNUM, unsigned char, CCD ID number 50 FIELD imageID, IMAGE_ID, unsigned int, image ID 51 # 44 bytes 50 FIELD imageID, IMAGE_ID, unsigned int, internal image ID 51 FIELD externID, EXTERN_ID, unsigned int, external image ID 52 FIELD sourceID, SOURCE_ID, unsigned short, analysis source ID 53 # 48 bytes 52 54 53 FIELD dummy, DUMMY, char[14], unused54 55 FIELD order, ORDER, short, Mrel 2D polynomical order 55 56 FIELD Mx, MX, short, Mrel polyterm -
branches/eam_branch_20080223/Ohana/src/libautocode/def/image.d
r16634 r16699 2 2 EXTNAME DVO_IMAGE 3 3 TYPE BINTABLE 4 SIZE 28 84 SIZE 280 5 5 DESCRIPTION DVO Image Table 6 6 … … 53 53 # 48 bytes 54 54 55 FIELD dummy, DUMMY, char[14], unused56 55 FIELD order, ORDER, short, Mrel 2D polynomical order 57 56 FIELD Mx, MX, short, Mrel polyterm -
branches/eam_branch_20080223/Ohana/src/libautocode/def/measure-ps1-dev-1.d
r15511 r16699 34 34 # do we need more resolution than a short? should this be a log? 35 35 FIELD qPSF, PSF_QF, float, psf coverage/quality factor 36 FIELD psf Prob, PSF_PROB,float, psf coverage/quality factor36 FIELD psfChisq, PSF_CHISQ, float, psf coverage/quality factor 37 37 FIELD crNsigma, CR_NSIGMA, float, psf coverage/quality factor 38 38 FIELD extNsigma, EXT_NSIGMA, float, psf coverage/quality factor -
branches/eam_branch_20080223/Ohana/src/libautocode/def/measure-ps1-dev-2.d
r16632 r16699 1 STRUCT Measure_PS1_DEV_ 12 EXTNAME DVO_MEASURE_PS1_DEV_ 11 STRUCT Measure_PS1_DEV_2 2 EXTNAME DVO_MEASURE_PS1_DEV_2 3 3 TYPE BINTABLE 4 SIZE 1 044 SIZE 112 5 5 DESCRIPTION DVO Detection Measurement Table 6 6 … … 9 9 FIELD M, MAG, float, catalog mag, mag 10 10 FIELD Mcal, M_CAL, float, image cal mag, mag 11 FIELD M gal, M_GAL, float, galaxy mag,mag11 FIELD Map, M_APER, float, aperture mag, mag 12 12 FIELD dM, MAG_ERR, float, mag error, mag 13 FIELD dMcal, MAG_CAL_ERR, float, systematic calibration error, mag 13 14 FIELD dt, M_TIME, float, exposure time, 2.5*log(exptime) 14 15 … … 30 31 # Pan-STARRS uses a 64-bit detection ID. keep this in two 32 bit ints for backwards compatibility? 31 32 FIELD detID, DET_ID, unsigned int, detection ID 32 FIELD imageID, IMAGE_ID, unsigned int, reference to image33 FIELD imageID, IMAGE_ID, unsigned int, reference to DVO image ID 33 34 34 35 # do we need more resolution than a short? should this be a log? 35 36 FIELD qPSF, PSF_QF, float, psf coverage/quality factor 36 FIELD psf Prob, PSF_PROB, float, psf coverage/quality factor37 FIELD crNsigma, CR_NSIGMA, float, psf coverage/quality factor38 FIELD extNsigma, EXT_NSIGMA, float, psf coverage/quality factor37 FIELD psfChisq, PSF_CHISQ, float, psf fit chisq 38 FIELD crNsigma, CR_NSIGMA, float, Nsigma deviation towards CR 39 FIELD extNsigma, EXT_NSIGMA, float, Nsigma deviation towards EXT 39 40 40 41 FIELD FWx, FWHM_MAJOR, short, object fwhm major axis, 1/100 of arcsec … … 54 55 FIELD dophot, DOPHOT, char, dophot type 55 56 56 FIELD dummy, DUMMY, char[ 2], padding57 FIELD dummy, DUMMY, char[6], padding -
branches/eam_branch_20080223/Ohana/src/libautocode/def/measure.d
r16634 r16699 2 2 EXTNAME DVO_MEASURE 3 3 TYPE BINTABLE 4 SIZE 1 044 SIZE 112 5 5 DESCRIPTION DVO Detection Measurement Table 6 6 … … 9 9 FIELD M, MAG, float, catalog mag, mag 10 10 FIELD Mcal, M_CAL, float, image cal mag, mag 11 FIELD M gal, M_GAL, float, galaxy mag,mag11 FIELD Map, M_APER, float, aperture mag, mag 12 12 FIELD dM, MAG_ERR, float, mag error, mag 13 FIELD dMcal, MAG_CAL_ERR, float, systematic calibration error, mag 13 14 FIELD dt, M_TIME, float, exposure time, 2.5*log(exptime) 14 15 … … 34 35 # do we need more resolution than a short? should this be a log? 35 36 FIELD qPSF, PSF_QF, float, psf coverage/quality factor 36 FIELD psf Prob, PSF_PROB, float, psf coverage/quality factor37 FIELD crNsigma, CR_NSIGMA, float, psf coverage/quality factor38 FIELD extNsigma, EXT_NSIGMA, float, psf coverage/quality factor37 FIELD psfChisq, PSF_CHISQ, float, psf fit chisq 38 FIELD crNsigma, CR_NSIGMA, float, Nsigma deviation towards CR 39 FIELD extNsigma, EXT_NSIGMA, float, Nsigma deviation towards EXT 39 40 40 41 FIELD FWx, FWHM_MAJOR, short, object fwhm major axis, 1/100 of arcsec … … 54 55 FIELD dophot, DOPHOT, char, dophot type 55 56 56 FIELD dummy, DUMMY, char[ 2], padding57 FIELD dummy, DUMMY, char[6], padding -
branches/eam_branch_20080223/Ohana/src/libautocode/def/photcode-ps1-dev-2.d
r16632 r16699 1 STRUCT PhotCode_PS1_DEV_ 12 EXTNAME DVO_PHOTCODE_PS1_DEV_ 11 STRUCT PhotCode_PS1_DEV_2 2 EXTNAME DVO_PHOTCODE_PS1_DEV_2 3 3 TYPE BINTABLE 4 4 SIZE 104 -
branches/eam_branch_20080223/Ohana/src/libautocode/def/ps1_dev_0.d
r12461 r16699 16 16 FIELD sky, SKY, float, sky flux, cnts/sec 17 17 FIELD dSky, SKY_SIG, float, sky flux errorf cnts/sec 18 FIELD psf Prob, PSF_PROBABILITY, float, psf probability18 FIELD psfChisq, PSF_CHISQ, float, psf fit chisq 19 19 FIELD fx, PSF_WIDTH_X, float, semi-major, pixels 20 20 FIELD fy, PSF_WIDTH_Y, float, semi-minor, pixels -
branches/eam_branch_20080223/Ohana/src/libautocode/def/ps1_dev_1.d
r15038 r16699 16 16 FIELD sky, SKY, float, sky flux, cnts/sec 17 17 FIELD dSky, SKY_SIG, float, sky flux errorf cnts/sec 18 FIELD psf Prob, PSF_PROBABILITY, float, psf probability18 FIELD psfChisq, PSF_CHISQ, float, psf fit chisq 19 19 FIELD crNsigma, CR_NSIGMA, float, Nsigma deviations from PSF to CF 20 20 FIELD extNsigma, EXT_NSIGMA, float, Nsigma deviations from PSF to EXT -
branches/eam_branch_20080223/Ohana/src/libautocode/def/secfilt-ps1-dev-2.d
r16632 r16699 1 STRUCT SecFilt_PS1_DEV_ 12 EXTNAME DVO_SECFILT_PS1_DEV_ 11 STRUCT SecFilt_PS1_DEV_2 2 EXTNAME DVO_SECFILT_PS1_DEV_2 3 3 TYPE BINTABLE 4 4 SIZE 16 -
branches/eam_branch_20080223/Ohana/src/libdvo/Makefile
r16139 r16699 29 29 $(DESTINC)/panstarrs_dev_0_defs.h \ 30 30 $(DESTINC)/panstarrs_dev_1_defs.h \ 31 $(DESTINC)/ps1_dev_1_defs.h 31 $(DESTINC)/ps1_dev_1_defs.h \ 32 $(DESTINC)/ps1_dev_2_defs.h 32 33 33 34 INCS = $(DEFS) $(DESTINC)/dvo.h $(DESTINC)/autocode.h … … 37 38 $(SRC)/coordops.$(ARCH).o \ 38 39 $(SRC)/dvosorts.$(ARCH).o \ 39 $(SRC)/dvo_photcode_ops.$(ARCH).o \40 $(SRC)/dvo_photcode_convert_elixir.$(ARCH).o \41 $(SRC)/dvo_photcode_convert_ps1_dev_1.$(ARCH).o \42 40 $(SRC)/dvo_photcode_ops.$(ARCH).o \ 43 41 $(SRC)/LoadPhotcodes.$(ARCH).o \ … … 64 62 $(SRC)/dvo_convert_panstarrs_DEV_1.$(ARCH).o \ 65 63 $(SRC)/dvo_convert_PS1_DEV_1.$(ARCH).o \ 64 $(SRC)/dvo_convert_PS1_DEV_2.$(ARCH).o \ 66 65 $(SRC)/skyregion_io.$(ARCH).o \ 67 66 $(SRC)/skyregion_gsc.$(ARCH).o \ -
branches/eam_branch_20080223/Ohana/src/libdvo/include/dvo.h
r16057 r16699 16 16 DVO_FORMAT_PANSTARRS_DEV_0, 17 17 DVO_FORMAT_PANSTARRS_DEV_1, 18 DVO_FORMAT_PS1_DEV_1 18 DVO_FORMAT_PS1_DEV_1, 19 DVO_FORMAT_PS1_DEV_2 19 20 } DVOTableFormat; 20 21 … … 215 216 struct Catalog *secfilt_catalog; /* secfilt catalog data (split) */ 216 217 218 unsigned int objID; 219 unsigned int catID; 220 217 221 /* extra catalog information */ 218 222 int lockmode; … … 383 387 # include "panstarrs_dev_1_defs.h" 384 388 # include "ps1_dev_1_defs.h" 389 # include "ps1_dev_2_defs.h" 385 390 386 391 /*** DVO image db I/O Functions ***/ -
branches/eam_branch_20080223/Ohana/src/libdvo/src/LoadPhotcodesFITS.c
r15694 r16699 50 50 photcode = PhotCode_PS1_DEV_1_To_Internal (photcode_ps1_dev_1, Ncode); 51 51 free (photcode_ps1_dev_1); 52 } 53 54 if (!strcmp (extname, "DVO_PHOTCODE_PS1_DEV_2")) { 55 PhotCode_PS1_DEV_2 *photcode_ps1_dev_2 = gfits_table_get_PhotCode_PS1_DEV_2 (&db.ftable, &Ncode, &db.swapped); 56 photcode = PhotCode_PS1_DEV_2_To_Internal (photcode_ps1_dev_2, Ncode); 57 free (photcode_ps1_dev_2); 52 58 } 53 59 -
branches/eam_branch_20080223/Ohana/src/libdvo/src/SavePhotcodesFITS.c
r15694 r16699 29 29 // for the moment, we simply support the latest photcode format for output 30 30 // XXX update this as needed as new formats are defined 31 PhotCode_PS1_DEV_ 1 *photcode_output = PhotCode_Internal_To_PS1_DEV_1(table[0].code, table[0].Ncode);31 PhotCode_PS1_DEV_2 *photcode_output = PhotCode_Internal_To_PS1_DEV_2 (table[0].code, table[0].Ncode); 32 32 33 33 /* convert FITS format data to internal format (byteswaps & EXTNAME) */ 34 34 gfits_db_create (&db); 35 gfits_table_set_PhotCode_PS1_DEV_ 1(&db.ftable, photcode_output, table[0].Ncode);35 gfits_table_set_PhotCode_PS1_DEV_2 (&db.ftable, photcode_output, table[0].Ncode); 36 36 gfits_db_save (&db); 37 37 gfits_db_close (&db); -
branches/eam_branch_20080223/Ohana/src/libdvo/src/dvo_catalog.c
r16057 r16699 51 51 if (!strcasecmp (catformat, "PANSTARRS_DEV_1")) return (DVO_FORMAT_PANSTARRS_DEV_1); 52 52 if (!strcasecmp (catformat, "PS1_DEV_1")) return (DVO_FORMAT_PS1_DEV_1); 53 if (!strcasecmp (catformat, "PS1_DEV_2")) return (DVO_FORMAT_PS1_DEV_2); 53 54 return (DVO_FORMAT_UNDEF); 54 55 } -
branches/eam_branch_20080223/Ohana/src/libdvo/src/dvo_catalog_raw.c
r16633 r16699 73 73 FORMAT_CASE (PANSTARRS_DEV_1, Panstarrs_DEV_1); 74 74 FORMAT_CASE (PS1_DEV_1, PS1_DEV_1); 75 FORMAT_CASE (PS1_DEV_2, PS1_DEV_2); 75 76 76 77 default: … … 256 257 if (catalog[0].catformat == DVO_FORMAT_PANSTARRS_DEV_1) gfits_modify (&catalog[0].header, "FORMAT", "%s", 1, "PANSTARRS_DEV_1"); 257 258 if (catalog[0].catformat == DVO_FORMAT_PS1_DEV_1) gfits_modify (&catalog[0].header, "FORMAT", "%s", 1, "PS1_DEV_1"); 259 if (catalog[0].catformat == DVO_FORMAT_PS1_DEV_2) gfits_modify (&catalog[0].header, "FORMAT", "%s", 1, "PS1_DEV_2"); 258 260 259 261 /* rewind file pointers and truncate file */ … … 350 352 FORMAT_CASE (PANSTARRS_DEV_1, Panstarrs_DEV_1); 351 353 FORMAT_CASE (PS1_DEV_1, PS1_DEV_1); 354 FORMAT_CASE (PS1_DEV_2, PS1_DEV_2); 352 355 353 356 default: … … 395 398 FORMAT_CASE (PANSTARRS_DEV_1, Panstarrs_DEV_1); 396 399 FORMAT_CASE (PS1_DEV_1, PS1_DEV_1); 400 FORMAT_CASE (PS1_DEV_2, PS1_DEV_2); 397 401 398 402 default: … … 444 448 FORMAT_CASE (PANSTARRS_DEV_1, Panstarrs_DEV_1); 445 449 FORMAT_CASE (PS1_DEV_1, PS1_DEV_1); 450 FORMAT_CASE (PS1_DEV_2, PS1_DEV_2); 446 451 447 452 default: … … 489 494 FORMAT_CASE (PANSTARRS_DEV_1, Panstarrs_DEV_1); 490 495 FORMAT_CASE (PS1_DEV_1, PS1_DEV_1); 496 FORMAT_CASE (PS1_DEV_2, PS1_DEV_2); 491 497 492 498 default: … … 538 544 FORMAT_CASE (PANSTARRS_DEV_1, Panstarrs_DEV_1); 539 545 FORMAT_CASE (PS1_DEV_1, PS1_DEV_1); 546 FORMAT_CASE (PS1_DEV_2, PS1_DEV_2); 540 547 541 548 default: … … 583 590 FORMAT_CASE (PANSTARRS_DEV_1, Panstarrs_DEV_1); 584 591 FORMAT_CASE (PS1_DEV_1, PS1_DEV_1); 592 FORMAT_CASE (PS1_DEV_2, PS1_DEV_2); 585 593 586 594 default: -
branches/eam_branch_20080223/Ohana/src/libdvo/src/dvo_convert.c
r15487 r16699 48 48 CONVERT_FORMAT ("DVO_AVERAGE_PANSTARRS_DEV_1", PANSTARRS_DEV_1, Panstarrs_DEV_1); 49 49 CONVERT_FORMAT ("DVO_AVERAGE_PS1_DEV_1", PS1_DEV_1, PS1_DEV_1); 50 CONVERT_FORMAT ("DVO_AVERAGE_PS1_DEV_2", PS1_DEV_2, PS1_DEV_2); 50 51 # undef CONVERT_FORMAT 51 52 … … 77 78 FORMAT_CASE (PANSTARRS_DEV_1, Panstarrs_DEV_1); 78 79 FORMAT_CASE (PS1_DEV_1, PS1_DEV_1); 80 FORMAT_CASE (PS1_DEV_2, PS1_DEV_2); 79 81 # undef FORMAT_CASE 80 82 … … 119 121 CONVERT_FORMAT ("DVO_MEASURE_PANSTARRS_DEV_1", PANSTARRS_DEV_1, Panstarrs_DEV_1); 120 122 CONVERT_FORMAT ("DVO_MEASURE_PS1_DEV_1", PS1_DEV_1, PS1_DEV_1); 123 CONVERT_FORMAT ("DVO_MEASURE_PS1_DEV_2", PS1_DEV_2, PS1_DEV_2); 121 124 # undef CONVERT_FORMAT 122 125 … … 148 151 FORMAT_CASE (PANSTARRS_DEV_1, Panstarrs_DEV_1); 149 152 FORMAT_CASE (PS1_DEV_1, PS1_DEV_1); 153 FORMAT_CASE (PS1_DEV_2, PS1_DEV_2); 150 154 # undef FORMAT_CASE 151 155 … … 190 194 CONVERT_FORMAT ("DVO_SECFILT_PANSTARRS_DEV_1", PANSTARRS_DEV_1, Panstarrs_DEV_1); 191 195 CONVERT_FORMAT ("DVO_SECFILT_PS1_DEV_1", PS1_DEV_1, PS1_DEV_1); 196 CONVERT_FORMAT ("DVO_SECFILT_PS1_DEV_2", PS1_DEV_2, PS1_DEV_2); 192 197 # undef CONVERT_FORMAT 193 198 … … 219 224 FORMAT_CASE (PANSTARRS_DEV_1, Panstarrs_DEV_1); 220 225 FORMAT_CASE (PS1_DEV_1, PS1_DEV_1); 226 FORMAT_CASE (PS1_DEV_2, PS1_DEV_2); 221 227 # undef FORMAT_CASE 222 228 … … 281 287 CONVERT_FORMAT ("DVO_IMAGE_PANSTARRS_DEV_1", PANSTARRS_DEV_1, Panstarrs_DEV_1); 282 288 CONVERT_FORMAT ("DVO_IMAGE_PS1_DEV_1", PS1_DEV_1, PS1_DEV_1); 289 CONVERT_FORMAT ("DVO_IMAGE_PS1_DEV_2", PS1_DEV_2, PS1_DEV_2); 283 290 # undef CONVERT_FORMAT 284 291 … … 313 320 FORMAT_CASE (PANSTARRS_DEV_1, Panstarrs_DEV_1); 314 321 FORMAT_CASE (PS1_DEV_1, PS1_DEV_1); 322 FORMAT_CASE (PS1_DEV_2, PS1_DEV_2); 315 323 # undef FORMAT_CASE 316 324 … … 361 369 FORMAT_CASE (PANSTARRS_DEV_1, Panstarrs_DEV_1); 362 370 FORMAT_CASE (PS1_DEV_1, PS1_DEV_1); 371 FORMAT_CASE (PS1_DEV_2, PS1_DEV_2); 363 372 # undef FORMAT_CASE 364 373 -
branches/eam_branch_20080223/Ohana/src/libdvo/src/dvo_convert_PS1_DEV_1.c
r16633 r16699 1 1 # include <dvo.h> 2 2 3 // XXX these functions ahve to be adjusted to agree with the new definition of PS1_DEV_1 4 5 /* convert panstarrs-format measures to internal measures */ 3 /* convert PS1_DEV_1 formats to internal formats */ 4 6 5 Measure *Measure_PS1_DEV_1_ToInternal (Measure_PS1_DEV_1 *in, int Nvalues) { 7 6 … … 16 15 out[i].M = in[i].M; 17 16 out[i].Mcal = in[i].Mcal; 18 out[i].M gal= in[i].Mgal;17 out[i].Map = in[i].Mgal; 19 18 out[i].dM = in[i].dM; 20 19 out[i].dt = in[i].dt; … … 30 29 out[i].imageID = in[i].imageID; 31 30 out[i].qPSF = in[i].qPSF; 32 out[i].psf Prob = in[i].psfProb;31 out[i].psfChisq = in[i].psfChisq; 33 32 out[i].crNsigma = in[i].crNsigma; 34 33 out[i].extNsigma = in[i].extNsigma; … … 47 46 } 48 47 49 /* convert internal measures to panstarrs-format measures */50 48 Measure_PS1_DEV_1 *MeasureInternalTo_PS1_DEV_1 (Measure *in, int Nvalues) { 51 49 … … 60 58 out[i].M = in[i].M; 61 59 out[i].Mcal = in[i].Mcal; 62 out[i].Mgal = in[i].M gal;60 out[i].Mgal = in[i].Map; 63 61 out[i].dM = in[i].dM; 64 62 out[i].dt = in[i].dt; … … 74 72 out[i].imageID = in[i].imageID; 75 73 out[i].qPSF = in[i].qPSF; 76 out[i].psf Prob = in[i].psfProb;74 out[i].psfChisq = in[i].psfChisq; 77 75 out[i].crNsigma = in[i].crNsigma; 78 76 out[i].extNsigma = in[i].extNsigma; … … 91 89 } 92 90 93 /* convert panstarrs-format averages to internal averages */ 94 // 'primary is needed to conform with the API for Loneos and Elixir, but is not used 91 // 'primary' is needed to conform with the API for Loneos and Elixir, but is not used 95 92 Average *Average_PS1_DEV_1_ToInternal (Average_PS1_DEV_1 *in, int Nvalues, SecFilt **primary) { 96 93 … … 117 114 out[i].P = in[i].P; 118 115 out[i].dP = in[i].dP; 119 out[i].objID_hi = in[i].objID_hi; 120 out[i].objID_lo = in[i].objID_lo; 121 } 122 return (out); 123 } 124 125 /* convert internal averages to panstarrs-format averages */ 126 // 'primary is needed to conform with the API for Loneos and Elixir, but is not used 116 out[i].objID = in[i].objID; 117 out[i].catID = in[i].catID; 118 } 119 return (out); 120 } 121 122 // 'primary' is needed to conform with the API for Loneos and Elixir, but is not used 127 123 Average_PS1_DEV_1 *AverageInternalTo_PS1_DEV_1 (Average *in, int Nvalues, SecFilt *primary) { 128 124 … … 149 145 out[i].P = in[i].P; 150 146 out[i].dP = in[i].dP; 151 out[i].objID_hi = in[i].objID_hi; 152 out[i].objID_lo = in[i].objID_lo; 153 } 154 return (out); 155 } 156 157 /* convert panstarrs-format secfilts to internal secfilts */ 147 out[i].objID = in[i].objID; 148 out[i].catID = in[i].catID; 149 } 150 return (out); 151 } 152 158 153 SecFilt *SecFilt_PS1_DEV_1_ToInternal (SecFilt_PS1_DEV_1 *in, int Nvalues) { 159 154 … … 173 168 } 174 169 175 /* convert internal secfilts to panstarrs-format secfilts */176 170 SecFilt_PS1_DEV_1 *SecFiltInternalTo_PS1_DEV_1 (SecFilt *in, int Nvalues) { 177 171 … … 191 185 } 192 186 193 /* convert panstarrs-format images to internal images */194 187 Image *Image_PS1_DEV_1_ToInternal (Image_PS1_DEV_1 *in, int Nvalues) { 195 188 … … 300 293 return (out); 301 294 } 295 296 PhotCode_PS1_DEV_1 *PhotCode_Internal_To_PS1_DEV_1 (PhotCode *in, int Nvalues) { 297 298 int i; 299 PhotCode_PS1_DEV_1 *out; 300 301 ALLOCATE (out, PhotCode_PS1_DEV_1, Nvalues); 302 303 for (i = 0; i < Nvalues; i++) { 304 strncpy (out[i].name, in[i].name, 31); // out[32], in[32] 305 out[i].name[31] = 0; // force termination 306 307 out[i].code = in[i].code; 308 out[i].type = in[i].type; 309 out[i].C = in[i].C; 310 out[i].dC = in[i].dC; 311 out[i].dX = in[i].dX; 312 out[i].K = in[i].K; 313 out[i].c1 = in[i].c1; 314 out[i].c2 = in[i].c2; 315 out[i].equiv = in[i].equiv; 316 out[i].Nc = in[i].Nc; 317 memcpy (out[i].X, in[i].X, 4*sizeof(float)); 318 319 out[i].astromScale = in[i].astromScale; 320 out[i].photSysErr = in[i].photSysErr; 321 } 322 return (out); 323 } 324 325 PhotCode *PhotCode_PS1_DEV_1_To_Internal (PhotCode_PS1_DEV_1 *in, int Nvalues) { 326 327 int i; 328 PhotCode *out; 329 330 ALLOCATE (out, PhotCode, Nvalues); 331 332 for (i = 0; i < Nvalues; i++) { 333 strncpy (out[i].name, in[i].name, 31); // out[32], in[32] 334 out[i].name[31] = 0; // force termination 335 336 out[i].code = in[i].code; 337 out[i].type = in[i].type; 338 out[i].C = in[i].C; 339 out[i].dC = in[i].dC; 340 out[i].dX = in[i].dX; 341 out[i].K = in[i].K; 342 out[i].c1 = in[i].c1; 343 out[i].c2 = in[i].c2; 344 out[i].equiv = in[i].equiv; 345 out[i].Nc = in[i].Nc; 346 memcpy (out[i].X, in[i].X, 4*sizeof(float)); 347 348 out[i].astromScale = in[i].astromScale; 349 out[i].photSysErr = in[i].photSysErr; 350 } 351 return (out); 352 } -
branches/eam_branch_20080223/Ohana/src/libdvo/src/dvo_convert_elixir.c
r16633 r16699 16 16 out[i].dt = (in[i].dt == NAN_S_SHORT) ? NAN : in[i].dt * 0.001; 17 17 out[i].Mcal = (in[i].Mcal == NAN_S_SHORT) ? NAN : in[i].Mcal * 0.001; 18 out[i].Mgal = (in[i].Mgal == NAN_S_SHORT) ? NAN : in[i].Mgal * 0.001; 18 19 // 2008.02.26 : I've renamed Mgal to Map, and intend it to be used per aperture 20 // magnitudes. Most uses of Mgal in the past were actually aperture (isophotal) mags 21 out[i].Map = (in[i].Mgal == NAN_S_SHORT) ? NAN : in[i].Mgal * 0.001; 19 22 out[i].airmass = (in[i].airmass == NAN_S_SHORT) ? NAN : in[i].airmass* 0.001; 20 23 out[i].FWx = in[i].FWx; … … 39 42 out[i].dSky = 0; 40 43 out[i].qPSF = 0; 41 out[i].psf Prob= 0;44 out[i].psfChisq = 0; 42 45 out[i].crNsigma = 0; 43 46 out[i].extNsigma = 0; … … 66 69 out[i].dt = isnan(in[i].dt ) ? NAN_S_SHORT : in[i].dt * 1000.0; 67 70 out[i].Mcal = isnan(in[i].Mcal ) ? NAN_S_SHORT : in[i].Mcal * 1000.0; 68 out[i].Mgal = isnan(in[i].M gal ) ? NAN_S_SHORT : in[i].Mgal* 1000.0;71 out[i].Mgal = isnan(in[i].Map ) ? NAN_S_SHORT : in[i].Map * 1000.0; 69 72 out[i].airmass = isnan(in[i].airmass) ? NAN_S_SHORT : in[i].airmass * 1000.0; 70 73 … … 115 118 116 119 /* XXX add these later */ 117 out[i].objID _hi= 0;118 out[i]. objID_lo= 0;120 out[i].objID = 0; 121 out[i].catID = 0; 119 122 120 123 primary[0][i].M = (in[i].M == NAN_S_SHORT) ? NAN : in[i].M * 0.001; … … 297 300 return (out); 298 301 } 302 303 PhotCode_Elixir *PhotCode_Internal_To_Elixir (PhotCode *in, int Nvalues) { 304 305 int i; 306 PhotCode_Elixir *out; 307 308 ALLOCATE (out, PhotCode_Elixir, Nvalues); 309 310 for (i = 0; i < Nvalues; i++) { 311 strncpy (out[i].name, in[i].name, 31); // out[32], in[32] 312 out[i].name[31] = 0; // force termination 313 314 out[i].code = in[i].code; 315 out[i].type = in[i].type; 316 out[i].C = in[i].C; 317 out[i].dC = in[i].dC; 318 out[i].dX = in[i].dX; 319 out[i].K = in[i].K; 320 out[i].c1 = in[i].c1; 321 out[i].c2 = in[i].c2; 322 out[i].equiv = in[i].equiv; 323 out[i].Nc = in[i].Nc; 324 memcpy (out[i].X, in[i].X, 4*sizeof(float)); 325 } 326 return (out); 327 } 328 329 PhotCode *PhotCode_Elixir_To_Internal (PhotCode_Elixir *in, int Nvalues) { 330 331 int i; 332 PhotCode *out; 333 334 ALLOCATE (out, PhotCode, Nvalues); 335 336 for (i = 0; i < Nvalues; i++) { 337 strncpy (out[i].name, in[i].name, 31); // out[32], in[32] 338 out[i].name[31] = 0; // force termination 339 340 out[i].code = in[i].code; 341 out[i].type = in[i].type; 342 out[i].C = in[i].C; 343 out[i].dC = in[i].dC; 344 out[i].dX = in[i].dX; 345 out[i].K = in[i].K; 346 out[i].c1 = in[i].c1; 347 out[i].c2 = in[i].c2; 348 out[i].equiv = in[i].equiv; 349 out[i].Nc = in[i].Nc; 350 memcpy (out[i].X, in[i].X, 4*sizeof(float)); 351 352 // not defined in Elixir: 353 out[i].astromScale = 1.0; 354 out[i].photSysErr = 1.0; 355 } 356 return (out); 357 } -
branches/eam_branch_20080223/Ohana/src/libdvo/src/dvo_convert_loneos.c
r16633 r16699 24 24 25 25 /* these values don't exist in the Loneos format */ 26 out[i].Mgal = out[i].M; 27 out[i].dt = 0; 28 out[i].airmass = 0; 29 out[i].az = 0; 30 out[i].FWx = 0; 31 out[i].FWy = 0; 32 out[i].theta = 0; 33 out[i].stargal = 0; 34 out[i].Sky = 0; 35 out[i].dSky = 0; 36 out[i].qPSF = 0; 37 out[i].psfProb = 0; 26 27 // 2008.02.26 : I've renamed Mgal to Map, and intend it to be used per aperture 28 // magnitudes. Most uses of Mgal in the past were actually aperture (isophotal) mags 29 out[i].Map = out[i].M; 30 out[i].dt = 0; 31 out[i].airmass = 0; 32 out[i].az = 0; 33 out[i].FWx = 0; 34 out[i].FWy = 0; 35 out[i].theta = 0; 36 out[i].stargal = 0; 37 out[i].Sky = 0; 38 out[i].dSky = 0; 39 out[i].qPSF = 0; 40 out[i].psfChisq = 0; 38 41 out[i].crNsigma = 0; 39 42 out[i].extNsigma = 0; … … 107 110 108 111 /* XXX add these later */ 109 out[i].objID _hi= 0;110 out[i]. objID_lo= 0;112 out[i].objID = 0; 113 out[i].catID = 0; 111 114 112 115 primary[0][i].M = (in[i].M == NAN_S_SHORT) ? NAN : in[i].M * 0.001; -
branches/eam_branch_20080223/Ohana/src/libdvo/src/dvo_convert_panstarrs_DEV_0.c
r16633 r16699 15 15 out[i].dM = in[i].dM; 16 16 out[i].Mcal = in[i].Mcal; 17 out[i].Mgal = in[i].Mgal; 17 18 // 2008.02.26 : I've renamed Mgal to Map, and intend it to be used per aperture 19 // magnitudes. Most uses of Mgal in the past were actually aperture (isophotal) mags 20 out[i].Map = in[i].Mgal; 18 21 out[i].airmass = in[i].airmass; 19 22 out[i].az = in[i].az; … … 39 42 40 43 // these don't have a correspondence 41 out[i].psf Prob= 0;44 out[i].psfChisq = 0; 42 45 out[i].crNsigma = 0; 43 46 out[i].extNsigma = 0; … … 61 64 out[i].dM = in[i].dM; 62 65 out[i].Mcal = in[i].Mcal; 63 out[i].Mgal = in[i].M gal;66 out[i].Mgal = in[i].Map; 64 67 out[i].airmass = in[i].airmass; 65 68 out[i].az = in[i].az; … … 115 118 out[i].P = in[i].P; 116 119 out[i].dP = in[i].dP; 117 out[i].objID _hi = in[i].objID_hi;118 out[i]. objID_lo = in[i].objID_lo;120 out[i].objID = in[i].objID; 121 out[i].catID = in[i].catID; 119 122 } 120 123 return (out); … … 147 150 out[i].P = in[i].P; 148 151 out[i].dP = in[i].dP; 149 out[i].objID _hi = in[i].objID_hi;150 out[i]. objID_lo = in[i].objID_lo;152 out[i].objID = in[i].objID; 153 out[i].catID = in[i].catID; 151 154 } 152 155 return (out); -
branches/eam_branch_20080223/Ohana/src/libdvo/src/dvo_convert_panstarrs_DEV_1.c
r16633 r16699 15 15 out[i].dM = in[i].dM; 16 16 out[i].Mcal = in[i].Mcal; 17 out[i].Mgal = in[i].Mgal; 17 18 // 2008.02.26 : I've renamed Mgal to Map, and intend it to be used per aperture 19 // magnitudes. Most uses of Mgal in the past were actually aperture (isophotal) mags 20 out[i].Map = in[i].Mgal; 18 21 out[i].airmass = in[i].airmass; 19 22 out[i].az = in[i].az; … … 39 42 40 43 // these don't have a correspondence 41 out[i].psf Prob= 0;44 out[i].psfChisq = 0; 42 45 out[i].crNsigma = 0; 43 46 out[i].extNsigma = 0; … … 61 64 out[i].dM = in[i].dM; 62 65 out[i].Mcal = in[i].Mcal; 63 out[i].Mgal = in[i].M gal;66 out[i].Mgal = in[i].Map; 64 67 out[i].airmass = in[i].airmass; 65 68 out[i].az = in[i].az; … … 115 118 out[i].P = in[i].P; 116 119 out[i].dP = in[i].dP; 117 out[i].objID _hi = in[i].objID_hi;118 out[i]. objID_lo = in[i].objID_lo;120 out[i].objID = in[i].objID; 121 out[i].catID = in[i].catID; 119 122 } 120 123 return (out); … … 147 150 out[i].P = in[i].P; 148 151 out[i].dP = in[i].dP; 149 out[i].objID _hi = in[i].objID_hi;150 out[i]. objID_lo = in[i].objID_lo;152 out[i].objID = in[i].objID; 153 out[i].catID = in[i].catID; 151 154 } 152 155 return (out); -
branches/eam_branch_20080223/Ohana/src/libdvo/src/dvo_image.c
r15749 r16699 194 194 if (db[0].format == DVO_FORMAT_PANSTARRS_DEV_1) gfits_modify (&db[0].header, "FORMAT", "%s", 1, "PANSTARRS_DEV_1"); 195 195 if (db[0].format == DVO_FORMAT_PS1_DEV_1) gfits_modify (&db[0].header, "FORMAT", "%s", 1, "PS1_DEV_1"); 196 if (db[0].format == DVO_FORMAT_PS1_DEV_2) gfits_modify (&db[0].header, "FORMAT", "%s", 1, "PS1_DEV_2"); 196 197 197 198 return; -
branches/eam_branch_20080223/Ohana/src/libdvo/src/dvo_image_raw.c
r15487 r16699 53 53 if (db[0].format == DVO_FORMAT_PANSTARRS_DEV_1) ImageSize = sizeof(Image_Panstarrs_DEV_1); 54 54 if (db[0].format == DVO_FORMAT_PS1_DEV_1) ImageSize = sizeof(Image_PS1_DEV_1); 55 if (db[0].format == DVO_FORMAT_PS1_DEV_2) ImageSize = sizeof(Image_PS1_DEV_2); 55 56 56 57 /* check that filesize makes sense */ … … 76 77 if (db[0].format == DVO_FORMAT_PANSTARRS_DEV_1) gfits_table_mkheader_Image_Panstarrs_DEV_1 (&db[0].theader); 77 78 if (db[0].format == DVO_FORMAT_PS1_DEV_1) gfits_table_mkheader_Image_PS1_DEV_1 (&db[0].theader); 79 if (db[0].format == DVO_FORMAT_PS1_DEV_2) gfits_table_mkheader_Image_PS1_DEV_2 (&db[0].theader); 78 80 79 81 /* read data from file */
Note:
See TracChangeset
for help on using the changeset viewer.
