Changeset 432 in Sophya for trunk/Poubelle/archTOI.old/archtoi.cc


Ignore:
Timestamp:
Sep 24, 1999, 4:06:09 PM (26 years ago)
Author:
ansari
Message:

en cours

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Poubelle/archTOI.old/archtoi.cc

    r426 r432  
    5454  format = ascii_fmt;
    5555  undef  = "#";
     56  undefV = -99999;
    5657  allBolos = false;
    5758  fptr = NULL;
     
    9293  } else if (key == "#UNDEF") {
    9394    undef=arg;
     95    if (undef[0] >= '0' && undef[0] <= '9')
     96      undefV = atoi(undef.c_str());
    9497  } else if (key == "#ALLBOLOS") {
    9598    allBolos=true;
     
    316319
    317320void ArchTOI::outValue_F(int icolumn, double value, bool notdef) {
     321  if (notdef && undef != "#") {
     322    notdef = false;
     323    value = undefV;
     324  }
    318325  if (notdef) {
    319326    fits_write_col_null(fptr, icolumn+1, fitsLine, 1, 1, &fitsStatus);
Note: See TracChangeset for help on using the changeset viewer.