Ignore:
Timestamp:
Aug 28, 2008 12:15:13 PM (17 years ago)
Author:
letzel
Message:
  • NCL scripts in trunk/SCRIPTS/NCL updated
File:
1 edited

Legend:

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

    r190 r194  
    66; load ncl_preferences.ncl
    77;***************************************************
     8
     9function which_script()
     10local script
     11begin
     12   script="spectra"
     13   return(script)
     14end
    815   
    916if (isfilepresent("~/ncl_preferences.ncl")) then
     
    2128   
    2229begin
    23      
    24    if (cross_sections .NE. 0 .OR. profiles .NE. 0 .OR. timeseries .NE. 0 .OR. spectra .NE. 1)then
    25       print(" ")
    26       print("Please specify the used script in 'ncl_preferences.ncl' (Line 7-10)")
    27       print(" ")
    28       print("Set 'spectra' equal 1 and the other variables equal 0")
    29       print(" ")
    30       exit
    31    end if
    3230
    3331   ;***************************************************
     
    339337      end do
    340338   end if
    341    
    342    step=round(235/(np-1),3)
    343    if (black .eq. 0 ) then 
    344       res@xyLineColors = ispan(2,237,step)
     339
     340   if (black .eq. 0 ) then
     341      if (np .EQ. 1)then
     342         res@xyLineColors = 237
     343      else   
     344         step=round(235/(np-1),3)
     345         res@xyLineColors = ispan(2,237,step)
     346      end if
    345347   end if
    346348   if ( dash .eq. 0 ) then
Note: See TracChangeset for help on using the changeset viewer.