Ignore:
Timestamp:
Mar 25, 2009 10:25:50 AM (15 years ago)
Author:
weinreis
Message:

NCL scripts profiles cross_sections ncl_preference and UserGuide? modified

File:
1 edited

Legend:

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

    r250 r267  
    7373   start_f(0) = start_f_1
    7474   end_f(0) = end_f_1   
    75      
    76    if (prof3d .EQ. -1)then
    77       print(" ")
    78       print("Set 'prof3d' to 0 or 1")
    79       print(" ")
    80       exit
    81    else
    82       if (prof3d .NE. 0 .AND. prof3d .NE. 1)then
    83          print(" ")
    84          print("'prof3d'= "+prof3d+" is invalid; set 'prof3d' to 0 or 1")
    85          print(" ")
    86          exit
    87       end if
    88    end if
    8975 
    9076   if (no_files .GT. 1) then
     
    372358   
    373359   vNam = getfilevarnames(f_att)
    374 
     360   
    375361   if (nof .EQ. 0)then
    376362      vNam0=vNam
     
    407393      print(" ")
    408394   end if
     395   
     396   prof3d = 0
     397   do varn = dim-1,0,1
     398      if ( isStrSubset( vNam(varn), "zu_3d") .OR. isStrSubset( vNam(varn), "zw_3d")) then
     399         prof3d = 1
     400         break
     401      end if
     402   end do
    409403
    410404   ;-----------------------------------------------------below steps only for first file -> nof=0
Note: See TracChangeset for help on using the changeset viewer.