EoRImaging / eppsilon

eppsilon - error propagated power spectrum with interleaved observed noise
BSD 2-Clause "Simplified" License
5 stars 4 forks source link

Error associated with 2d plots with 1d mask #42

Closed bhazelton closed 6 years ago

bhazelton commented 6 years ago

with uvf_input when you have a lot of zeros in the uv plane, you get some errors with making 2d plots for 1d masking. Here's an example error output:

Output file located here: /nfs/mwa-04/r1/EoRuvfits/analysis/fhd_nb_sim_uvf_pskspan300_v2_noflags_ann100/ps_uvf/plots/fhd_nb_sim_uvf_pskspan300_v2_noflags_ann100_uvf_1061316296_averemove_bh_kperplambda10-50_1dkpower.png
% KPOWER_1D_PLOTS: No non-zero power
% Execution halted at: KPOWER_1D_PLOTS   384 /nfs/eor-00/h1/nbarry/MWA/IDL_code/PS/ps_core/kpower_1d_plots.pro
%                      PS_MAIN_PLOTS    1358 /nfs/eor-00/h1/nbarry/MWA/IDL_code/PS/ps_core/ps_main_plots.pro
%                      PS_WRAPPER        173 /nfs/eor-00/h1/nbarry/MWA/IDL_code/PS/ps_wrappers/ps_wrapper.pro
%                      PS_FILENAMES      864 /nfs/eor-00/h1/nbarry/MWA/IDL_code/PS/ps_wrappers/ps_filenames.pro
%                      PS_WRAPPER         79 /nfs/eor-00/h1/nbarry/MWA/IDL_code/PS/ps_wrappers/ps_wrapper.pro
%                      $MAIN$          
% Program caused arithmetic error: Floating divide by 0
bhazelton commented 6 years ago

fixed in latest PR