IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33719


Ignore:
Timestamp:
Apr 5, 2012, 11:27:08 AM (14 years ago)
Author:
bills
Message:

add program dumpskycells which lists the celestial and galactic coordinates of the center
of each skycell in degrees

Location:
trunk/Ohana/src/addstar
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/Makefile

    r33653 r33719  
    2929mkcmf       : $(BIN)/mkcmf.$(ARCH)
    3030
    31 all: addstar sedstar load2mass skycells mkcmf loadwise loadsupercos
    32 
    33 INSTALL = addstar sedstar load2mass skycells mkcmf loadwise loadsupercos
     31all: addstar sedstar load2mass skycells mkcmf loadwise loadsupercos dumpskycells
     32
     33INSTALL = addstar sedstar load2mass skycells mkcmf loadwise loadsupercos dumpskycells
    3434
    3535# I need to fix the client/server version of addstar now that I have dropped Stars
     
    275275$(SRC)/sky_tessalation.$(ARCH).o
    276276
     277DUMPSKYCELLS = \
     278$(SRC)/dumpskycells.$(ARCH).o \
     279$(SRC)/skycells_to_mdc.$(ARCH).o \
     280$(SRC)/ConfigInit_skycells.$(ARCH).o \
     281$(SRC)/Shutdown.$(ARCH).o \
     282$(SRC)/SetSignals.$(ARCH).o \
     283
    277284$(ADDSTARC)   : $(INC)/addstar.h
    278285$(ADDSTARD)   : $(INC)/addstar.h
     
    280287$(ADDSTAR)    : $(INC)/addstar.h
    281288$(SKYCELLS)   : $(INC)/addstar.h
     289$(DUMPSKYCELLS): $(INC)/addstar.h
    282290$(LOAD-2MASS) : $(INC)/addstar.h $(INC)/2mass.h
    283291$(LOAD-WISE)  : $(INC)/addstar.h $(INC)/WISE.h
     
    294302$(BIN)/loadsupercos.$(ARCH): $(LOAD-SUPERCOS)
    295303$(BIN)/skycells.$(ARCH)    : $(SKYCELLS)
     304$(BIN)/dumpskycells.$(ARCH) : $(DUMPSKYCELLS)
    296305$(BIN)/mkcmf.$(ARCH)       : $(MKCMF)
    297306
  • trunk/Ohana/src/addstar/include/skycells.h

    r31239 r33719  
    7171int    LEVEL;
    7272char   PROJECTION_NUMBER[8];
     73char   *SKYCELLS_MDC;
     74int    READONLY;
    7375
    7476double CENTER_RA, CENTER_DEC;
     
    109111Point        sky_divide_edge                PROTO((Point v1, Point v2));
    110112
     113void         skycells_to_mdc                PROTO((FILE *output, int simple, char *tess_id, FITS_DB *db));
     114
    111115// XXX migrate to libdvo eventually
    112116int dvo_image_clear_vtable             PROTO((FITS_DB *db));
     117
  • trunk/Ohana/src/addstar/src/ConfigInit_skycells.c

    r25757 r33719  
    5555  /* XXX this does not yet write out the master photcode table */
    5656  sprintf (CatdirPhotcodeFile, "%s/Photcodes.dat", CATDIR);
    57   if (!LoadPhotcodes (CatdirPhotcodeFile, MasterPhotcodeFile, TRUE)) {
     57  if (!LoadPhotcodes (CatdirPhotcodeFile, MasterPhotcodeFile, !READONLY)) {
    5858    fprintf (stderr, "error loading photcode table %s or master file %s\n", CatdirPhotcodeFile, MasterPhotcodeFile);
    5959    exit (1);
  • trunk/Ohana/src/addstar/src/sky_tessalation.c

    r33653 r33719  
    266266    if (!ring) continue;
    267267
     268
    268269    // subdivide each image (Nx x Ny subcells)
    269270    Nimage = NX_SUB*NY_SUB*Nring;
     
    272273      // convert the SkyRectangles to Images for output
    273274      sky_subdivide_image (&image[j*NX_SUB*NY_SUB], &ring[j], NX_SUB, NY_SUB);
     275      printf("%s %8.2f %8.2f\n", ring[j].name, ring[j].coords.crval1, ring[j].coords.crval2);
    274276    }
    275277
Note: See TracChangeset for help on using the changeset viewer.