Changeset 529 for palm/trunk/SCRIPTS/NCL


Ignore:
Timestamp:
Mar 31, 2010 10:36:23 AM (15 years ago)
Author:
heinze
Message:

palmplot expects lists which are separated by blanks. The lists have to be enclosed in single quotes in the prompt.

Location:
palm/trunk/SCRIPTS/NCL
Files:
3 edited

Legend:

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

    r526 r529  
    15331533               vecres@gsnLeftString = "t=" + decimalPlaces(t_all(lo)/3600,2,True) +"h   "+level
    15341534            end if
    1535             vecres@tiXAxisString    = " "
    1536             if (xyc .EQ. 1)then 
     1535            if (xyc .EQ. 1) then 
     1536               vecres@tiXAxisString = "x [m]"
     1537               vecres@tiYAxisString = "y [m]"   
    15371538               if (sort .EQ. "time")then                                         
    15381539                  plot(n) = gsn_csm_vector(wks_ps,vect1(li,lo-los,:,:),vect2(li,lo-los,:,:),vecres)
     
    15421543            end if
    15431544            if (xzc .EQ. 1) then
     1545               vecres@tiXAxisString = "x [m]"
     1546               vecres@tiYAxisString = "z [m]"
    15441547               if (sort .EQ. "time")then
    15451548                  plot(n) = gsn_csm_vector(wks_ps,vect1(li,:,lo-los,:),vect2(li,:,lo-los,:),vecres)
     
    15491552            end if
    15501553            if (yzc .EQ. 1) then
     1554               vecres@tiXAxisString = "y [m]"
     1555               vecres@tiYAxisString = "z [m]"
    15511556               if (sort .EQ. "time")then
    15521557                  plot(n) = gsn_csm_vector(wks_ps,vect1(li,:,:,lo-los),vect2(li,:,:,lo-los),vecres)
     
    15621567   do varn=dim-1,0,1
    15631568
    1564       if (vector .EQ. 1) then   
     1569      if (vector .EQ. 1 ) then   
    15651570         check_vecp = isStrSubset( plotvec,","+vNam(varn)+",")
    15661571      end if
     
    16781683                        vecres@gsnLeftString    = " "             ; turn off left string
    16791684                        vecres@tiXAxisString    = " "   
    1680                         plot_vec=gsn_csm_vector(wks_ps,vect1(lo,li,:,:),vect2(lo,li,:,:),vecres)
     1685                        plot_vec=gsn_csm_vector(wks_ps,vect1(lo,li-lis,:,:),vect2(lo,li-lis,:,:),vecres)
    16811686                        overlay(plot(n), plot_vec)
    16821687                     end if
     
    18021807   ; merge plots onto one page
    18031808   ; ***************************************************   
    1804    if (vector .EQ. 1 .AND. plotvec .EQ. "plotvec")then
     1809   if (vector .EQ. 1 .AND. plotvec .EQ. "plotvec") then
    18051810      if ((format_out .EQ. "eps" .OR. format_out .EQ. "epsi") .AND. no_time*no_layer*(no_var+1) .gt. no_rows*no_columns) then
    18061811         gsn_panel(wks_ps,plot(0:(no_time*no_layer*(no_var+1))-1),(/no_var+1,no_layer*no_time/),cs_resP)
Note: See TracChangeset for help on using the changeset viewer.