Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions codebase/superdarn/src.lib/tk/fitacf_v3.0/src/fitting.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,12 @@ void calculate_phase_sigma(llist_node phase, llist_node range, FITPRMS *fit_prms
pwr = exp(-1 * fabs(range_node->l_pwr_fit->b) * phase_node->t);
inverse_pwr_2 = 1/(pwr * pwr);
phase_node->sigma = sqrt((inverse_alpha_2 * inverse_pwr_2 - 1)/(2 * fit_prms->nave));
if(isnan(phase_node->sigma)){
// TODO: Figure out why this is here and if something should be done if nan values appear
/* if(isnan(phase_node->sigma)){
fprintf(stderr,"range: %d, inverse_alpha: %f, pwr slope: %f, pwr: %f, inverse pwr: %f\n",
range_node->range,inverse_alpha_2, range_node->l_pwr_fit->b,pwr,inverse_pwr_2);
}

*/
}

/**
Expand Down
Loading