Changeset 42131
- Timestamp:
- Mar 21, 2022, 12:05:22 PM (4 years ago)
- Location:
- trunk/Ohana/src/addstar
- Files:
-
- 5 edited
-
include/ukirt_uhs.h (modified) (1 diff)
-
src/loadukirt_uhs_readstars_ugcs.c (modified) (8 diffs)
-
src/loadukirt_uhs_readstars_ugps.c (modified) (7 diffs)
-
src/loadukirt_uhs_readstars_uhs.c (modified) (2 diffs)
-
src/loadukirt_uhs_readstars_ulas.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/include/ukirt_uhs.h
r42077 r42131 3 3 4 4 # define NSTARS_MAX 10000000 5 //# define NSTARS_MAX 5000 5 6 // # define NSTARS_MAX 10 6 7 -
trunk/Ohana/src/addstar/src/loadukirt_uhs_readstars_ugcs.c
r42077 r42131 467 467 NELEM += 1000; 468 468 469 REALLOCATE (sourceID, uint64_t, NELEM); 469 REALLOCATE (sourceID, uint64_t, NELEM); 470 470 REALLOCATE (frameSetID, uint64_t, NELEM); 471 471 REALLOCATE (ra, double, NELEM); 472 472 REALLOCATE (dec, double, NELEM); 473 REALLOCATE (epoch, double, NELEM); 473 474 REALLOCATE (priOrSec, uint64_t, NELEM); 474 475 REALLOCATE (mergedClass, int, NELEM); 475 476 REALLOCATE (pStar, double, NELEM); 476 477 REALLOCATE (pGalaxy, double, NELEM); 478 477 479 REALLOCATE (zHallMag, double, NELEM); 478 480 REALLOCATE (zHallMagErr, double, NELEM); … … 485 487 REALLOCATE (zppErrBits, int, NELEM); 486 488 REALLOCATE (zSeqNum, int, NELEM); 489 487 490 REALLOCATE (yHallMag, double, NELEM); 488 491 REALLOCATE (yHallMagErr, double, NELEM); … … 495 498 REALLOCATE (yppErrBits, int, NELEM); 496 499 REALLOCATE (ySeqNum, int, NELEM); 500 497 501 REALLOCATE (jHallMag, double, NELEM); 498 502 REALLOCATE (jHallMagErr, double, NELEM); … … 505 509 REALLOCATE (jppErrBits, int, NELEM); 506 510 REALLOCATE (jSeqNum, int, NELEM); 511 507 512 REALLOCATE (hHallMag, double, NELEM); 508 513 REALLOCATE (hHallMagErr, double, NELEM); … … 515 520 REALLOCATE (hppErrBits, int, NELEM); 516 521 REALLOCATE (hSeqNum, int, NELEM); 522 517 523 REALLOCATE (k1HallMag, double, NELEM); 518 524 REALLOCATE (k1HallMagErr, double, NELEM); … … 525 531 REALLOCATE (k1ppErrBits, int, NELEM); 526 532 REALLOCATE (k1SeqNum, int, NELEM); 533 527 534 REALLOCATE (k2HallMag, double, NELEM); 528 535 REALLOCATE (k2HallMagErr, double, NELEM); … … 541 548 } 542 549 } 550 fprintf (stderr, " DONE: Nelem: %d, *nstars: %d\n", Nelem, *nstars); 543 551 544 552 // Nelem is now the number of items (objects,stars) read from the Gaia CSV file … … 715 723 Nstars ++; 716 724 717 if (N STARS >= Nstars) {725 if (Nstars >= NSTARS) { 718 726 NSTARS += 10000; 719 727 REALLOCATE (stars, UKIRT_Stars, NSTARS); -
trunk/Ohana/src/addstar/src/loadukirt_uhs_readstars_ugps.c
r42077 r42131 388 388 NELEM += 1000; 389 389 390 REALLOCATE (sourceID, uint64_t, NELEM); 390 REALLOCATE (sourceID, uint64_t, NELEM); 391 391 REALLOCATE (frameSetID, uint64_t, NELEM); 392 392 REALLOCATE (ra, double, NELEM); 393 393 REALLOCATE (dec, double, NELEM); 394 REALLOCATE (epoch, double, NELEM); 394 395 REALLOCATE (priOrSec, uint64_t, NELEM); 395 396 REALLOCATE (mergedClass, int, NELEM); 396 397 REALLOCATE (pStar, double, NELEM); 397 398 REALLOCATE (pGalaxy, double, NELEM); 399 398 400 REALLOCATE (jAperMag1, double, NELEM); 399 401 REALLOCATE (jAperMag1Err, double, NELEM); … … 406 408 REALLOCATE (jppErrBits, int, NELEM); 407 409 REALLOCATE (jSeqNum, int, NELEM); 410 408 411 REALLOCATE (hAperMag1, double, NELEM); 409 412 REALLOCATE (hAperMag1Err, double, NELEM); … … 416 419 REALLOCATE (hppErrBits, int, NELEM); 417 420 REALLOCATE (hSeqNum, int, NELEM); 421 418 422 REALLOCATE (k1AperMag1, double, NELEM); 419 423 REALLOCATE (k1AperMag1Err, double, NELEM); … … 426 430 REALLOCATE (k1ppErrBits, int, NELEM); 427 431 REALLOCATE (k1SeqNum, int, NELEM); 432 428 433 REALLOCATE (k2AperMag1, double, NELEM); 429 434 REALLOCATE (k2AperMag1Err, double, NELEM); … … 436 441 REALLOCATE (k2ppErrBits, int, NELEM); 437 442 REALLOCATE (k2SeqNum, int, NELEM); 443 438 444 REALLOCATE (h2AperMag1, double, NELEM); 439 445 REALLOCATE (h2AperMag1Err, double, NELEM); … … 452 458 } 453 459 } 460 fprintf (stderr, " DONE: Nelem: %d, *nstars: %d\n", Nelem, *nstars); 454 461 455 462 // Nelem is now the number of items (objects,stars) read from the Gaia CSV file … … 606 613 Nstars ++; 607 614 608 if (N STARS >= Nstars) {615 if (Nstars >= NSTARS) { 609 616 NSTARS += 10000; 610 617 REALLOCATE (stars, UKIRT_Stars, NSTARS); -
trunk/Ohana/src/addstar/src/loadukirt_uhs_readstars_uhs.c
r42077 r42131 234 234 } 235 235 } 236 fprintf (stderr, " DONE: Nelem: %d, *nstars: %d\n", Nelem, *nstars); 236 237 237 238 // Nelem is now the number of items (objects,stars) read from the Gaia CSV file … … 307 308 Nstars ++; 308 309 309 if (N STARS >= Nstars) {310 if (Nstars >= NSTARS) { 310 311 NSTARS += 10000; 311 312 REALLOCATE (stars, UKIRT_Stars, NSTARS); -
trunk/Ohana/src/addstar/src/loadukirt_uhs_readstars_ulas.c
r42077 r42131 415 415 NELEM += 1000; 416 416 417 REALLOCATE (sourceID, uint64_t, NELEM); 417 REALLOCATE (sourceID, uint64_t, NELEM); 418 418 REALLOCATE (frameSetID, uint64_t, NELEM); 419 419 REALLOCATE (ra, double, NELEM); 420 420 REALLOCATE (dec, double, NELEM); 421 REALLOCATE (epoch, double, NELEM); 421 422 REALLOCATE (priOrSec, uint64_t, NELEM); 422 423 REALLOCATE (mergedClass, int, NELEM); 423 424 REALLOCATE (pStar, double, NELEM); 424 425 REALLOCATE (pGalaxy, double, NELEM); 426 425 427 REALLOCATE (yHallMag, double, NELEM); 426 428 REALLOCATE (yHallMagErr, double, NELEM); … … 433 435 REALLOCATE (yppErrBits, int, NELEM); 434 436 REALLOCATE (ySeqNum, int, NELEM); 437 435 438 REALLOCATE (j1HallMag, double, NELEM); 436 439 REALLOCATE (j1HallMagErr, double, NELEM); … … 443 446 REALLOCATE (j1ppErrBits, int, NELEM); 444 447 REALLOCATE (j1SeqNum, int, NELEM); 448 445 449 REALLOCATE (j2HallMag, double, NELEM); 446 450 REALLOCATE (j2HallMagErr, double, NELEM); … … 453 457 REALLOCATE (j2ppErrBits, int, NELEM); 454 458 REALLOCATE (j2SeqNum, int, NELEM); 459 455 460 REALLOCATE (hHallMag, double, NELEM); 456 461 REALLOCATE (hHallMagErr, double, NELEM); … … 463 468 REALLOCATE (hppErrBits, int, NELEM); 464 469 REALLOCATE (hSeqNum, int, NELEM); 470 465 471 REALLOCATE (kHallMag, double, NELEM); 466 472 REALLOCATE (kHallMagErr, double, NELEM); … … 479 485 } 480 486 } 487 fprintf (stderr, " DONE: Nelem: %d, *nstars: %d\n", Nelem, *nstars); 481 488 482 489 // Nelem is now the number of items (objects,stars) read from the Gaia CSV file … … 633 640 Nstars ++; 634 641 635 if (N STARS >= Nstars) {642 if (Nstars >= NSTARS) { 636 643 NSTARS += 10000; 637 644 REALLOCATE (stars, UKIRT_Stars, NSTARS);
Note:
See TracChangeset
for help on using the changeset viewer.
