[gradsusr] Problem displaying a variable?

Huddleston, John Huddleston at cira.colostate.edu
Sun Sep 12 09:45:26 EDT 2010


Rashed

Your control file probably looks something like
dset aerosol_climatology.nc
dtype netcdf
title Aerosol data
undef -999.
xdef 96 linear 0.   1.0
ydef 80 linear 0.   1.0
zdef 14 linear 1 2 3 4 5 6 7 8 9 10 11 12 13 14
tdef 192  linear 00:00Z12sep2010 1hr
vars 1
anthro_dust_0.1=>dust 0 t,z,y,x dust
endvars

It looks like a forecast file since it is 192 hours. I just picked 1.0 degrees and (0,0) not knowing where it is centered.

Send your control file.  What is the exact message coming out of GrADS?

John

________________________________
From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Rashed Mahmood [rashidcomsis at gmail.com]
Sent: Saturday, September 11, 2010 4:20 PM
To: GrADS Users Forum
Subject: Re: [gradsusr] Problem displaying a variable?

Dear John
I don't know exactly from where the file was downloaded (I copied it from someone).
and the size of the file is too large to be attached.
Attached is the ncdump of the file.

By the way, using NCL I just came to know that we can display the variable as:

in1=addfile("/mnt/storage-space/disk1/lshl/khan/aerosol.climatology.nc<http://aerosol.climatology.nc>","r")

var = "anthro_dust_0.1"
  d1  = in1->$var$
So I think the problem can be solved using NCL. However thanks for your timely help.

Rashed






On Sun, Sep 12, 2010 at 4:21 AM, Huddleston, John <Huddleston at cira.colostate.edu<mailto:Huddleston at cira.colostate.edu>> wrote:
Rashed

Send me a link to where you downloaded the data so I can see the file.

John
________________________________
From: gradsusr-bounces at gradsusr.org<mailto:gradsusr-bounces at gradsusr.org> [gradsusr-bounces at gradsusr.org<mailto:gradsusr-bounces at gradsusr.org>] On Behalf Of Rashed Mahmood [rashidcomsis at gmail.com<mailto:rashidcomsis at gmail.com>]
Sent: Saturday, September 11, 2010 8:16 AM
To: GrADS Users Forum
Subject: Re: [gradsusr] Problem displaying a variable?

Hi John
Thanks for your idea.
But the problem is that the file has 22 variables for different kinds of aerosols.
and I dont want to seperate them as it is necessity to keep all the variables together.

any further suggestions?

Rashed

On Sat, Sep 11, 2010 at 8:28 PM, Huddleston, John <Huddleston at cira.colostate.edu<mailto:Huddleston at cira.colostate.edu>> wrote:
Rashed

Set the name in the control file to be something like

anthro_dust_0.1=>var  0 t,y,x aerosol dust

then 'd var' at the GrADS prompt

John Huddleston
________________________________
From: gradsusr-bounces at gradsusr.org<mailto:gradsusr-bounces at gradsusr.org> [gradsusr-bounces at gradsusr.org<mailto:gradsusr-bounces at gradsusr.org>] On Behalf Of Rashed Mahmood [rashidcomsis at gmail.com<mailto:rashidcomsis at gmail.com>]
Sent: Saturday, September 11, 2010 4:47 AM
To: GrADS Users Forum
Subject: [gradsusr] Problem displaying a variable?

Hi all

I have been trying to display a variable anthro_dust_0.1 in an aerosol.nc<http://aerosol.nc/> file using GrADS but it gives error: invalid variable name.
I guess that the problem is with the 0.1 used with variable name but I dont know how to deal with it.

Any suggestion?

Thanks

Rashed

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



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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100912/be5fe419/attachment-0003.html 


More information about the gradsusr mailing list