<p> thank you for the script and I shall try it out!</p>
<p class="imp-signature"><!--begin_signature-->Thanks,<br />
Mahalakshmi<!--end_signature--></p>
Quoting SRAVANI A <srisravani.a@gmail.com>:<br />
<br />
> On Mon, Oct 11, 2010 at 1:13 AM, <govindas@msu.edu> wrote:<br />
><br />
>> Hi,<br />
>><br />
>> I am new to GrADS and I would like to get some info with my work. I have a<br />
>> gridded dataset *.grd, which I want to convert into ASCII file (or someother<br />
>> better format) to be able to do some statistical analysis with. here are my<br />
>> basic doubts.....<br />
>><br />
>> 1. is it possible that statistical analysis can be performed with *.grd<br />
>> file themselves?<br />
>> 2. I have my other datasets in different formats like netcdf, ASCII - can I<br />
>> 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<br />
>> to do my analyses using R, in which case I want my .grd file converted into<br />
>> some other "R"-friendly format (I tried using some R packages/functions to<br />
>> convert gridded format into ASCII but, it did not work!)<br />
>> 4. if possible, can I get some tutorials specific to above mentioned<br />
>> issues, and analyses like PCA, Time-Series analysis, lag auto-correlations<br />
>> and stuff..! I was going thro' some tutorials where I obtained basic info<br />
>> about reading the .ctl file and plotting out the variables (which helped me<br />
>> visualize my dataset actually!)<br />
>><br />
>> Thanks,<br />
>> Mahalakshmi<br />
>><br />
>> _______________________________________________<br />
>> gradsusr mailing list<br />
>> gradsusr@gradsusr.org<br />
>> <a target="_blank" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br />
>><br />
>> hi,<br />
> maha lakshmi i am also new user in this grads but i know some little bit<br />
> of information about u had asked 2 nd question yes we import the netcdf<br />
> files in to the grads just i had given ex: below<br />
> 'reinit'<br />
> outfile1='tke2.dat'<br />
> 'sdfopen uwnd.2010.nc'<br />
> 'sdfopen vwnd.2010.nc'<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<br />
> .nc file is input and .dat file format as output it gives the calculated<br />
> values.<br />
> and i suggest to u please verify the grads reference card is there i might<br />
> 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 />
><br />
> --<br />
> A.Sravani<br />
> Research Scholar<br />
> Department of Meteorology & Oceanography<br />
> Andhra university<br />
> Visakhapatnam<br />
><br />