[gradsusr] Problem displaying a variable?
Huddleston, John
Huddleston at cira.colostate.edu
Mon Sep 13 10:18:14 EDT 2010
Rashed,
You're welcome. OK, I see your problem. Change your variable names so that the GrADS name conforms to 1-15 alpha-numeric characters with no special characters.
See http://www.iges.org/grads/gadoc/gadocindex.html section D, elements, click on VARS.
Remove the underscores and periods. For instance,
anthro_dust_0.1=>anthrodust01 14 t,z,y,x myDustBowl
Your GS script must be very interesting to deal with those 80 YDEF, 14 ZDEF, and 192 TDEF divisions.
John
John Huddleston, PhD
Cooperative Institute for Research in the Atmosphere
From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Rashed Mahmood
Sent: Monday, September 13, 2010 12:34 AM
To: GrADS Users Forum
Subject: Re: [gradsusr] Problem displaying a variable?
Dear John
Thanks
It is not a forecast file. 192 time steps are the decadal climatologies for 12 months. It means that aerosols are averaged decadely for each month of a year. it starts like from 1950s and ends for 2000.
for information the ctlinfo file has been attached in .bmp format since I could not copy the information in the GrADS version 2.5.
Regards
Rashed
On Sun, Sep 12, 2010 at 9:45 PM, Huddleston, John <Huddleston at cira.colostate.edu<mailto:Huddleston at cira.colostate.edu>> wrote:
Rashed
Your control file probably looks something like
dset aerosol_climatology.nc<http://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<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: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
_______________________________________________
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/20100913/7042aa65/attachment-0003.html
More information about the gradsusr
mailing list