<br><br><div class="gmail_quote">On Mon, Oct 11, 2010 at 1:13 AM, <span dir="ltr"><<a href="mailto:govindas@msu.edu">govindas@msu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">Hi,<br>
<br>
I am new to GrADS and I would like to get some info with my work. I have a gridded dataset *.grd, which I want to convert into ASCII file (or someother better format) to be able to do some statistical analysis with. here are my basic doubts.....<br>
<br>
1. is it possible that statistical analysis can be performed with *.grd file themselves?<br>
2. I have my other datasets in different formats like netcdf, ASCII - can I import such files into GrADS and work on my statistical analyses?<br>
3. As I am not familiar with GrADS and its functionalities, I was planning to do my analyses using R, in which case I want my .grd file converted into some other "R"-friendly format (I tried using some R packages/functions to convert gridded format into ASCII but, it did not work!)<br>
4. if possible, can I get some tutorials specific to above mentioned issues, and analyses like PCA, Time-Series analysis, lag auto-correlations and stuff..! I was going thro' some tutorials where I obtained basic info about reading the .ctl file and plotting out the variables (which helped me visualize my dataset actually!)<br>
<br>
Thanks,<br>
Mahalakshmi</div></div><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div>hi,<br> maha lakshmi i am also new user in this grads but i know some little bit of information about u had asked 2 nd question yes we import the netcdf files in to the grads just i had given ex: below<br>
'reinit'<br>outfile1='tke2.dat'<br>'sdfopen <a href="http://uwnd.2010.nc">uwnd.2010.nc</a>'<br>'sdfopen <a href="http://vwnd.2010.nc">vwnd.2010.nc</a>'<br>*'set lon -180 180'<br>*'set lat -90 90'<br>
'set lev 850'<br>tt=121<br>while(tt<=181)<br>'set t 'tt<br>'psi=fish_psi(uwnd,vwnd.2)'<br>'chi=fish_chi(uwnd,vwnd.2)'<br>*'F=2*7.292e-5*sin(lat*3.14/180)'<br>'dp=cdiff(psi,y)'<br>
'dy=cdiff(lat,y)*3.1416/180'<br>'dp=cdiff(psi,x)'<br>'dx=cdiff(lon,x)*3.1416/180'<br>'dc=cdiff(chi,y)'<br>'dy=cdiff(lat,y)*3.1416/180'<br>'dc=cdiff(chi,x)'<br>'dx=cdiff(lon,x)*3.141/180'<br>
'A=(((dp/dx)*(dp/dx))+((dp/dy)*(dp/dy)))/(2))'<br>'B=(((dc/dx)*(dc/dx))+((dc/dy)*(dc/dy)))/(2))'<br>'C=((A+B)/1e012)'<br>'d aave(C,lon=48,lon=72,lat=5,lat=25)'<br>*'d aave(vint(lev,C,100)/1e03,lon=30,lon=150,lat=-30,lat=40)'<br>
say result<br>rec1=subwrd(result,4)<br>rc=write(outfile1,rec1)<br>tt=tt+1<br>endwhile<br> i will use above the file for yhe calculati ng the energy. here i used a .nc file is input and .dat file format as output it gives the calculated values.<br>
and i suggest to u please verify the grads reference card is there i might so help ful for u<br>if there is any complications are there above file please mail me <br>best regards<br>sravani<br><br clear="all"><br>-- <br><font style="font-family: arial,helvetica,sans-serif;" size="2"><span style="color: rgb(255, 102, 102);">A.Sravani</span><br>
</font><font style="font-family: arial,helvetica,sans-serif;" color="#3366ff" size="2">Research Scholar</font><font style="font-family: arial,helvetica,sans-serif;" size="2"><br><span style="color: rgb(51, 51, 255);">Department of Meteorology & Oceanography</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">Andhra university</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">Visakhapatnam</span></font><br><br>