[gradsusr] Creating a user defined land ocean mask file

Jayakrishnan P.R prjayakrishnan at gmail.com
Wed Jan 2 23:02:59 EST 2019


Finally I got it by multiplying the variable of mask with the variable of
temperature and could produce the figure as attached. Thanks all. The gs
file is attached herewith.

'reinit'
'sdfopen mask1950_1.nc'
'set gxout stat'
'set t 1'
'set undef 0'
'define v=mask1'
'set sdfwrite mask1950_1b.nc'
'sdfwrite v'
'draw title masked grid'
'd mask1'
'printim mask1grid.png white'


'reinit'
'sdfopen dtr1950.nc'
'sdfopen mask1950_1b.nc'
'set gxout shaded'
'define p=m*v.2'
'd p'

~

On Wed, Jan 2, 2019 at 7:08 PM Andrew Friedman <andfried at gmail.com> wrote:

> Hi Jayakrishnan,
>
> You should be able to do this using maskout combined with const as you did
> in your previous email.
> Are the different variables on the same spatial grid?
>
> -Andrew
>
> > On Jan 2, 2019, at 9:18 AM, Jayakrishnan P.R <prjayakrishnan at gmail.com>
> wrote:
> >
> > Dear Users,
> >             In continuation to my earlier mail, I created a mask file
> according to my purpose. I herewith attach one such file.
> >
> > <type1grid_above10K.png>
> >
> > Now I would like to display another variable from another file (say
> temperature) only over this red area ?. It is like creating a user defined
> land ocean mask as above. Any ideas how to do ?. Any help is appreciated.
> > I tried using maskout function without success. The white patches which
> are undefined values with -9.999x 10^9 . I even tried changing those
> undefined values to -1 or 0 using CDO that also didnt work.
> > Appreciate your help....
> > Jayakrishnan
> >
> > --
> > Sincerely
> >
> > **************************************************
> > Dr. Jayakrishnan P.R
> > Post Doctoral Research Fellow
> > Science Technology Building
> > School of System Science
> > Beijing Normal University
> > No. 96 XInjiekouwai Street
> > Beijing 100875
> > China
> > Tel: +86-188 11005715
> >
> > ****************************************************
> >
> >
> >
> >
> > _______________________________________________
> > gradsusr mailing list
> > gradsusr at gradsusr.org
> > http://gradsusr.org/mailman/listinfo/gradsusr
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>


-- 
Sincerely

**************************************************
Dr. Jayakrishnan P.R
Post Doctoral Research Fellow
Science Technology Building
School of System Science
Beijing Normal University
No. 96 XInjiekouwai Street
Beijing 100875
China
Tel: +86-188 11005715

****************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20190103/9b928627/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dtrmask.png
Type: image/png
Size: 119791 bytes
Desc: not available
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20190103/9b928627/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mask1grid.png
Type: image/png
Size: 119684 bytes
Desc: not available
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20190103/9b928627/attachment-0003.png>


More information about the gradsusr mailing list