IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42131


Ignore:
Timestamp:
Mar 21, 2022, 12:05:22 PM (4 years ago)
Author:
eugene
Message:

fixes for UKIRT ingest

Location:
trunk/Ohana/src/addstar
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/include/ukirt_uhs.h

    r42077 r42131  
    33
    44# define NSTARS_MAX 10000000
     5//# define NSTARS_MAX 5000
    56// # define NSTARS_MAX 10
    67
  • trunk/Ohana/src/addstar/src/loadukirt_uhs_readstars_ugcs.c

    r42077 r42131  
    467467        NELEM += 1000;
    468468
    469         REALLOCATE (sourceID,     uint64_t, NELEM);
     469        REALLOCATE (sourceID,     uint64_t, NELEM); 
    470470        REALLOCATE (frameSetID,   uint64_t, NELEM);
    471471        REALLOCATE (ra,           double,   NELEM);
    472472        REALLOCATE (dec,          double,   NELEM);
     473        REALLOCATE (epoch,        double,   NELEM);
    473474        REALLOCATE (priOrSec,     uint64_t, NELEM);
    474475        REALLOCATE (mergedClass,  int,      NELEM);
    475476        REALLOCATE (pStar,        double,   NELEM);
    476477        REALLOCATE (pGalaxy,      double,   NELEM);
     478
    477479        REALLOCATE (zHallMag,     double,   NELEM);
    478480        REALLOCATE (zHallMagErr,  double,   NELEM);
     
    485487        REALLOCATE (zppErrBits,   int,      NELEM);
    486488        REALLOCATE (zSeqNum,      int,      NELEM);
     489
    487490        REALLOCATE (yHallMag,     double,   NELEM);
    488491        REALLOCATE (yHallMagErr,  double,   NELEM);
     
    495498        REALLOCATE (yppErrBits,   int,      NELEM);
    496499        REALLOCATE (ySeqNum,      int,      NELEM);
     500
    497501        REALLOCATE (jHallMag,     double,   NELEM);
    498502        REALLOCATE (jHallMagErr,  double,   NELEM);
     
    505509        REALLOCATE (jppErrBits,   int,      NELEM);
    506510        REALLOCATE (jSeqNum,      int,      NELEM);
     511
    507512        REALLOCATE (hHallMag,     double,   NELEM);
    508513        REALLOCATE (hHallMagErr,  double,   NELEM);
     
    515520        REALLOCATE (hppErrBits,   int,      NELEM);
    516521        REALLOCATE (hSeqNum,      int,      NELEM);
     522
    517523        REALLOCATE (k1HallMag,     double,   NELEM);
    518524        REALLOCATE (k1HallMagErr,  double,   NELEM);
     
    525531        REALLOCATE (k1ppErrBits,   int,      NELEM);
    526532        REALLOCATE (k1SeqNum,      int,      NELEM);
     533
    527534        REALLOCATE (k2HallMag,     double,   NELEM);
    528535        REALLOCATE (k2HallMagErr,  double,   NELEM);
     
    541548    }
    542549  }
     550  fprintf (stderr, " DONE: Nelem: %d, *nstars: %d\n", Nelem, *nstars);
    543551
    544552  // Nelem is now the number of items (objects,stars) read from the Gaia CSV file
     
    715723    Nstars ++;
    716724
    717     if (NSTARS >= Nstars) {
     725    if (Nstars >= NSTARS) {
    718726      NSTARS += 10000;
    719727      REALLOCATE (stars, UKIRT_Stars, NSTARS);
  • trunk/Ohana/src/addstar/src/loadukirt_uhs_readstars_ugps.c

    r42077 r42131  
    388388        NELEM += 1000;
    389389
    390         REALLOCATE (sourceID,     uint64_t, NELEM);
     390        REALLOCATE (sourceID,     uint64_t, NELEM);   
    391391        REALLOCATE (frameSetID,   uint64_t, NELEM);
    392392        REALLOCATE (ra,           double,   NELEM);
    393393        REALLOCATE (dec,          double,   NELEM);
     394        REALLOCATE (epoch,        double,   NELEM);
    394395        REALLOCATE (priOrSec,     uint64_t, NELEM);
    395396        REALLOCATE (mergedClass,  int,      NELEM);
    396397        REALLOCATE (pStar,        double,   NELEM);
    397398        REALLOCATE (pGalaxy,      double,   NELEM);
     399
    398400        REALLOCATE (jAperMag1,     double,   NELEM);
    399401        REALLOCATE (jAperMag1Err,  double,   NELEM);
     
    406408        REALLOCATE (jppErrBits,   int,      NELEM);
    407409        REALLOCATE (jSeqNum,      int,      NELEM);
     410
    408411        REALLOCATE (hAperMag1,     double,   NELEM);
    409412        REALLOCATE (hAperMag1Err,  double,   NELEM);
     
    416419        REALLOCATE (hppErrBits,   int,      NELEM);
    417420        REALLOCATE (hSeqNum,      int,      NELEM);
     421
    418422        REALLOCATE (k1AperMag1,     double,   NELEM);
    419423        REALLOCATE (k1AperMag1Err,  double,   NELEM);
     
    426430        REALLOCATE (k1ppErrBits,   int,      NELEM);
    427431        REALLOCATE (k1SeqNum,      int,      NELEM);
     432
    428433        REALLOCATE (k2AperMag1,     double,   NELEM);
    429434        REALLOCATE (k2AperMag1Err,  double,   NELEM);
     
    436441        REALLOCATE (k2ppErrBits,   int,      NELEM);
    437442        REALLOCATE (k2SeqNum,      int,      NELEM);
     443
    438444        REALLOCATE (h2AperMag1,     double,   NELEM);
    439445        REALLOCATE (h2AperMag1Err,  double,   NELEM);
     
    452458    }
    453459  }
     460  fprintf (stderr, " DONE: Nelem: %d, *nstars: %d\n", Nelem, *nstars);
    454461
    455462  // Nelem is now the number of items (objects,stars) read from the Gaia CSV file
     
    606613    Nstars ++;
    607614
    608     if (NSTARS >= Nstars) {
     615    if (Nstars >= NSTARS) {
    609616      NSTARS += 10000;
    610617      REALLOCATE (stars, UKIRT_Stars, NSTARS);
  • trunk/Ohana/src/addstar/src/loadukirt_uhs_readstars_uhs.c

    r42077 r42131  
    234234    }
    235235  }
     236  fprintf (stderr, " DONE: Nelem: %d, *nstars: %d\n", Nelem, *nstars);
    236237
    237238  // Nelem is now the number of items (objects,stars) read from the Gaia CSV file
     
    307308    Nstars ++;
    308309
    309     if (NSTARS >= Nstars) {
     310    if (Nstars >= NSTARS) {
    310311      NSTARS += 10000;
    311312      REALLOCATE (stars, UKIRT_Stars, NSTARS);
  • trunk/Ohana/src/addstar/src/loadukirt_uhs_readstars_ulas.c

    r42077 r42131  
    415415        NELEM += 1000;
    416416
    417         REALLOCATE (sourceID,     uint64_t, NELEM);
     417        REALLOCATE (sourceID,     uint64_t, NELEM);   
    418418        REALLOCATE (frameSetID,   uint64_t, NELEM);
    419419        REALLOCATE (ra,           double,   NELEM);
    420420        REALLOCATE (dec,          double,   NELEM);
     421        REALLOCATE (epoch,        double,   NELEM);
    421422        REALLOCATE (priOrSec,     uint64_t, NELEM);
    422423        REALLOCATE (mergedClass,  int,      NELEM);
    423424        REALLOCATE (pStar,        double,   NELEM);
    424425        REALLOCATE (pGalaxy,      double,   NELEM);
     426
    425427        REALLOCATE (yHallMag,     double,   NELEM);
    426428        REALLOCATE (yHallMagErr,  double,   NELEM);
     
    433435        REALLOCATE (yppErrBits,   int,      NELEM);
    434436        REALLOCATE (ySeqNum,      int,      NELEM);
     437
    435438        REALLOCATE (j1HallMag,     double,   NELEM);
    436439        REALLOCATE (j1HallMagErr,  double,   NELEM);
     
    443446        REALLOCATE (j1ppErrBits,   int,      NELEM);
    444447        REALLOCATE (j1SeqNum,      int,      NELEM);
     448
    445449        REALLOCATE (j2HallMag,     double,   NELEM);
    446450        REALLOCATE (j2HallMagErr,  double,   NELEM);
     
    453457        REALLOCATE (j2ppErrBits,   int,      NELEM);
    454458        REALLOCATE (j2SeqNum,      int,      NELEM);
     459
    455460        REALLOCATE (hHallMag,     double,   NELEM);
    456461        REALLOCATE (hHallMagErr,  double,   NELEM);
     
    463468        REALLOCATE (hppErrBits,   int,      NELEM);
    464469        REALLOCATE (hSeqNum,      int,      NELEM);
     470
    465471        REALLOCATE (kHallMag,     double,   NELEM);
    466472        REALLOCATE (kHallMagErr,  double,   NELEM);
     
    479485    }
    480486  }
     487  fprintf (stderr, " DONE: Nelem: %d, *nstars: %d\n", Nelem, *nstars);
    481488
    482489  // Nelem is now the number of items (objects,stars) read from the Gaia CSV file
     
    633640    Nstars ++;
    634641
    635     if (NSTARS >= Nstars) {
     642    if (Nstars >= NSTARS) {
    636643      NSTARS += 10000;
    637644      REALLOCATE (stars, UKIRT_Stars, NSTARS);
Note: See TracChangeset for help on using the changeset viewer.