Ignore:
Timestamp:
Apr 29, 2010 1:58:28 PM (14 years ago)
Author:
heinze
Message:

Bugfix in spectra.ncl concerning output in png and small changes in layout

File:
1 edited

Legend:

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

    r532 r534  
    401401      plot  = new(dim*dimz,graphic)
    402402      np=dimt
    403       res@lgTitleString = "Time [h]"
     403      res@lgTitleString = "Time (h)"
    404404   else
    405405      plot  = new(dim*dimt,graphic)
     
    463463         a=getvardims(temp_att)
    464464         b=dimsizes(a)
     465         delete(temp_att)
    465466
    466467         if (height_level(0) .NE. -1)then
     
    506507            end do
    507508            if (norm_x .NE. 1.)then
    508                res@tiXAxisString = "k~B~x~N~ ["+unit_x+"]"
     509               res@tiXAxisString = "k~B~x~N~ ("+unit_x+")"
    509510            else
    510511               if (norm_height .EQ. 1)then
    511                   res@tiXAxisString = "k~B~x~N~ x z [1]"
     512                  res@tiXAxisString = "k~B~x~N~ x z (1"
    512513               else
    513                   res@tiXAxisString = "k~B~x~N~ [1/m]"
     514                  res@tiXAxisString = "k~B~x~N~ (1/m)"
    514515               end if
    515516            end if
     
    522523            end do
    523524            if (norm_x .NE. 1.)then
    524                res@tiXAxisString = "k~B~x~N~ ["+unit_x+"]"
     525               res@tiXAxisString = "k~B~x~N~ ("+unit_x+")"
    525526            else
    526527               if (norm_height .EQ. 1)then
    527                   res@tiXAxisString = "k~B~x~N~ x z [1]"
     528                  res@tiXAxisString = "k~B~x~N~ x z (1)"
    528529               else
    529                   res@tiXAxisString = "k~B~x~N~ [1/m]"
     530                  res@tiXAxisString = "k~B~x~N~ (1/m)"
    530531               end if
    531532            end if
     
    557558               res@gsnLeftString      = vNam(varn)
    558559               res@gsnRightString     = "Height = "+z(p)+"m"               
    559                res@tiYAxisString      = "["+unit_y+"]"           
     560               res@tiYAxisString      = "("+unit_y+")"           
    560561               res@xyExplicitLegendLabels  = legend_label             
    561562               if (norm_height .EQ. 1)then
     
    596597                     end if
    597598                     if (q .EQ. 0)then
    598                         res@tiYAxisString      = "["+unit_y+"]"                 
     599                        res@tiYAxisString      = "("+unit_y+")"                 
    599600                        res@gsnLeftString      = vNam(varn)
    600601                        res@gsnRightString     = "Time = "+legend_label(p)+"h"
     
    617618                           lgres@lgLineColors = color
    618619                        end if
    619                         lgres@lgTitleString = "Height [m]
     620                        lgres@lgTitleString = "Height (m)
    620621                        lgres@lgLabelFont        = "helvetica"
    621                         lgres@lgLabelFontHeightF     = font_size_legend
     622                        lgres@lgLabelFontHeightF     = font_size_legend*6
    622623                        lgres@lgTitleFontHeightF     = font_size     
    623624                        lgres@vpWidthF           = 0.12           
    624                         lgres@vpHeightF          = font_size_legend/5*dimz           
     625                        lgres@vpHeightF          = font_size_legend*(dimz+3)           
    625626 
    626627                        lbid = gsn_create_legend(wks,dimz,legend_label_z,lgres)       
     
    669670   resP@txFontHeightF          = 0.015
    670671
     672   no_frames = 0
     673
    671674   if ((format_out .EQ. "eps" .OR. format_out .EQ. "epsi") .AND. n .gt. no_rows*no_columns) then
    672675      gsn_panel(wks,plot,(/n,1/),resP)
     
    678681         if( (i+no_rows*no_columns) .gt. (n-1)) then
    679682            gsn_panel(wks,plot(i:n-1),(/no_rows,no_columns/),resP)
     683            no_frames = no_frames + 1
    680684         else
    681            gsn_panel(wks,plot(i:i+no_rows*no_columns-1),(/no_rows,no_columns/),resP)
     685            gsn_panel(wks,plot(i:i+no_rows*no_columns-1),(/no_rows,no_columns/),resP)
     686            no_frames = no_frames + 1   
    682687         end if
    683688      end do
Note: See TracChangeset for help on using the changeset viewer.