Hi Owanda,
I'd take a look at the ATMdaily.2005.nc file driectly by doing a ncdump 
-h ATMdaily.2005.nc command. Whenever you get that error message, it 
either means that the file that you specified isn't present, or that the 
variable you are trying to grab isn't present in the netCDF file.
Based on my limited knowledge of GrADS, I think the variable names 
within GrADS are case-insensitive. In other words, within the netCDF 
file, the variable might very well be "U", and not "u". People with more 
experience with GrADS can correct me if I'm wrong on that. And if it is 
"U", and as NCL is case-sensitive, you would switch this: U = data->u, 
to this: U = data->U
Hope that helps.
Adam
Owanda Otieno wrote:
> Hi all,
> Can someone please help in identifying the problem with my attached 
> script. When I try to run it I get the following error massage;
> 
>     fatal:Could not create (GHA.2005.nc <http://GHA.2005.nc>)
> fatal:Either file (data) isn't defined or variable (u) is not a variable 
> in the file
> fatal:Execute: Error occurred at or near line 36
> 
> I am working on bluefire and my data is from RegCM3 runs over the 
> region; 12S- 23N, 20E-80E, having the following specifications
> 
>    Descriptor: ATMdaily.2005.nc <http://ATMdaily.2005.nc>
>   Binary: ATMdaily.2005.nc <http://ATMdaily.2005.nc>
>   Type = Gridded
>   Xsize = 214  Ysize = 134  Zsize = 11  Tsize = 334  Esize = 1
>   Number of Variables = 20
>      u  11  t,z,y,x  Zonal Wind
>      v  11  t,z,y,x  Meridional Wind
>      w  11  t,z,y,x  Vertical Velocity
>      tk  11  t,z,y,x  Temperature
>      qd  11  t,z,y,x  Mixing Ratio
>      qc  11  t,z,y,x  Cloud Mixing Ratio
>      rh  11  t,z,y,x  Relative Humidity
>      hgt  11  t,z,y,x  Geopotential Height
>      th  11  t,z,y,x  Potential Temperature
>      td  11  t,z,y,x  Dew Point Temperature
>      vor  11  t,z,y,x  Horz Vorticity
>      div  11  t,z,y,x  Horz Divergence
>      mse  11  t,z,y,x  Moist Static Energy
>      ps  0  t,y,x  Surface Pressure
>      rt  0  t,y,x  Total Precip
>      tgrnd  0  t,y,x  Ground Temperature
>      smt  0  t,y,x  Total Soil Water
>      bs  0  t,y,x  Base Flow
>      slp1  0  t,y,x  Sea Level Pressure
>      slp2  0  t,y,x  Sea Level Pressure
> 
> 
> Thanks in Advance
> Owanda.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- -------------------------------------------------------------- Adam Phillips asphilli_at_ucar.edu National Center for Atmospheric Research tel: (303) 497-1726 ESSL/CGD/CAS fax: (303) 497-1333 P.O. Box 3000 Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli _______________________________________________ ncl-talk mailing list List instructions, subscriber options, unsubscribe: http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Thu Aug 27 2009 - 10:36:09 MDT
This archive was generated by hypermail 2.2.0 : Wed Sep 02 2009 - 12:24:39 MDT