I'm still a rookie with C and I'm calculating some thermodynamic parameters for meteorology and want to show the freezing levels. I can get it too show all heights that are 0 degrees C or lower... but I want it to only show the 1 or 2 levels that the temp changes from positive to zero or lower. Data file example would be
height temp 100 10 1000 -2 1500 5 2000 -7 2500 -15
I would want it to say there is a freezing level at 1000 and 2000 meters. Any help would be great!