IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38979


Ignore:
Timestamp:
Oct 27, 2015, 3:56:23 PM (11 years ago)
Author:
eugene
Message:

gfits_fread_ftable_range now includes an option to not re-seek on each pass

Location:
branches/eam_branches/ipp-20150625/Ohana/src/libdvo/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150625/Ohana/src/libdvo/src/AstromOffsetMapIO.c

    r38693 r38979  
    5757    int i;
    5858    for (i = 0; i < Nblocks; i++) {
    59       if (!gfits_fread_ftable_range (f, FALSE, &ftable, i*Nrows, Nrows)) myAbort ("problem 2");
     59      if (!gfits_fread_ftable_range (f, FALSE, FALSE, &ftable, i*Nrows, Nrows)) myAbort ("problem 2");
    6060   
    6161      AstromOffsetMap_Disk_6x6 *map_disk = gfits_table_get_AstromOffsetMap_Disk_6x6 (&ftable, &Nmap, NULL, NULL);
  • branches/eam_branches/ipp-20150625/Ohana/src/libdvo/src/dvo_catalog_split.c

    r38667 r38979  
    554554    }
    555555    /* read Average table data : format is irrelevant here */
    556     if (!gfits_fread_ftable_range (catalog[0].f, FALSE, &ftable, start, Nrows)) {
     556    if (!gfits_fread_ftable_range (catalog[0].f, FALSE, FALSE, &ftable, start, Nrows)) {
    557557      if (VERBOSE) fprintf (stderr, "can't read table average data");
    558558      return (FALSE);
     
    584584    }
    585585    /* read Secfilt table data : format is irrelevant here */
    586     if (!gfits_fread_ftable_range (subcat[0].f, FALSE, &ftable, start*catalog[0].Nsecfilt, catalog[0].Naverage*catalog[0].Nsecfilt)) {
     586    if (!gfits_fread_ftable_range (subcat[0].f, FALSE, FALSE, &ftable, start*catalog[0].Nsecfilt, catalog[0].Naverage*catalog[0].Nsecfilt)) {
    587587      if (VERBOSE) fprintf (stderr, "can't read table measure data");
    588588      return (FALSE);
     
    620620    }
    621621    /* read Measure table data : format is irrelevant here */
    622     if (!gfits_fread_ftable_range (subcat[0].f, FALSE, &ftable, start, Nrows)) {
     622    if (!gfits_fread_ftable_range (subcat[0].f, FALSE, FALSE, &ftable, start, Nrows)) {
    623623      if (VERBOSE) fprintf (stderr, "can't read table measure data");
    624624      return (FALSE);
     
    651651    }
    652652    /* read Missing table data : format is irrelevant here */
    653     if (!gfits_fread_ftable_range (subcat[0].f, FALSE, &ftable, start, Nrows)) {
     653    if (!gfits_fread_ftable_range (subcat[0].f, FALSE, FALSE, &ftable, start, Nrows)) {
    654654      if (VERBOSE) fprintf (stderr, "can't read table missing data");
    655655      return (FALSE);
     
    685685    }
    686686    /* read Lensing table data : format is irrelevant here */
    687     if (!gfits_fread_ftable_range (subcat[0].f, FALSE, &ftable, start, Nrows)) {
     687    if (!gfits_fread_ftable_range (subcat[0].f, FALSE, FALSE, &ftable, start, Nrows)) {
    688688      if (VERBOSE) fprintf (stderr, "can't read table lensing data");
    689689      return (FALSE);
     
    716716    }
    717717    /* read Lensobj table data : format is irrelevant here */
    718     if (!gfits_fread_ftable_range (subcat[0].f, FALSE, &ftable, start, Nrows)) {
     718    if (!gfits_fread_ftable_range (subcat[0].f, FALSE, FALSE, &ftable, start, Nrows)) {
    719719      if (VERBOSE) fprintf (stderr, "can't read table lensobj data");
    720720      return (FALSE);
     
    747747    }
    748748    /* read StarPar table data : format is irrelevant here */
    749     if (!gfits_fread_ftable_range (subcat[0].f, FALSE, &ftable, start, Nrows)) {
     749    if (!gfits_fread_ftable_range (subcat[0].f, FALSE, FALSE, &ftable, start, Nrows)) {
    750750      if (VERBOSE) fprintf (stderr, "can't read table starpar data");
    751751      return (FALSE);
     
    778778    }
    779779    /* read GalPhot table data : format is irrelevant here */
    780     if (!gfits_fread_ftable_range (subcat[0].f, FALSE, &ftable, start, Nrows)) {
     780    if (!gfits_fread_ftable_range (subcat[0].f, FALSE, FALSE, &ftable, start, Nrows)) {
    781781      if (VERBOSE) fprintf (stderr, "can't read table galphot data");
    782782      return (FALSE);
Note: See TracChangeset for help on using the changeset viewer.