exporting to Excel...

See Hai Ooi axl419 at YAHOO.COM
Sun Jun 11 06:04:11 EDT 2006


Hi Loic,

   I use window version of GrADS. I hope my following
script based on the guidance by Diane and also the
attached Excel output file can be of some help to you.
 You can use the set prnopts to format your desired
output.

*
  'reinit'
*
  'sdfopen d:\cdc\slp\slp.2004.nc'
  filename='c:\010506gs\product\testbis.xls'
*
  'set gxout print'
  'set prnopts %6.1f 5 2'
*
  'set lat 0 30'
  'set lon 90 100'
  'set t 1 12'
  'd slp/100'
  res=result
  rc=write(filename,res)
*
  rc=close(filename)
*

   Best regards.



OOI See-hai
Malaysia



Send instant messages to your online friends http://uk.messenger.yahoo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testbis.xls
Type: application/vnd.ms-excel
Size: 7094 bytes
Desc: 2353046037-testbis.xls
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20060611/67e9c8c0/attachment.xls 


More information about the gradsusr mailing list