[gradsusr] Problem with maskout

Celso Bandeira de Melo Ribeiro celso.bandeira at ufjf.edu.br
Thu Nov 7 15:08:01 EST 2013


Hello Kishore,
Thank you for your attention and help.
I tried open using the command that you suggest but appear a error message
(attatched file). I think that my file.dat (am_maskaut.dat) have some
problems, but I don’t know what is happening.
I opened the file.dat  (am_maskaut.dat - attached file), and appear
strangers codes. I dont know if this code is right.
Could you or any Grads users help me more?
Thank you again.
Celso



On Thu, 7 Nov 2013 09:59:59 +0530, Kishore Ragi <kishoreragi at gmail.com>
wrote:
> just use the command like the following according to your need ..
> 
> open your file and then open mask file as second ... then use the
following
> command ...
> 
> x=maskout(your_var,mask.2(t=1))
> 
> Cheers,
> 
> Kishore
> 
> 
> On Thu, Nov 7, 2013 at 9:45 AM, Celso Bandeira de Melo Ribeiro <
> celso.bandeira at ufjf.edu.br> wrote:
> 
>> Hello Alejandro Meza and grads users,
>> My name  is Celso and I am trying extract daily precipitation from
Merge
>> TRMM by INPE (NATIONAL INSTITUTE OF RESEARCH SPATIAL - Brasil) using
>> maskout function, same that you did.
>> I did one maskout ctl using MetoInfo software, following the same
>> proceedings but I don't know how to use this mask in grads.
>> The maskout ctl is:
>>
>> DSET am_maskaut.dat
>> TITLE Mask data
>> UNDEF -9999
>> XDEF 245 LINEAR -82.8 0.2
>> YDEF 313 LINEAR -50.2 0.2
>> ZDEF 1 LINEAR 1 1
>> TDEF 365 LINEAR 1Jan1998 1dy
>> VARS 1
>> mask 0 99  background mask data
>> ENDVARS
>>
>> Looking forward for any help.
>> Thank you,
>> Celso
>>
>> ____________________________________________
>> Celso Bandeira de Melo Ribeiro
>> Universidade Federal de Juiz de Fora - UFJF
>> Faculdade de Engenharia, Plataforma 4
>> Departamento de Engenharia Ambiental e Sanitaria
>> Bairro Martelos, Juiz de Fora (MG) CEP. 36036-900
>> tel. (32) 2102-3400
>> Visiting Scholar in Texas A&M University
>>
>>
>> On Fri, 25 Oct 2013 12:57:30 -0400, Jennifer Adams <jma at cola.iges.org>
>> wrote:
>> > Try using a local override of the time index in your expression, like
>> this:
>> > ga-> sst2 = maskout(sst1,mask.2(t=1))
>> >
>> > --Jennifer
>> >
>> > On Oct 25, 2013, at 12:45 PM, Alejandro Meza Mayorga wrote:
>> >
>> >> Hello grads users. I have netcdf file containing daily sst data over
a
>> >> year, and I need to extract the grid data over an irregular area for
>> each
>> >> day, so I used the maskout function.
>> >>
>> >> First I created a shapefile for the area that I needed using ArcGis
>> >> software (1.png).
>> >>
>> >> Then I followed the instructions posted in a previous thread by Dr.
>> >> Yaqiang Wang
>> >> (http://gradsusr.org/pipermail/gradsusr/2013-April/034603.html). So
>> using
>> >> MeteoInfo software I made a grads maskout data with the shapefile
>> >> (2.png), and I changed the TDEF in the maskout ctl file just as
stated
>> >> (3.png).
>> >>
>> >> The maskout works fine for the first day (t=1) of the data (4.png),
>> >> but
>> >> the problem is that when I try to use another 't' different than 1
it
>> >> gives an error (5.png).
>> >>
>> >> I hope you could give some ideas of what the error might be. Is it a
>> >> mistake of how to create the shapefile, or an error in the control
>> file?
>> >>
>> >> Looking forward for your help. Thanks in advance.
>> >>
>> >> Alejandro.
>> >>
>> >>
>> >>
>>
>>
<1.png><2.png><3.png><4.png><5.png>_______________________________________________
>> >> gradsusr mailing list
>> >> gradsusr at gradsusr.org
>> >> http://gradsusr.org/mailman/listinfo/gradsusr
>> >
>> > --
>> > Jennifer M. Adams
>> > Center for Ocean-Land-Atmosphere Studies (COLA)
>> > 111 Research Hall, Mail Stop 2B3
>> > George Mason University
>> > 4400 University Drive
>> > Fairfax, VA 22030
>>
>> --
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: error_file.dat.png
Type: image/png
Size: 473147 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20131107/2e7ab17a/attachment-0002.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: error_maskout.png
Type: image/png
Size: 401030 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20131107/2e7ab17a/attachment-0003.png 


More information about the gradsusr mailing list