[gradsusr] regriding problem
Arlindo da Silva
dasilva at alum.mit.edu
Wed Nov 9 13:51:36 EST 2011
On Wed, Nov 9, 2011 at 1:11 PM, Anil acharya <acharya_anil at yahoo.com> wrote:
> 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.
>
>
>
I am not sure what is your problem, regridding or writing data to text
files. For text files, are you familiar with these recipes?
http://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_variable_data_to_a_text_file
http://cookbooks.opengrads.org/index.php?title=Recipe-003:_Using_PyGrADS_to_save_variable_data_to_a_text_file
Arlindo
--
Arlindo da Silva
dasilva at alum.mit.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20111109/9d841e6d/attachment-0003.html
More information about the gradsusr
mailing list