Changeset 34825
- Timestamp:
- Dec 15, 2012, 6:49:04 AM (14 years ago)
- Location:
- branches/eam_branches/ipp-20121130/Ohana/src
- Files:
-
- 2 edited
-
addstar/src/findskycell.c (modified) (4 diffs)
-
relphot/src/BoundaryTreeOps.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20121130/Ohana/src/addstar/src/findskycell.c
r34291 r34825 15 15 16 16 void usage (void) { 17 fprintf (stderr, "USAGE: findcell -mktree (tree) (catdir) \n");17 fprintf (stderr, "USAGE: findcell -mktree (tree) (catdir) [-nx Nx] [-ny Ny]\n"); 18 18 fprintf (stderr, "USAGE: findcell -tree (tree) (datafile)\n"); 19 19 fprintf (stderr, " (datafile) should contain a list of RA,DEC pairs\n"); … … 26 26 int main (int argc, char **argv) { 27 27 28 int N ;28 int N, NX_SUB, NY_SUB; 29 29 char *treefile = NULL; 30 30 … … 37 37 if (get_argument (argc, argv, "-help")) usage (); 38 38 if (get_argument (argc, argv, "-h")) usage (); 39 40 NX_SUB = NY_SUB = 1; 41 if ((N = get_argument (argc, argv, "-nx"))) { 42 remove_argument (N, &argc, argv); 43 NX_SUB = atof (argv[N]); 44 remove_argument (N, &argc, argv); 45 } 46 if ((N = get_argument (argc, argv, "-ny"))) { 47 remove_argument (N, &argc, argv); 48 NY_SUB = atof (argv[N]); 49 remove_argument (N, &argc, argv); 50 } 39 51 40 52 /* extra error messages */ … … 326 338 327 339 fprintf (stdout, "%10.6f %10.6f %3d %3d %s\n", ra, dec, zone, band, tree->name[zone][band]); 340 341 // I know the projection cell (band,zone), but I need to find the skycell within that projection cell. 342 // the proj cell is divided into Nx, Ny bits. 343 // (ra,dec) for (Ro,Do) -> (x,y). given (Xo,Yo),(dX,dY) I can find ix,iy 344 // I currently track Ro,Do (tree->RA_origin[zone], tree->...) 345 346 328 347 } 329 348 -
branches/eam_branches/ipp-20121130/Ohana/src/relphot/src/BoundaryTreeOps.c
r34260 r34825 22 22 23 23 snprintf (primaryCellName, DVO_MAX_PATH, "RINGS.V3.%s", tree->name[zone][band]); 24 25 // I have ra, dec, and the primary projection cell. In order to choose the primary skycell, 26 // I just need to project to ra,dec to X,Y based on the center of the cell and then get the subdivision right. 27 24 28 return TRUE; 25 29 }
Note:
See TracChangeset
for help on using the changeset viewer.
