Skip to the navigation links
Last modified: 24 October 2023

URL: https://cxc.cfa.harvard.edu/ciao/bugs/tg_findzo.html

Bugs: tg_findzo


Bugs

RuntimeWarning: invalid value

Some level 1 event files may contain energy and/or sky values set to NaN. This leads to warninings from tg_findzo like the following:

    /soft/ciao-4.9/binexe/tg_findzo:692: RuntimeWarning: invalid value
    encountered in greater
       & ( p.E_v < p.energy_filter_high ))
    /soft/ciao-4.9/binexe/tg_findzo:692: RuntimeWarning: invalid value
    encountered in less
       & ( p.E_v < p.energy_filter_high ))
    /soft/ciao-4.9/binexe/tg_findzo:752: RuntimeWarning: invalid value
    encountered in greater
       & ( p.E_v < p.energy_filter_high ))
    /soft/ciao-4.9/binexe/tg_findzo:752: RuntimeWarning: invalid value
    encountered in less
       & ( p.E_v < p.energy_filter_high ))
    /soft/ciao-4.9/binexe/tg_findzo:813: RuntimeWarning: invalid value
    encountered in greater
       & ( p.E_v < p.energy_m ) ) # 8000.
    /soft/ciao-4.9/binexe/tg_findzo:813: RuntimeWarning: invalid value
    encountered in less
       & ( p.E_v < p.energy_m ) ) # 8000.
    /soft/ciao-4.9/binexe/tg_findzo:891: RuntimeWarning: invalid value
    encountered in greater
       & ( p.E_v< p.energy_m ) ) # 8000.
    /soft/ciao-4.9/binexe/tg_findzo:891: RuntimeWarning: invalid value
    encountered in less
       & ( p.E_v< p.energy_m ) ) # 8000.
    /soft/ciao-4.9/binexe/tg_findzo:926: RuntimeWarning: invalid value
    encountered in less
       wsi = np.where( np.hypot( p.X_v - p.x_zo, p.Y_v - p.y_zo ) < p.radius_zo ) 

The events with NaN values are filtered out anyway, so the above warnings are OK.