[gradsusr] (no subject)

Gargi Akhoury gargiakhoury at bitmesra.ac.in
Wed Mar 23 03:59:23 EDT 2016


Thanks a lot to all....for ur kind help....its working now....!!!

Regards

On Tue, Mar 22, 2016 at 10:14 PM, Jennifer M Adams <jadams21 at gmu.edu> wrote:

> You can also try changing ‘pressure’ to ‘pressure(z=1)’ and see if that
> helps. —Jennifer
>
> On Mar 22, 2016, at 12:24 PM, dzengiz.tafa at telenet.be wrote:
>
> Hi
>
> Try to use the variable, followed with a ".#", where # stands for the
> filenumber thats assigned.
> Starting eg from what you have...
>
>     'sdfopen mslp.nc'
>     'sdfopen t1000.nc'
>     'define mslp=ave(pressure,t=1,t=420,12)'
>     'd mslp'
>     'c'
>     'define tmp=ave(temp-273.15,t=1,t=420,12)'
>     'd tmp'
>
> The first sdfopen creates file number 1 & the second creates file number 2
>
> When using the variables you can add a ".", followed by the filename so
>     'define mslp=ave(pressure,t=1,t=420,12)' becomes
>     'define mslp=ave(pressure.1,t=1,t=420,12)'
> and
>     'define tmp=ave(temp-273.15,t=1,t=420,12)' becomes
>     'define tmp=ave(temp.2-273.15,t=1,t=420,12)'
>
> If for some reason this does not work, just add a 'set dfile #'
> (#=filenumber) before handling the vars
>
> The whole solution then becomes
>
>     'sdfopen mslp.nc'
>     'sdfopen t1000.nc'
>     'set stdfile 1'
>     'define mslp=ave(pressure.1,t=1,t=420,12)'
>     'd mslp'
>     'c'
>     'set stdfile 2'
>     'define tmp=ave(temp.2-273.15,t=1,t=420,12)'
>     'd tmp'
>
> Good luck.
>
> ------------------------------
> *Van: *"Gargi Akhoury" <gargiakhoury at bitmesra.ac.in>
> *Aan: *"GrADS Users Forum" <gradsusr at gradsusr.org>
> *Verzonden: *Dinsdag 22 maart 2016 13:53:08
> *Onderwerp: *Re: [gradsusr] (no subject)
>
> Hello,
>      I have tried but I am getting this error:
>
> Data Request Warning:  Request is completely outside file limits
>   Entire grid contents are set to missing data
>   Grid limits of file:     X = 1 144  Y = 1 73  Z = 1 1  T = 1 780  E = 1 1
>   Grid limits of request:  X = 1 145  Y = 1 73  Z = -999 -999  T = 1 1  E
> = 1 1
>   Warning issued for variable = temp.2
> Data Request Warning:  Request is completely outside file limits
>   Entire grid contents are set to missing data
>   Grid limits of file:     X = 1 144  Y = 1 73  Z = 1 1  T = 1 780  E = 1 1
>   Grid limits of request:  X = 1 145  Y = 1 73  Z = -999 -999  T = 13 13
>  E = 1 1
>   Warning issued for variable = temp.2
> Data Request Warning:  Request is completely outside file limits
>   Entire grid contents are set to missing data
>   Grid limits of file:     X = 1 144  Y = 1 73  Z = 1 1  T = 1 780  E = 1 1
>   Grid limits of request:  X = 1 145  Y = 1 73  Z = -999 -999  T = 25 25
>  E = 1 .......................................
>
> Regards
>
> On Tue, Mar 22, 2016 at 4:41 PM, Thomas Davies <tsd.davies at gmail.com>
> wrote:
>
>> You need to 'set dfile 2' after opening the second file and then define
>> the variable. Or define it as temp.2 to reference the second file
>>
>> On Tue, 22 Mar 2016 09:38 Gargi Akhoury, <gargiakhoury at bitmesra.ac.in>
>> wrote:
>>
>>> Dear Grads Users,
>>>          It's a very simple problem but I am facing problem to solve
>>> this.
>>> I have two netcdf files like:
>>> temp.nc
>>> mslp.nc
>>>
>>> I want to open these two files together and display the image. I have
>>> done it like this.
>>>
>>> 'sdfopen mslp.nc'
>>> 'sdfopen t1000.nc'
>>> 'define mslp=ave(pressure,t=1,t=420,12)'
>>> 'd mslp'
>>> 'c'
>>> 'define tmp=ave(temp-273.15,t=1,t=420,12)'
>>> 'd tmp'
>>>
>>> But I am getting error in this. The error is:
>>>
>>> "define tmp=ave(temp-273.15,t=1,t=420,12)
>>> Averaging.  dim = 3, start = 1, end = 420
>>> Syntax Error:  Invalid Operand
>>>   'temp' not a variable or function name
>>> Operation Error:  Error from ave function
>>>   Error ocurred at column 1
>>> DEFINE error:  Invalid expression."
>>>
>>> Kindly, help me regarding this.
>>>
>>> Kind Regards
>>> Gargi
>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>>
>>
>
> _______________________________________________
> 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
>
>
> --
> Jennifer Miletta Adams
> Center for Ocean-Land-Atmosphere Studies (COLA)
> George Mason University
>
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20160323/e792ab63/attachment.html 


More information about the gradsusr mailing list