Re: create time in netcdf variable

From: Erik Noble <enoble_at_nyahnyahspammersnyahnyah>
Date: Wed, 16 Jul 2008 12:25:19 -0400

Hi.
You suggest eliminating the do loop, correct?
-Erik

On Wed, Jul 16, 2008 at 12:20 PM, Jamie Scott <James.D.Scott_at_noaa.gov> wrote:
> Eric,
> I think the problem is that the 2 variables you are writing to the netcdf
> file
> only contain one time step. Even though you are looping through time
> and writing 8 times, I think you are just overwriting the 1st time step in
> the
> netcdf file each time.
> Try making the variables you write (cpc_combined_mw, cmorph and time)
> such that they contain all 8 time steps and write them only once.
>
> Jamie Scott
>
> NOAA/ESRL/PSD
>
> james.d.scott_at_noaa.gov
>
> On Jul 16, 2008, at 9:58 AM, ncl-talk-request_at_ucar.edu wrote:
>
> May I have some help? This is an update my earlier request for help
> with getting time displayed in my netcdf file. I updated my code fromearlie
> till getting incorrect time. When I do
> "ncdump -h" on the my output netcdf file, I don't get the proper time
> that should reflect 3-hourly intervals for 1 day.
> (It says time = UNLIMITED ; // (1 currently). it should be time =
> UNLIMITED ; // (8 currently)).
> I'm reading in a binary file that I'm told is composed of 16 direct
> access binary ("big_endian") records, which are 2 variables at
> 3-hourly ntervals for 1 day, basically 8 pairs.
>
> I searched throughout previous posts about time coordinates before
> posting this question ncl-talk. Its not clear whether i need to resort
> to making up this variable (i.e. specifically make a variable time =
> year*10000 + month*100 + day...etc) or if Its something even more
> simple that I am overlooking.
>
> Could I have please have some advice on how to fix this? I have my
> screen readouts and ncl code below.
> -Erik
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Jul 16 2008 - 10:25:19 MDT

This archive was generated by hypermail 2.2.0 : Fri Jul 18 2008 - 08:51:52 MDT