[gradsusr] Converting the grid with conditional loop in grads
Davide Sacchetti
davide.sacchetti at arpal.gov.it
Fri Dec 28 06:27:46 EST 2018
yes, you could easily do this in grads
I imagine you would not convert any grid, just display grid cells that
satisfy your conditions
1950 -> t=1
2015 -> t=66 (?)
example 1)
set gxout grfill
d const( maskout(population(t=1),population(t=1) - 10000) *
maskout(population(t=66),population(t=66) - 10000), 1)
in a similar way you could perform number 2 and 3
bye bye
Davide
On Fri, 2018-12-28 at 12:04 +0800, Jayakrishnan P.R wrote:
>
> Dear All,
> I have a gridded data of population globally from 1950 to
> 2005. I wanted to do as follows.
> 1) Convert the grid into three different types.
> ie
> Type 1 grid>>> Display those grids if greater than value 10000 in the
> year 1950 and greater than value 10000 in the year 2015..
> Type 2 grid Display those grids if value less than 10000 in the year
> 1950 and greater than 10000 in the year 2015...
> Type 3 grid Display those grids if less than value 10000 in the year
> 1950 and less than value 10000 in 2015
> Any thoughts in grads will be appreciated....Can we do this using
> maskout function, constant function and if else statement ?. I am
> unable to do it in grads. Trying to do in mathlab...
> 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
More information about the gradsusr
mailing list