IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3400


Ignore:
Timestamp:
Mar 9, 2005, 9:20:18 PM (21 years ago)
Author:
eugene
Message:

working to mosaic astrom

Location:
trunk/Ohana
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/Makefile

    r2853 r3400  
    2828# directory may be compiled by going to those directories.
    2929PROGRAM =   \
    30 addrefs     \
    31 addspphot   \
    3230addstar     \
    3331delstar     \
     
    4240kii         \
    4341misc        \
    44 mosastro.v2 \
     42mosastro.v3 \
    4543nightd      \
    4644opihi.v2    \
     
    5654opihi.v1    \
    5755addusno     \
     56addrefs     \
     57addspphot   \
    5858fixcat      \
    5959getstar     \
     
    6363markstar    \
    6464mosastro.v1 \
     65mosastro.v2 \
    6566skycalc     
    6667
  • trunk/Ohana/src/addstar/include/addstar.h

    r3389 r3400  
    161161int FindRegionDecBandStart (GSCRegion *region, int Nregion, double dec);
    162162int FindRegionDecBandStop (GSCRegion *region, int Nregion, double dec);
     163int FindDecBand (double dec, double *DEC0, double *DEC1);
     164
    163165int hms_to_deg (double *h0, double *h1, double *d0, double *d1, char *string);
    164166void find_matches_refstars (GSCRegion *region, Stars **stars, int Nstars, Catalog *catalog);
  • trunk/Ohana/src/addstar/src/RegionOps.c

    r3376 r3400  
    2121GSCRegion *LoadRegions (int *nregions) {
    2222 
    23   int Nregions, i, N, NDec, Nx, Ny;
    24   char buffer[28800], temp[50], file[256];
     23  int Nregions, i, NDec, Nx, Ny;
     24  char temp[50], file[256];
    2525  double RA0, RA1, DEC0, DEC1, D0, D1;
    2626  FILE *f;
  • trunk/Ohana/src/addstar/src/get2mass.c

    r3376 r3400  
    55Stars *get2mass (GSCRegion *patch, int *NSTARS) {
    66 
    7   int i, j, k, Ns, Nstars, Nrefcat, Nregions;
     7  int i, Nstars, Nrefcat, Nregions;
    88  Stars     *stars;
    99  Stars     *refcat;
     
    8484Stars *get2mass_data (TM_Region *region, GSCRegion *patch, int *nstars) {
    8585 
    86   int i, Nstars, NSTARS, Nbyte, Nline, Nval;
     86  int i, Nstars, NSTARS, Nbyte, Nline;
    8787  Stars *stars;
    8888  gzFile gf;
    89   char *filename, buffer[NLINE*NBYTE], datestr[64];
     89  char *filename, buffer[NLINE*NBYTE];
    9090  double RA, DEC, J, H, K, dJ, dH, dK;
    91   e_time time;
    9291  double RA0, RA1, DEC0, DEC1;
    9392
     
    170169}
    171170
    172 /*
    173       Nval  = sscanf (&buffer[NBYTE*i +          0], "%lf %lf", &RA, &DEC);
    174       Nval += sscanf (&buffer[NBYTE*i +         53], "%lf %lf", &J, &dJ);
    175       Nval += sscanf (&buffer[NBYTE*i +         72], "%lf %lf", &H, &dH);
    176       Nval += sscanf (&buffer[NBYTE*i +         91], "%lf %lf", &K, &dK);
    177       Nval += sscanf (&buffer[NBYTE*i + 164], "%s", datestr);
    178 */
    179 
    180171    /* this just scans along in the file.  file is sorted by dec, so we
    181172       should be skipping large chunks - but we would need to have
  • trunk/Ohana/src/addstar/src/getgsc.c

    r3376 r3400  
    88Stars *getgsc (GSCRegion *patch, int *NSTARS) {
    99 
    10   int i, j, k, Ns, Ngsc, Nregions, Nstars;
     10  int i, Ngsc, Nregions, Nstars;
    1111  Stars *gsc;
    1212  Stars *stars;
  • trunk/Ohana/src/addstar/src/greference.c

    r3376 r3400  
    1010
    1111  Nstars = 0;
     12  stars = NULL;
    1213
    1314  /* get stars from USNO for the given region */
  • trunk/Ohana/src/elixir/src/MachineOps.c

    r2428 r3400  
    447447  double dt;
    448448
     449  fd = 0;
    449450  if (filename == (char *) NULL) {
    450451    system ("tput clear");
  • trunk/Ohana/src/libfits/header/F_modify.c

    r3369 r3400  
    102102char *fits_keyword_start (char *line) {
    103103
    104   int done;
    105104  char *c;
    106105
  • trunk/Ohana/src/libfits/include/fits.h

    r3391 r3400  
    3232  X = (T *) malloc ((unsigned)(MAX(((S)*((int)sizeof(T))),1))); \
    3333  if (X == NULL) { \
    34     fprintf(stderr,"failed malloc at %s in %s\n", __LINE__, __FILE__);\
     34    fprintf(stderr,"failed malloc at %d in %s\n", __LINE__, __FILE__);\
    3535    exit (10); }
    3636# define REALLOCATE(X,T,S) \
    3737  X = (T *) realloc(X,(unsigned)(MAX(((S)*((int)sizeof(T))),1))); \
    3838  if (X == NULL) { \
    39     fprintf(stderr,"failed realloc at %s in %s\n", __LINE__, __FILE__);\
     39    fprintf(stderr,"failed realloc at %d in %s\n", __LINE__, __FILE__);\
    4040    exit (10); }
    4141# define CHECK_REALLOCATE(X,T,S,N,D) \
     
    4444    X = (T *) realloc(X,(unsigned)(MAX(((S)*((int)sizeof(T))),1))); \
    4545    if (X == NULL) { \
    46       fprintf(stderr,"failed realloc increment at %s in %s\n", __LINE__, __FILE__);\
     46      fprintf(stderr,"failed realloc increment at %d in %s\n", __LINE__, __FILE__);\
    4747      exit (10); } }
    4848# endif /* ALLOCATE */
  • trunk/Ohana/src/libfits/table/F_get_column.c

    r2415 r3400  
    197197  if (label == (char *) NULL) return (FALSE);
    198198  if (label[0] == 0) return (FALSE);
     199  array = NULL;
    199200
    200201  /* find label in header */
  • trunk/Ohana/src/libfits/table/F_table_format.c

    r2415 r3400  
    5454int fits_table_format (char *format, char *type, int *Nval, int *Nbytes) {
    5555
    56   char Fchar, foo[80], bar;
     56  char Fchar, Size[80], Type;
    5757  int Nv;
    5858
     
    6464  if (Nv == 0) {
    6565    Nv = 1;
    66     strcpy (foo, "1");
     66    strcpy (Size, "1");
    6767  } else {
    68     strcpy (foo, &format[1]);
     68    strcpy (Size, &format[1]);
    6969  }
    70 
    71   if (Fchar == 'F') { *Nbytes = 1;  strcpy (type, "float");  bar = 'f'; *Nval = Nv; }
    72   if (Fchar == 'I') { *Nbytes = 1;  strcpy (type, "int");    bar = 'd'; *Nval = Nv; }
    73   if (Fchar == 'A') { *Nbytes = 1;  strcpy (type, "char");   bar = 's'; *Nval = Nv; }
     70 
     71  Type = 'x';
     72  if (Fchar == 'F') { *Nbytes = 1;  strcpy (type, "float");  Type = 'f'; *Nval = Nv; }
     73  if (Fchar == 'I') { *Nbytes = 1;  strcpy (type, "int");    Type = 'd'; *Nval = Nv; }
     74  if (Fchar == 'A') { *Nbytes = 1;  strcpy (type, "char");   Type = 's'; *Nval = Nv; }
    7475  if (!*Nbytes) { return (FALSE); }
    7576 
    76   sprintf (format, "%%-%s%c", foo, bar);
     77  sprintf (format, "%%-%s%c", Size, Type);
    7778
    7879  return (TRUE);
  • trunk/Ohana/src/libohana/include/loneos.h

    r3389 r3400  
    414414void coords_precess (double *ra, double *dec, double in_epoch, double out_epoch);
    415415
     416int FindMosaicForImage (Image *images, int Nimages, int entry);
     417int FindMosaicForImage_TableSearch (Image *images, int Nimages, int entry);
     418int FindMosaicForImage_MatchSearch (Image *images, int Nimages, int entry);
     419int BuildChipMatch (Image *images, int Nimages);
     420
    416421short int putMi (double value);
    417422double getMi (short int value);
  • trunk/Ohana/src/libohana/include/ohana.h

    r3388 r3400  
    7878  X = (T *) malloc ((unsigned)(MAX(((S)*((int)sizeof(T))),1))); \
    7979  if (X == NULL) { \
    80     fprintf(stderr,"failed malloc at %s in %s\n", __LINE__, __FILE__);\
     80    fprintf(stderr,"failed malloc at %d in %s\n", __LINE__, __FILE__);\
    8181    exit (10); }
    8282# define REALLOCATE(X,T,S) \
    8383  X = (T *) realloc(X,(unsigned)(MAX(((S)*((int)sizeof(T))),1))); \
    8484  if (X == NULL) { \
    85     fprintf(stderr,"failed realloc at %s in %s\n", __LINE__, __FILE__);\
     85    fprintf(stderr,"failed realloc at %d in %s\n", __LINE__, __FILE__);\
    8686    exit (10); }
    8787# define CHECK_REALLOCATE(X,T,S,N,D) \
     
    9090    X = (T *) realloc(X,(unsigned)(MAX(((S)*((int)sizeof(T))),1))); \
    9191    if (X == NULL) { \
    92       fprintf(stderr,"failed realloc increment at %s in %s\n", __LINE__, __FILE__);\
     92      fprintf(stderr,"failed realloc increment at %d in %s\n", __LINE__, __FILE__);\
    9393      exit (10); } }
    9494# endif /* ALLOCATE */
Note: See TracChangeset for help on using the changeset viewer.