[gradsusr] regriding problem

Anil acharya acharya_anil at yahoo.com
Wed Nov 9 13:11:09 EST 2011


Hi
I am also stucked after regridding my parameters in the control file. When I open the control file, I have two parameters tmp and pcp. I am able to regrid to my specific watershed location and display the result using opengrads (following commands) 

set lat 38 42
set lon -105 -96
set t 1 50
define pcp1=re(pcp,65,linear,-104.1875,0.125,25,linear,38.5625,0.125,bl)
d pcp1
define tmp1=re(tmp,65,linear,-104.1875,0.125,25,linear,38.5625,0.125,bl)
d tmp1

I need to get the regridded output (pcp1, tmp1) for all time periods and for each lat. and lon. in text files.
e.g. file 1_-104.1875_38.5625     (pcp1    tmp1, parameters columnwise in each file)
      file 2_-104.1875_38.6875     
      file 3_-104.0625_38.5625
      file 4_-104.0625_38.6875


If you notice the format above, each file varies in latitude and longitude by 0.125. Also the file names should have 4 decimal points as above. 

I tried using  while endwhile loop based on some instruction available in the graduser list (link below) but not able to fix the error. I just started using GRADS and I am meshing it again and again. I have not attached the code thinking it might confuse you more.

http://gibies.blogspot.com/2009/11/text-output-of-data-from-grads.html


I appreciate if someone can help me out to get the required text file format.    




Anil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20111109/230c5b9e/attachment-0003.html 


More information about the gradsusr mailing list