G-RSM comes with a number of utilities that facilitate your work. Most utilities are located in libs/etc.
incdte (in libs/etc): returns a new date from the starting date and the number of hours from the starting date. (Usage: $ incdte year month day hour hours_from_start)
GrADS has a function hdivg [horizontal divergence]. Hideki