[gradsusr] Create nc file

Sujata Mandke amin at tropmet.res.in
Mon May 27 01:36:43 EDT 2019


Hello! 
You can create .nc file 
containing time series 
of variable at a grid point as follows 

If the long of the grid point for 
which you wish to write time 
series of variables is say 75E 
and latitude is 20N and variable name is var, 
and time series you wish to write is from t=1 to t=100 
then following are steps to write output in .nc file 

'set lon 75' 
'set lat 25' 
'set t 1 100' 
'set undef dfile' 
'define xx='var 
'sdfwrite xx' 

I do not know how to write 8 variables 
in the same file. 
Try defining all 8 variables with 
different names such as 
xx1, xx2, xx3, xx4,xx5,xx6,xx7 and xx8 
(similar to that defined for xx above) 
and then use separate sdfwrite for 
all the 8 defined 8 . 

Above procedure writes variables in 
"double" format in .nc file. 
If you wish write variables in "float" format 
then use following before sdfwrite. 
'set sdfwrite -flt outfilname.nc' 

Hope this is what you want. 
With best regards 
Dr.(Mrs) Sujata K. Mandke 
Scientist, Indian Institute of Tropical Meteorology, 
Pashan, PUNE-411007, INDIA 

From: "ma_mosaffa" <ma_mosaffa at ut.ac.ir> 
To: "gradsusr" <gradsusr at gradsusr.org> 
Sent: Sunday, May 26, 2019 11:41:02 PM 
Subject: [gradsusr] Create nc file 



Hi, 

I have a question, In special location (lat. long. ) I want to create .nc file time series of 8 variables 

How can i create .nc file? 

















































































































































































_______________________________________________ 
gradsusr mailing list 
gradsusr at gradsusr.org 
http://gradsusr.org/mailman/listinfo/gradsusr 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20190527/28fc1a7a/attachment.html>


More information about the gradsusr mailing list