xdenisx

meteo_symbol_ncl

Nov 13th, 2013
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
  2. load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
  3. ;
  4. ; Draw station model data.
  5. ;
  6. begin
  7.  
  8. print("x = " + x)
  9. print("filename = " + filename)
  10. ;
  11. ; Define a color map and open a workstation.
  12. ;
  13. cmap = (/ \
  14. (/ 1., 1., 1. /), \ ; color index 0 - white
  15. (/ 0., 0., 0. /) \ ; color index 1 - black
  16. /)
  17.  
  18. wks = gsn_open_wks("ps", filename)
  19. gsn_define_colormap(wks,cmap)
  20. res = True
  21. res@gsnMaximize = True
  22.  
  23. data_test = x
  24.  
  25. ;NP-39 2011-09-29-00
  26. ;UFTA 29001 99840 71499 41997 72002 11092 21104 49989 54000 77172 87050 333 21093=
  27. ; 41997 72002 11092 21104 30000 49989 54000 60000 77172 87050
  28. ; 41997 72002 11092 21104 30000 49989 54000 60000 72002 87050
  29. ; imdat 11212 83320 10011 20000 30000 40147 52028 60111 77060 86792
  30. np39dat = "41997720021109221104300004998954000600007717287050"
  31.  
  32. ;Resolution
  33. wmsetp("wbs",0.017)
  34.  
  35. ;Correct visibility
  36. wmsetp("VVC",1)
  37.  
  38. ;Metric system
  39. wmsetp("UNT",1)
  40. wmstnm(wks,0.5,0.5,data_test)
  41.  
  42. frame(wks)
  43. end
Advertisement
Add Comment
Please, Sign In to add comment