[gradsusr] define variable independent of time

jl sa esjluis at yahoo.com.mx
Fri Sep 9 15:37:46 EDT 2011


checa esto:

open file1.ctl
open file2.ctl
define a=ave(b.1,t=1,t=34)
define c= ave(b.2,t=3,t=9)

d a+c

close 1
close 2
etc.


________________________________
De: "gradsusr-request at gradsusr.org" <gradsusr-request at gradsusr.org>
Para: gradsusr at gradsusr.org
Enviado: Viernes, 9 de septiembre, 2011 9:44:18
Asunto: gradsusr Digest, Vol 19, Issue 13

Send gradsusr mailing list submissions to
    gradsusr at gradsusr.org

To subscribe or unsubscribe via the World Wide Web, visit
    http://gradsusr.org/mailman/listinfo/gradsusr
or, via email, send a message with subject or body 'help' to
    gradsusr-request at gradsusr.org

You can reach the person managing the list at
    gradsusr-owner at gradsusr.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gradsusr digest..."


Today's Topics:

   1. define variable independent of time (Becker, Bernd)
   2. Re: define variable independent of time (Arlindo da Silva)
   3. Crop country boundary or masking an area - still not    working
      (Rafanoharana Serge Claudio)


----------------------------------------------------------------------

Message: 1
Date: Fri, 9 Sep 2011 17:05:39 +0100
From: "Becker, Bernd" <bernd.becker at metoffice.gov.uk>
Subject: [gradsusr] define variable independent of time
To: "GrADS Users Forum" <gradsusr at gradsusr.org>
Message-ID:
    <E209E2066317644FB35E5AA0E8C1FB7F381102 at EXXMAIL02.desktop.frd.metoffice.com>
    
Content-Type: text/plain;    charset="us-ascii"


Simple question,
complicated answer:

I would like to composite stuff from several  files.

Each file has its own time and date info in its own .ctl file. 

How can I add elements from different such files?

How can I break away from the strict treatment of the time dimension in
grads?

open file1.ctl
define a=ave(b,t=1,t=34)
close 1
open file2.ctl
define c= ave(b,t=3,t=9)
close 2
etc.

d a+c 
Cannot contour grid - all undefined values

because a and c have different times. 

What can be done about this?

Have a nice weekend.
Bernd.

--
Bernd Becker   Climate Impacts Product Development
Met Office Hadley Centre    FitzRoy Road  Exeter   Devon EX1 3PB  United
Kingdom
Tel.: +44 (0) 1392 884511 Fax: +44 (0)870 900 5050
E-mail:bernd.becker at metoffice.gov.uk -
http://www.metoffice.gov.uk/research/our-scientists/seasonal-to-decadal/
bernd-becker
http://www.metoffice.gov.uk/news/releases/archive/2011/weather-game



------------------------------

Message: 2
Date: Fri, 9 Sep 2011 12:39:37 -0400
From: Arlindo da Silva <dasilva at alum.mit.edu>
Subject: Re: [gradsusr] define variable independent of time
To: GrADS Users Forum <gradsusr at gradsusr.org>
Message-ID:
    <CALz7xZdt2pygnA_YMpTaT_Y__VrRwx-WKdtm9M4CkV37=chKJw at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

On Fri, Sep 9, 2011 at 12:05 PM, Becker, Bernd <
bernd.becker at metoffice.gov.uk> wrote:

>
> Simple question,
> complicated answer:
>
> I would like to composite stuff from several  files.
>
> Each file has its own time and date info in its own .ctl file.
>
> How can I add elements from different such files?
>
> How can I break away from the strict treatment of the time dimension in
> grads?
>
> open file1.ctl
> define a=ave(b,t=1,t=34)
> close 1
> open file2.ctl
> define c= ave(b,t=3,t=9)
> close 2
> etc.
>
> d a+c
> Cannot contour grid - all undefined values
>
>
Try:

d a(t=1)+c(t=1)


-- 
Arlindo da Silva
dasilva at alum.mit.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110909/6155d79e/attachment-0001.html 

------------------------------

Message: 3
Date: Fri, 9 Sep 2011 11:59:00 -0700
From: Rafanoharana Serge Claudio <rafanoharana at gmail.com>
Subject: [gradsusr] Crop country boundary or masking an area - still
    not    working
To: GrADS Users Forum <gradsusr at gradsusr.org>
Message-ID:
    <CAPFxStiPvGQhcA8q7Tc1OhVkksG7g0gei8hj3Vm_1mXyMVM4=w at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Dear all,

I've already posted this message before but I can't get it worked.
If any of you have any idea to crop the study area, please let me know. One
said that it is possible to grab a shapefile of the top part  and fill it
with black (I guess he meant re-setting the value of the variable covered by
this shapefile to 0). If you have any experience or any tips on how to do
that, thanks in advance for your help.

Kind regards,

Serge

---------- Forwarded message ----------
From: Rafanoharana Serge Claudio <rafanoharana at gmail.com>
Date: Fri, Aug 26, 2011 at 7:53 AM
Subject: Crop country boundary
To: GrADS Users Forum <gradsusr at gradsusr.org>


Dear all,

I would like to ask if there is a way to crop the data to a specific area.
In GrADS, if we use 'set mpdset hires', we have the country boundary.
However for my case I only need the study area (please refer to the attached
file).

I found that http://www.diva-gis.org/datadown provides Grid data. Can we use
the data from this Website to crop it or...?

Thank you,

-- 
Serge



-- 
Serge
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110909/f4f4b1b6/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: evi-1.jpg
Type: image/jpeg
Size: 242511 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20110909/f4f4b1b6/attachment.jpg 

------------------------------

_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr


End of gradsusr Digest, Vol 19, Issue 13
****************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110909/a2c3a297/attachment-0003.html 


More information about the gradsusr mailing list