Re: the problem about the time coordinate variable

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Tue, 21 Mar 2006 09:44:40 -0700

Hi Alice,

Please send us the netCDF headers of your two files (ncdump -h u2.nc),
that should help us to diagnose the problem..

Also, something else that I noticed, you are using regular subscripting
at the top of the program when you read in uwnd:

uwnd1=f[0]->uwnd(120:272,2:2,12:44,120:120)

Then farther down in the program you say:
fileAtt_at_title="the abnormal u wind at 850hpa over 120 degree East"

This would be correct if the uwnd longitudes are spaced every 1 degrees
starting at 0E... To make sure you are grabbing the data points at 120E
(and at 850hPa) you might want to try using coordinate subscripting:

uwnd1=f[0]->uwnd(120:272,{850.},12:44,{120.})

I would try both methods and do a printVarSummary(uwnd1) and see what
the differences are.
Adam

符娇兰 wrote:
>
>
>
> Hello:
> There is some trouble when I get the "time" coordinate variable of
> the two output nc data which is writtend by the attached script. When I
> use the NCL to print the variable "time",the print results are same. But
> when I run Grads to plot figures using the two output data, the time of
> "u2.nc" can be correctly displayed on the plot coordinate,namely,May1
> 1991,..., that of the "uabnormal.nc" displayed differently,such as
> 4776,..... I have checked the scripts for several times and still didn't
> find what is the problem.
> Thanks for any help or suggestion!
>
>   
>
>              
> Yours,
> Alice
> 2006-03-21
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> 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
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Mar 21 2006 - 09:44:40 MST

This archive was generated by hypermail 2.2.0 : Wed Mar 29 2006 - 11:53:04 MST