return status from command "open"

Daniel Fritz prodicalboxer at YAHOO.COM
Mon Sep 17 09:31:42 EDT 2007


hello everyone,
    could someone help me?  I have downloaded some data from the NCAR(DSS, CISL) website site because I am tracking hurricanes for a project . When I got my dataset(sept1 -30, 2005 and oct 1 -30 2005) the file is mget_ds0830_fnl.tar  ........I had to untar this data and it gave me a Y62277*  ......when I ran this Y62277* it was data which would be unreadable........I assume that this is a grib file...but when I tried to convert grib to ctl(Y62277*.ctl) when I opened it, there was nothing in it.....I am trying to run these files in grads......so get a display of the track of the Hurricane....am I using the right path???  after I untar this data set what is my absolute path??? when I tried to type in a script to run it in grads , there was an error....
                   Danny

Jennifer Adams <jma at COLA.IGES.ORG> wrote:
  Here's how the GDS does it:



  function gopen(dataset)
  'sdfopen 'dataset
  if (!rc); say 'file opened with sdfopen'; return; endif
  'xdfopen 'dataset
  if (!rc); say 'file opened with xdfopen'; return; endif
  'open 'dataset
  if (!rc); say 'file opened with open'; return; endif
  say "error: couldn't open " dataset




  ga-> gopen file.ctl


  --
  Jennifer M. Adams
  IGES/COLA
  4041 Powder Mill Road, Suite 302
  Calverton, MD 20705
  jma at cola.iges.org




      On Sep 17, 2007, at 4:26 AM, bernd.becker at METOFFICE.GOV.UK wrote:

    Hello,


  Can I sway "open" to return something to figure
  if the file.ctl in question exists or not?


  iostat='open bob.ctl'


  say 'iostat for bob is :'iostat


  --> iostat for bob is : bob.ctl not found'


  or similar.


  many thanks,
  Bernd.






  --
  Bernd Becker   The Monthly Outlook
  Met Office  FitzRoy Road  Exeter   Devon EX1 3PB  United Kingdom
  Tel.: +44 (0) 1392 884511 Fax: +44 (0)870 900 5050
  E-mail:bernd.becker at metoffice.gov.uk -  http://www.metoffice.gov.uk









---------------------------------
Yahoo! oneSearch: Finally,  mobile search that gives answers, not web links.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20070917/c540058f/attachment.html 


More information about the gradsusr mailing list