Changeset 34088 for trunk/Ohana/src/addstar
- Timestamp:
- Jun 26, 2012, 11:46:01 AM (14 years ago)
- Location:
- trunk/Ohana/src/addstar
- Files:
-
- 13 edited
-
Makefile (modified) (1 diff)
-
src/GetFileMode.c (modified) (2 diffs)
-
src/LoadData.c (modified) (1 diff)
-
src/LoadDataPMM.c (modified) (1 diff)
-
src/ReadStarsSDSS.c (modified) (1 diff)
-
src/edge_check.c (modified) (2 diffs)
-
src/get2mass_full.c (modified) (1 diff)
-
src/get2mass_ops.c (modified) (3 diffs)
-
src/load2mass_as_rawdata.c (modified) (2 diffs)
-
src/load_subpix.c (modified) (1 diff)
-
src/loadwise_rawdata.c (modified) (2 diffs)
-
src/resort_catalog.c (modified) (1 diff)
-
src/sky_tessalation.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/Makefile
r33963 r34088 13 13 14 14 # programs may add their own internal requirements here 15 FULL_CFLAGS = $(BASE_CFLAGS) -Wall -Werror15 FULL_CFLAGS = $(BASE_CFLAGS) 16 16 FULL_CPPFLAGS = $(BASE_CPPFLAGS) 17 17 FULL_LDFLAGS = -lkapa -ldvo -lFITS -lohana $(BASE_LDFLAGS) -
trunk/Ohana/src/addstar/src/GetFileMode.c
r31627 r34088 7 7 8 8 int Naxis; 9 int simple, extend , haveNaxis, haveCTYPE;9 int simple, extend; 10 10 int havePHOT_VER, haveTARG_VER; 11 11 12 12 gfits_scan_alt (header, "SIMPLE", "%t", 1, &simple); 13 haveNaxis = gfits_scan (header, "NAXIS", "%d", 1, &Naxis);14 haveCTYPE = gfits_scan (header, "CTYPE1", "%s", 1, ctype);13 int haveNaxis = gfits_scan (header, "NAXIS", "%d", 1, &Naxis); 14 int haveCTYPE = gfits_scan (header, "CTYPE1", "%s", 1, ctype); 15 15 16 16 gfits_scan_alt (header, "EXTEND", "%t", 1, &extend); … … 22 22 if (havePHOT_VER && haveTARG_VER) return SDSS_OBJ; 23 23 24 if ( (Naxis == 2) || TEXTMODE || !simple) {25 if ( !strcmp (&ctype[4], "-WRP")) {24 if (haveNaxis && ((Naxis == 2) || TEXTMODE || !simple)) { 25 if (haveCTYPE && !strcmp (&ctype[4], "-WRP")) { 26 26 return MOSAIC_CMP; 27 27 } -
trunk/Ohana/src/addstar/src/LoadData.c
r31669 r34088 1 1 # include "addstar.h" 2 # define DVO_IMAGE_NAME_LEN 1283 2 4 3 // XXX this function is somewhat specific to the elixir format output files -
trunk/Ohana/src/addstar/src/LoadDataPMM.c
r27435 r34088 1 1 # include "addstar.h" 2 # define DVO_IMAGE_NAME_LEN 1283 2 4 3 /* .asc files look like: -
trunk/Ohana/src/addstar/src/ReadStarsSDSS.c
r33653 r34088 1 1 # include "addstar.h" 2 # define DVO_IMAGE_NAME_LEN 128 2 3 3 int SetSDSSFlags (Stars *star, unsigned int flags1, unsigned int flags2); 4 4 -
trunk/Ohana/src/addstar/src/edge_check.c
r3361 r34088 4 4 5 5 double theta1, theta2; 6 double Theta1, Theta2;7 6 8 7 theta1 = opening_angle (x1[0], y1[0], x2[0], y2[0], x1[1], y1[1]); … … 17 16 } 18 17 19 Theta1 = theta1;20 Theta2 = theta2;21 18 theta1 = opening_angle (x2[0], y2[0], x1[1], y1[1], x2[1], y2[1]); 22 19 theta2 = opening_angle (x2[0], y2[0], x1[1], y1[1], x1[0], y1[0]); -
trunk/Ohana/src/addstar/src/get2mass_full.c
r30613 r34088 23 23 star[0][0].measure.theta = ToShortPixels(strtod (ptr, NULL)); 24 24 25 star[2][0].measure.FWx = star[ 2][0].measure.FWx = star[0][0].measure.FWx;26 star[2][0].measure.FWy = star[ 2][0].measure.FWy = star[0][0].measure.FWy;27 star[2][0].measure.theta = star[ 2][0].measure.theta = star[0][0].measure.theta;25 star[2][0].measure.FWx = star[1][0].measure.FWx = star[0][0].measure.FWx; 26 star[2][0].measure.FWy = star[1][0].measure.FWy = star[0][0].measure.FWy; 27 star[2][0].measure.theta = star[1][0].measure.theta = star[0][0].measure.theta; 28 28 29 29 ptr = next2MASSfield (ptr); // designation (skip) -
trunk/Ohana/src/addstar/src/get2mass_ops.c
r21508 r34088 73 73 74 74 char *ptr; 75 char Jquality, Hquality, Kquality;76 75 double J, dJ, H, dH, K, dK; 77 76 e_time time; … … 95 94 dK = strtod (ptr, NULL); 96 95 97 /* filter on the ph_qual flag for this filter (field 19) */ 96 // get the time 97 time = get2mass_time (ptr, 20, Nmax - (ptr - line)); 98 99 # if (0) 100 char Jquality, Hquality, Kquality; 101 /* old code to filter on the ph_qual flag for this filter (field 19) */ 98 102 if (SELECT_2MASS_QUALITY != NULL) { 99 103 ptr = skipNbounds (ptr, '|', 3, Nmax - (ptr - line)); … … 105 109 time = get2mass_time (ptr, 20, Nmax - (ptr - line)); 106 110 } 111 # endif 107 112 108 113 // how many bits are being used for the 2mass flags; can we just set photFlags based on them? -
trunk/Ohana/src/addstar/src/load2mass_as_rawdata.c
r24977 r34088 14 14 int i, j, verbose; 15 15 int Nstars, NSTARS, Ntstars, NTSTARS; 16 int Nbyte, Nextra, Ntotal,offset;16 int Nbyte, Nextra, offset; 17 17 18 18 double Rmin, Rmax, Dmin, Dmax; … … 37 37 38 38 Nextra = 0; // number excess bytes from lsat partial row 39 Ntotal = 0; // track the total number of bytes read40 39 while ((Nbyte = fread (&buffer[Nextra], 1, NBYTE-Nextra, f)) != 0) { 41 40 if (Nbyte == -1) Shutdown ("error reading from raw file %s", filename); -
trunk/Ohana/src/addstar/src/load_subpix.c
r24002 r34088 45 45 46 46 int bin; 47 double d y, dM;47 double dM; 48 48 49 dy = y - (int)(y);49 // dy = y - (int)(y); 50 50 bin = 5 * (int)(x/100) + (int)(y/100); 51 51 dM = Subpix[bin].dM; -
trunk/Ohana/src/addstar/src/loadwise_rawdata.c
r33963 r34088 14 14 int i, j, verbose; 15 15 int Nstars, NSTARS, Ntstars, NTSTARS; 16 int Nbyte, Nextra, Ntotal,offset;16 int Nbyte, Nextra, offset; 17 17 18 18 double Rmin, Rmax, Dmin, Dmax; … … 37 37 38 38 Nextra = 0; // number excess bytes from lsat partial row 39 Ntotal = 0; // track the total number of bytes read40 39 while ((Nbyte = fread (&buffer[Nextra], 1, NBYTE-Nextra, f)) != 0) { 41 40 if (Nbyte == -1) Shutdown ("error reading from raw file %s", filename); -
trunk/Ohana/src/addstar/src/resort_catalog.c
r33653 r34088 146 146 int NmeasureTotal = 0; 147 147 int measureOffsetOK = TRUE; 148 for (i = 0; i < catalog[0].Naverage; i++) {148 for (i = 0; i < Naverage; i++) { 149 149 NmeasureTotal += catalog[0].average[i].Nmeasure; 150 150 if (VERBOSE && !(NmeasureTotal <= catalog[0].Nmeasure)) { -
trunk/Ohana/src/addstar/src/sky_tessalation.c
r33719 r34088 2 2 # include "assert.h" 3 3 # define iSWAP(X,Y) {int tmp=(X); (X) = (Y); (Y) = tmp;} 4 # define DVO_IMAGE_NAME_LEN 1285 4 6 5 // we use a static refcoords structure to avoid multiple alloc / init steps
Note:
See TracChangeset
for help on using the changeset viewer.
