[gradsusr] Dear all

Marsh, Kieren [FGUAE] k.marsh at fugro-uae.com
Wed Jun 3 08:21:03 EDT 2015


You need to find the file number of the netcdf file you have open then issue the close statement on that number:
‘sdfopen x.nc’
GrADS will return:
SDF file x.nc is open as file X  ----- where X is the next number in sequnce of the files you have open
So immediately after opening the file in your script you need to grab the file number with:
‘line=sublin(result, 2)’
’fileno = subwrd(line, 8)’

Issue all the other commands in your script then close with:
‘close ‘fileno

From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of ???
Sent: 03 June 2015 16:07
To: GrADS Users Forum
Subject: [gradsusr] Dear all


I want to close netcdf file which is opened by 'sdfopen' statement.



I know close(filename) statement, but this command is only valid for binary files.



How can I close netcdf file in grads?



Thanks
[Image removed by sender.]


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20150603/aa649607/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ~WRD000.jpg
Type: image/jpeg
Size: 823 bytes
Desc: ~WRD000.jpg
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20150603/aa649607/attachment-0001.jpg 


More information about the gradsusr mailing list