[gradsusr] Opening of two netcdf files in GrADS as an individual file

Jennifer Adams jma at cola.iges.org
Wed Feb 23 10:00:08 EST 2011


A simpler way to do this without using define and keeping both files  
open, is:
'sdfopen uwnd.nc'
'sdfopen vwnd.nc'
'd mag(u.1,v.2)'

Please read the documentation page on variables at http://iges.org/grads/gadoc/variable.html

--Jennifer



On Feb 21, 2011, at 6:17 AM, Muhammad Rahiz wrote:

>
> sdfopen file1.nc
> var1 = u
> close 1
>
> sdfopen file2.nc
> var2 = v
>
> Once you've assigned the variables to objects, you can do the intended
> analysis e.g. to plot the difference, do
>
> d var2-var1
>
> -- 
> Muhammad Rahiz
> Researcher & DPhil Candidate (Climate Systems & Policy)
> School of Geography & the Environment
> University of Oxford
>
> On Sun, 20 Feb 2011, phd0802 at pieas.edu.pk wrote:
>
>>
>> Hi All,
>>
>> I am new user of GrADS having two NetCDF files named as uwnd. 
>> 1998.nc and
>> vwnd.1998.nc. Both files are same in every aspect except nature of
>> variables. One file has u-component of wind and other v-component.  
>> I want
>> to plot the magnitude of wind (i.e. mag(u,v)),but don't know how to  
>> open
>> these files in GrADS as an individual file. Can anybody help me.  
>> Thanks in
>> advance.
>>
>> Sardar,
>> PhD Student, PIEAS,
>> Pakistan.
>>
>>
>> _______________________________________________
>> 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 M. Adams
IGES/COLA
4041 Powder Mill Road, Suite 302
Calverton, MD 20705
jma at cola.iges.org



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110223/0e7f6102/attachment-0003.html 


More information about the gradsusr mailing list