Changeset 5014 for trunk/Ohana/src/opihi
- Timestamp:
- Sep 12, 2005, 3:04:48 PM (21 years ago)
- Location:
- trunk/Ohana/src/opihi/dvo
- Files:
-
- 26 edited
-
avextract.c (modified) (1 diff)
-
calextract.c (modified) (1 diff)
-
calmextract.c (modified) (1 diff)
-
catalog.c (modified) (1 diff)
-
ccd.c (modified) (1 diff)
-
cmatch.c (modified) (1 diff)
-
cmd.c (modified) (1 diff)
-
ddmags.c (modified) (1 diff)
-
dmagaves.c (modified) (1 diff)
-
dmagmeas.c (modified) (1 diff)
-
dmags.c (modified) (1 diff)
-
dmt.c (modified) (1 diff)
-
extract.c (modified) (1 diff)
-
fitcolors.c (modified) (3 diffs)
-
gimages.c (modified) (2 diffs)
-
gstar.c (modified) (1 diff)
-
imdata.c (modified) (1 diff)
-
imextract.c (modified) (1 diff)
-
imlist.c (modified) (1 diff)
-
imphot.c (modified) (1 diff)
-
imstats.c (modified) (1 diff)
-
lcurve.c (modified) (1 diff)
-
lightcurve.c (modified) (1 diff)
-
mextract.c (modified) (1 diff)
-
pmeasure.c (modified) (1 diff)
-
subpix.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/dvo/avextract.c
r4834 r5014 28 28 /* find CATDIR in config system */ 29 29 if (VarConfig ("CATDIR", "%s", catdir) == NULL) goto escape; 30 if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)31 strcpy (catalog.catmode, "RAW");32 30 33 31 /* interpret command-line options */ -
trunk/Ohana/src/opihi/dvo/calextract.c
r4865 r5014 30 30 /* find CATDIR in config system */ 31 31 if (VarConfig ("CATDIR", "%s", catdir) == NULL) goto escape; 32 if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)33 strcpy (catalog.catmode, "RAW");34 32 35 33 /* command line arguments */ -
trunk/Ohana/src/opihi/dvo/calmextract.c
r4865 r5014 31 31 /* find CATDIR in config system */ 32 32 if (VarConfig ("CATDIR", "%s", catdir) == NULL) goto escape; 33 if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)34 strcpy (catalog.catmode, "RAW");35 33 36 34 /* command line arguments */ -
trunk/Ohana/src/opihi/dvo/catalog.c
r4865 r5014 32 32 VarConfig ("GSCDIR", "%s", gscdir); 33 33 VarConfig ("CATDIR", "%s", catdir); 34 if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)35 strcpy (catalog.catmode, "RAW");36 34 37 35 Mz = 17.0; -
trunk/Ohana/src/opihi/dvo/ccd.c
r4834 r5014 28 28 /* find CATDIR in config system */ 29 29 if (VarConfig ("CATDIR", "%s", catdir) == NULL) goto escape; 30 if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)31 strcpy (catalog.catmode, "RAW");32 30 33 31 /* interpret command-line options */ -
trunk/Ohana/src/opihi/dvo/cmatch.c
r4852 r5014 11 11 VarConfig ("GSCDIR", "%s", gscdir); 12 12 VarConfig ("CATDIR", "%s", catdir); 13 if (VarConfig ("CATMODE", "%s", catalog1.catmode) == NULL)14 strcpy (catalog1.catmode, "RAW");15 13 16 14 if (argc != 9) { -
trunk/Ohana/src/opihi/dvo/cmd.c
r4834 r5014 28 28 /* find CATDIR in config system */ 29 29 if (VarConfig ("CATDIR", "%s", catdir) == NULL) goto escape; 30 if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)31 strcpy (catalog.catmode, "RAW");32 30 33 31 /* interpret command-line options */ -
trunk/Ohana/src/opihi/dvo/ddmags.c
r4834 r5014 28 28 /* find CATDIR in config system */ 29 29 if (VarConfig ("CATDIR", "%s", catdir) == NULL) goto escape; 30 if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)31 strcpy (catalog.catmode, "RAW");32 30 33 31 /* interpret command-line options */ -
trunk/Ohana/src/opihi/dvo/dmagaves.c
r4834 r5014 29 29 /* find CATDIR in config system */ 30 30 if (VarConfig ("CATDIR", "%s", catdir) == NULL) goto escape; 31 if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)32 strcpy (catalog.catmode, "RAW");33 31 34 32 /* interpret command-line options */ -
trunk/Ohana/src/opihi/dvo/dmagmeas.c
r4834 r5014 29 29 /* find CATDIR in config system */ 30 30 if (VarConfig ("CATDIR", "%s", catdir) == NULL) goto escape; 31 if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)32 strcpy (catalog.catmode, "RAW");33 31 34 32 /* interpret command-line options */ -
trunk/Ohana/src/opihi/dvo/dmags.c
r4834 r5014 28 28 /* find CATDIR in config system */ 29 29 if (VarConfig ("CATDIR", "%s", catdir) == NULL) goto escape; 30 if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)31 strcpy (catalog.catmode, "RAW");32 30 33 31 /* interpret command-line options */ -
trunk/Ohana/src/opihi/dvo/dmt.c
r4865 r5014 20 20 21 21 VarConfig ("CATDIR", "%s", catdir); 22 if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)23 strcpy (catalog.catmode, "RAW");24 22 25 23 vec1 = vec2 = vec3 = vec4 = vec5 = NULL; -
trunk/Ohana/src/opihi/dvo/extract.c
r4834 r5014 36 36 VarConfig ("GSCDIR", "%s", gscdir); 37 37 VarConfig ("CATDIR", "%s", catdir); 38 if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)39 strcpy (catalog.catmode, "RAW");40 38 41 39 regions = (RegionFile *) NULL; -
trunk/Ohana/src/opihi/dvo/fitcolors.c
r4834 r5014 14 14 int N1, N2, i1, i2, mode[4]; 15 15 int Nsec, Nregions, status; 16 char catdir[256], catmode[16],filename[256], *RegionName, *RegionList;16 char catdir[256], filename[256], *RegionName, *RegionList; 17 17 char *cmd, *outcmd, *camera; 18 18 double *M1, *M2; … … 37 37 /* find CATDIR in config system */ 38 38 if (VarConfig ("CATDIR", "%s", catdir) == NULL) goto escape; 39 if (VarConfig ("CATMODE", "%s", catmode) == NULL) strcpy (catmode, "RAW");40 39 41 40 /* interpret command-line options */ … … 104 103 for (k = 0; k < Nregions; k++) { 105 104 /* lock, load, unlock catalog */ 106 strcpy (catalog[k].catmode, catmode);107 105 sprintf (filename, "%s/%s", catdir, regions[k].name); 108 106 catalog[k].filename = filename; -
trunk/Ohana/src/opihi/dvo/gimages.c
r4689 r5014 4 4 5 5 int i, j, N, Nimage, Nfound, *subset, Nsubset, status; 6 double ra, dec, Ra, Dec, X, Y , Mcal;6 double ra, dec, Ra, Dec, X, Y; 7 7 double trange, t; 8 8 int TimeSelect, PixelCoords, TimeFormat, PhotCodeSelect; … … 96 96 if (Y > image[i].NY) continue; 97 97 98 /*** XXX we need to re-introduce the use of applyMcal 98 99 Mcal = applyMcal (&image[i], 2048.0, 2048.0); 100 ***/ 101 99 102 date = sec_to_date (image[i].tzero); 100 103 101 104 if (PixelCoords) { 102 105 fprintf (GetOutfile(), "%3d %s %6.1f %6.1f %20s %5d %2d %4.2f %6.3f %5.3f %5.3f %4x\n", 103 Nfound, image[i].name, X, Y, date, image[i].nstar, image[i].source, 0.001*image[i].secz, 0.001*Mcal, 0.001*image[i].dMcal, image[i].exptime, image[i].code);106 Nfound, image[i].name, X, Y, date, image[i].nstar, image[i].source, image[i].secz_PS, image[i].Mcal_PS, image[i].dMcal_PS, image[i].exptime, image[i].code); 104 107 } else { 105 108 XY_to_RD (&ra, &dec, 0.5*image[i].NX, 0.5*image[i].NY, &image[i].coords); 106 109 fprintf (GetOutfile(), "%3d %s %8.4f %8.4f %20s %5d %2d %4.2f %6.3f %5.3f %5.3f %4x\n", 107 Nfound, image[i].name, ra, dec, date, image[i].nstar, image[i].source, 0.001*image[i].secz, 0.001*Mcal, 0.001*image[i].dMcal, image[i].exptime, image[i].code);110 Nfound, image[i].name, ra, dec, date, image[i].nstar, image[i].source, image[i].secz_PS, image[i].Mcal_PS, image[i].dMcal_PS, image[i].exptime, image[i].code); 108 111 } 109 112 sprintf (name, "IMAGEx:%d", Nfound); -
trunk/Ohana/src/opihi/dvo/gstar.c
r4865 r5014 18 18 19 19 if (VarConfig ("CATDIR", "%s", catdir) == NULL) return (FALSE); 20 if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)21 strcpy (catalog.catmode, "RAW");22 20 23 21 if (!InitPhotcodes ()) return (FALSE); -
trunk/Ohana/src/opihi/dvo/imdata.c
r4865 r5014 40 40 } 41 41 } 42 43 if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)44 strcpy (catalog.catmode, "RAW");45 42 46 43 if (argc != 4) { -
trunk/Ohana/src/opihi/dvo/imextract.c
r4689 r5014 139 139 break; 140 140 case (AIRMASS): 141 vec[0].elements[N] = 0.001*image[j].secz;141 vec[0].elements[N] = image[j].secz_PS; 142 142 break; 143 143 case (MCAL): 144 vec[0].elements[N] = 0.001*image[j].Mcal;144 vec[0].elements[N] = image[j].Mcal_PS; 145 145 break; 146 146 case (dMCAL): 147 vec[0].elements[N] = 0.001*image[j].dMcal;147 vec[0].elements[N] = image[j].dMcal_PS; 148 148 break; 149 149 case (PHOTCODE): -
trunk/Ohana/src/opihi/dvo/imlist.c
r4689 r5014 86 86 XY_to_RD (&r, &d, 0.5*image[i].NX, 0.5*image[i].NY, &image[i].coords); 87 87 fprintf (GetOutfile(), "%3d %s %8.4f %8.4f %f %5d %2d %4.2f %5.3f %5.3f\n", 88 i, image[i].name, r, d, t, image[i].nstar, image[i].source, 0.001*image[i].secz, 0.001*image[i].Mcal, 0.001*image[i].dMcal);88 i, image[i].name, r, d, t, image[i].nstar, image[i].source, image[i].secz_PS, image[i].Mcal_PS, image[i].dMcal_PS); 89 89 } 90 90 -
trunk/Ohana/src/opihi/dvo/imphot.c
r4689 r5014 74 74 switch (image[i].order) { 75 75 case 0: 76 fprintf (stderr, "%s: %d - % d\n", image[i].name, image[i].order, image[i].Mcal);76 fprintf (stderr, "%s: %d - %f\n", image[i].name, image[i].order, image[i].Mcal_PS); 77 77 break; 78 78 case 1: 79 fprintf (stderr, "%s: %d - % d, %d %d\n", image[i].name, image[i].order, image[i].Mcal, image[i].Mx, image[i].My);79 fprintf (stderr, "%s: %d - %f, %d %d\n", image[i].name, image[i].order, image[i].Mcal_PS, image[i].Mx, image[i].My); 80 80 break; 81 81 case 2: 82 fprintf (stderr, "%s: %d - % d, %d %d, %d %d %d\n", image[i].name, image[i].order, image[i].Mcal, image[i].Mx, image[i].My, image[i].Mxx, image[i].Mxy, image[i].Myy);82 fprintf (stderr, "%s: %d - %f, %d %d, %d %d %d\n", image[i].name, image[i].order, image[i].Mcal_PS, image[i].Mx, image[i].My, image[i].Mxx, image[i].Mxy, image[i].Myy); 83 83 break; 84 84 case 3: 85 fprintf (stderr, "%s: %d - % d, %d %d, %d %d %d, %d %d %d %d\n", image[i].name, image[i].order, image[i].Mcal, image[i].Mx, image[i].My,85 fprintf (stderr, "%s: %d - %f, %d %d, %d %d %d, %d %d %d %d\n", image[i].name, image[i].order, image[i].Mcal_PS, image[i].Mx, image[i].My, 86 86 image[i].Mxx, image[i].Mxy, image[i].Myy, image[i].Mxxx, image[i].Mxxy, image[i].Mxyy, image[i].Myyy); 87 87 break; 88 88 case 4: 89 fprintf (stderr, "%s: %d - % d, %d %d, %d %d %d, %d %d %d %d, %d %d %d %d %d\n", image[i].name, image[i].order, image[i].Mcal, image[i].Mx, image[i].My,89 fprintf (stderr, "%s: %d - %f, %d %d, %d %d %d, %d %d %d %d, %d %d %d %d %d\n", image[i].name, image[i].order, image[i].Mcal_PS, image[i].Mx, image[i].My, 90 90 image[i].Mxx, image[i].Mxy, image[i].Myy, image[i].Mxxx, image[i].Mxxy, image[i].Mxyy, image[i].Myyy, 91 91 image[i].Mxxxx, image[i].Mxxxy, image[i].Mxxyy, image[i].Mxyyy, image[i].Myyyy); -
trunk/Ohana/src/opihi/dvo/imstats.c
r4689 r5014 45 45 fprintf (stdout, "seq ra (J2000) dec time (s) Nstars\n"); 46 46 for (i = 0; i < Nimage; i++) { 47 Xvec.elements[i] = 0.001*image[i].secz;47 Xvec.elements[i] = image[i].secz_PS; 48 48 if (Mcal) 49 Yvec.elements[i] = 0.001*image[i].Mcal;49 Yvec.elements[i] = image[i].Mcal_PS; 50 50 else 51 Yvec.elements[i] = 0.001*image[i].dMcal;51 Yvec.elements[i] = image[i].dMcal_PS; 52 52 if (!FindMosaicForImage (image, Nimage, i)) continue; 53 53 XY_to_RD (&r, &d, 0.5*image[i].NX, 0.5*image[i].NY, &image[i].coords); 54 54 fprintf (stderr, "%d %8.4f %8.4f %10d %6d %5.3f %6.3f %6.3f\n", 55 55 i, r, d, image[i].tzero, image[i].nstar, Xvec.elements[i], 56 0.001*image[i].Mcal, 0.001*image[i].dMcal);56 image[i].Mcal_PS, image[i].dMcal_PS); 57 57 } 58 58 if (AutoLimits) SetLimits (&Xvec, &Yvec, &graphmode); -
trunk/Ohana/src/opihi/dvo/lcurve.c
r4865 r5014 18 18 19 19 VarConfig ("CATDIR", "%s", catdir); 20 if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)21 strcpy (catalog.catmode, "RAW");22 20 23 21 if (!InitPhotcodes ()) return (FALSE); -
trunk/Ohana/src/opihi/dvo/lightcurve.c
r4865 r5014 15 15 16 16 VarConfig ("CATDIR", "%s", catdir); 17 if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)18 strcpy (catalog.catmode, "RAW");19 17 20 18 if (!InitPhotcodes ()) return (FALSE); -
trunk/Ohana/src/opihi/dvo/mextract.c
r4833 r5014 29 29 /* find CATDIR in config system */ 30 30 if (VarConfig ("CATDIR", "%s", catdir) == NULL) goto escape; 31 if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)32 strcpy (catalog.catmode, "RAW");33 31 34 32 /* interpret command-line options */ -
trunk/Ohana/src/opihi/dvo/pmeasure.c
r4833 r5014 22 22 if (!GetGraph (&graphmode, NULL, &Ngraph)) return (FALSE); 23 23 if (VarConfig ("CATDIR", "%s", catdir) == NULL) return (FALSE); 24 if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)25 strcpy (catalog.catmode, "RAW");26 24 27 25 regions = (RegionFile *) NULL; -
trunk/Ohana/src/opihi/dvo/subpix.c
r4834 r5014 23 23 24 24 VarConfig ("CATDIR", "%s", catdir); 25 if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)26 strcpy (catalog.catmode, "RAW");27 25 28 26 GetTimeFormat (&TimeReference, &TimeFormat); … … 150 148 RD_to_XY (&X, &Y, Ra, Dec, &image[I].coords); 151 149 t = TimeValue (measure[j].t, TimeReference, TimeFormat); 152 fprintf (GetOutfile(), "%f %6.3f %7.2f %7.2f %5.3f\n", t, Mabs, X, Y, 0.001*image[I].secz);150 fprintf (GetOutfile(), "%f %6.3f %7.2f %7.2f %5.3f\n", t, Mabs, X, Y, image[I].secz_PS); 153 151 } 154 152 }
Note:
See TracChangeset
for help on using the changeset viewer.
