Advertisement
forensicmeteoboy

grads RTMA tmp plot (for gradsusr mailing list)

Sep 3rd, 2011
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. * this is a sample script
  2. 'reinit'
  3. 'clear'
  4. 'set font 0'
  5. 'open rtma.23z.ctl'
  6. 'set lat 35 45'
  7. 'set lon -85 -70'
  8. 'set grid off'
  9. 'set mpdraw off'
  10. * data stuff
  11. 'tempf = ( (9/5) * (tmp2m - 273) ) + 32'
  12. 'dptf = ( (9/5) * (dpt2m - 273) ) + 32'
  13. * graphics stuff
  14. 'set gxout shaded'
  15. *'set cint 4' - I think this doesn't matter
  16. * call color bar stuff
  17. 'run r/colorbar.gs'
  18. 'set clevs 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90'
  19. 'set ccols 15 16 17 18 19 36 38 40 41 43 44 45 46 48 50 51 53 55 57 58 60 62 63 64 65 0'
  20. * display stuff
  21. 'q time'
  22. *timeinfo=result
  23. hr=substr(result, 8, 2)
  24. day=substr(result, 11, 10)
  25. 'set grads off'
  26. 'set display color white'
  27. * THE MAP SHALL BE DISPLAYED!
  28. * 'display smth9(tempf)' ** this went horribly wrong
  29. 'd tempf'
  30. 'run r/cbaro.gs 2'
  31. ****
  32. 'set gxout contour'
  33. 'set clevs 50 55 60 65 70'
  34. 'set ccols 15 12 10 13 3'
  35. 'set cthick 10'
  36. 'set clab masked'
  37. 'set csmooth on'
  38. 'd dptf'
  39. * gis
  40. *'set line 99 1 1'
  41. *'draw shp counties'
  42. 'set line 1 1 3'
  43. 'draw shp states'
  44. 'draw title 'hr
  45. *'draw string 1 2'hr
  46. *'draw string 1 5'day
  47. 'printim out/RTMA_TMP_'day'_'hr'.png'
  48. 'clear'
  49. 'quit'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement