Ignore:
Timestamp:
Oct 14, 2010 11:15:06 AM (12 years ago)
Author:
heinze
Message:

Bugfix: enable plot of data if it is of kind double instead of kind float

File:
1 edited

Legend:

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

    r566 r585  
    203203   
    204204   vNam = getfilevarnames(f_att)
     205   vType = getfilevartypes(f_att,vNam)
     206
     207   if ((all(vType .eq. "double"))) then ;distinction if data is double or float
     208      check_vType = True
     209   else
     210      check_vType = False
     211   end if
     212
    205213   print(" ")
    206214   print("Variables in input file:")
     
    530538         end do 
    531539         
     540         if (check_vType) then
     541            min_y=new(dimz,double)
     542            max_y=new(dimz,double)
     543         else
     544            min_y=new(dimz,float)
     545            max_y=new(dimz,float)
     546         end if
    532547         min_x=new(dimz,double)
    533548         max_x=new(dimz,double)
    534          min_y=new(dimz,float)
    535          max_y=new(dimz,float)
     549         
    536550         plot_h  = new(dimz,graphic)
    537551         
Note: See TracChangeset for help on using the changeset viewer.