[gradsusr] (no subject)

Kishore Ragi kishoreragi at gmail.com
Tue Mar 22 06:00:35 EDT 2016


GrADS look for variables that are in file one only, if you don't instruct
to look in second file. What you need to do is that you put .2 for files 2
variables.

For instance: define tmp=ave(temp.2 - 273.15,t=1,t=420,12)

Cheers !!!

Kishore


*PhD student in climate science,*

*National Institute of Technology, Rourkela,*

*India- 769008*






*Phone: +91-8908671881http://www.researchgate.net/profile/Kishore_Ragi
<http://www.researchgate.net/profile/Kishore_Ragi>https://in.linkedin.com/in/kishoreragi
<https://in.linkedin.com/in/kishoreragi>http://kishoreragi.webnode.com/
<http://kishoreragi.webnode.com/>*

On Tue, Mar 22, 2016 at 8:59 PM, Kishore Ragi <kishoreragi at gmail.com> wrote:

> GrADS look for variables that are in  file only, if you don't instruct to
> look in second file. What you need to do is that you put .2 for files
> variable.
>
> For instance: define tmp=ave(temp.2 - 273.15,t=1,t=420,12)
>
> Cheers !!!
>
> Kishore
>
>
> *PhD student in climate science,*
>
> *National Institute of Technology, Rourkela,*
>
> *India- 769008*
>
>
>
>
>
>
> *Phone: +91-8908671881
> <%2B91-8908671881>http://www.researchgate.net/profile/Kishore_Ragi
> <http://www.researchgate.net/profile/Kishore_Ragi>https://in.linkedin.com/in/kishoreragi
> <https://in.linkedin.com/in/kishoreragi>http://kishoreragi.webnode.com/
> <http://kishoreragi.webnode.com/>*
>
> On Tue, Mar 22, 2016 at 8:32 PM, 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
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20160322/1d3f6ce9/attachment.html 


More information about the gradsusr mailing list