IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40771


Ignore:
Timestamp:
May 30, 2019, 8:30:40 PM (7 years ago)
Author:
eugene
Message:

regions not defined by the slit window are set to NAN

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20190329/src/opihi/mana/deimos_mkslit.c

    r40755 r40771  
    109109
    110110      // set the sky in the entire window
    111       out[ix + iy*Nx] = sky ? sky->elements.Flt[iy] : 0.0;
     111      out[ix + iy*Nx] = NAN;
    112112
    113113      // equivalent coord in the profile:
     
    117117
    118118      // a default value:
     119      float vsky = sky ? sky->elements.Flt[iy] : 0.0;
    119120      float vout = NAN;
    120121
     
    140141      if (flux) vout *= flux->elements.Flt[iy];
    141142
    142       out[ix + iy*Nx] += vout;
     143      out[ix + iy*Nx] = vsky + vout;
    143144    }
    144145  }
Note: See TracChangeset for help on using the changeset viewer.