Ignore:
Timestamp:
Oct 26, 2011 2:20:45 PM (11 years ago)
Author:
heinze
Message:

Bugfixes in case of plot of t=0h and plot of topography zusi/zwwi possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/NCL/timeseries.ncl

    r758 r769  
    195195   delta_t = t_all(nt-1)/nt
    196196
     197   if (nt .LE. 1) then
     198      print(" ")
     199      print("Input file contains only one time step -> " +\
     200            "plot of timeseries is not possible ")
     201      print(" ")
     202      exit
     203   end if
     204
    197205   ;****************************************************       
    198206   ; start of time step and different types of mistakes that could be done
     
    228236         st=i
    229237         break
     238       else
     239         st=0
    230240      end if
    231241   end do
     
    233243       start_time_step .LT. t_all(nt-1)) then
    234244      st=nt-2   
    235    end if
    236    if (.not. isvar("st"))then
    237       print(" ")
    238       print("'start_time_step' = "+ start_time_step +"h is invalid")
    239       print(" ")
    240       print("Select another 'start_time_step'")
    241       print(" ")
    242       exit
     245    else
     246      st=0
    243247   end if
    244248     
     
    286290         et=i
    287291         break
     292       else
     293         et=0
    288294      end if
    289295   end do
    290    
    291    if (.not. isvar("et"))then
    292       print(" ")
    293       print("'end_time_step' = "+ end_time_step +"h is invalid")
    294       print(" ")
    295       print("Select another 'end_time_step'")
    296       print(" ")
    297       exit
    298    end if
    299296 
    300297   delete(start_time_step)
Note: See TracChangeset for help on using the changeset viewer.