Opened 9 years ago

Last modified 9 years ago

#439 accepted defect

Segmentation fault on occultations with negative refrac at high altitudes

Reported by: Stig Syndergaard Owned by: Stig Syndergaard
Priority: normal Milestone: DMI ROPP developments
Component: ropp_pp Version: 7.1
Keywords: Cc:

Description

In a few cases (two found), the refractivity, even after stat.opt., is negative at around 100 km. This cause trouble downstream in the codes, with log taken to negative values, and eventually result in a large array index (largest negative integer possible), and then the crash.

The trouble starts in ropp_pp_invert_refraction.f90, line 144, where the scale height becomes NaN:

scale = -(impact_nh(n+nh) - impact_nh(3*(n+nh)/4)) / &

(LOG(bangle_nh(n+nh)) - LOG(bangle_nh(3*(n+nh)/4)))

And ends with a crash in ropp_pp_tdry.f90, where KZ becomes -2147483648.

The problem should be solved by checking the refractivity at an early stage, and stop there. A long term solution would be a better stat.opt., less sensitive to the noise from ionospheric scintillations.

Attachments (2)

occ_20140821_171445_C001_G031_O_2200.nc (819.4 KB ) - added by Stig Syndergaard 9 years ago.
occ_20150429_061417_C001_G014_O_2200.nc (675.8 KB ) - added by Stig Syndergaard 9 years ago.

Download all attachments as: .zip

Change history (3)

by Stig Syndergaard, 9 years ago

by Stig Syndergaard, 9 years ago

comment:1 by Stig Syndergaard, 9 years ago

Status: newaccepted
Note: See TracTickets for help on using tickets.