single value change

mario frangipane frangix at YAHOO.IT
Tue Jan 17 07:07:22 EST 2006


Hi all GrADS users,

  I am interested to control the various values of one 2-D variable  (that is the values in one matrix), for example the temperature, and to change of some.

  For example, I must read the temperature (variable T) and to place equal to 0 all values < 300.

I know to carry out one scan of the T matrix with the following commands:

  i=1
while(i<=imax)
     'set x ' i      {latitude}
      j=1
      while(j<=jmax)
      'set y ' j     {longitude}
      ....


  I, eventually, know to change the value of T:

  'set defval T 'i' 'j' 300'
  ...

But as I make to control the single value? (the T(i,j) value)

I can read the single value on the computer's screen through the command:

  'query defval T 'i' 'j
  ...

  but I do not know to write a script that controls the single value of T.

  If you have any suggest thanks.


  Best regards from Mario


---------------------------------
Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20060117/2fe0fbb2/attachment.html 


More information about the gradsusr mailing list