From: sudipta s. <sdp...@gm...> - 2015-05-23 21:10:05
|
Hi Bill Thanks for your answer. That is indeed what I was looking for. Thanks a lot!! I was aware of the pieces but was just not sure how to put them together. Your answer made it very clear. Thanks again On Sat, May 23, 2015 at 4:50 PM, Hayes, William <bh...@ca...> wrote: > Hi Sudipta, > I've only worked with monthly data, but I believe > for your daily data you would do something like: > > Assuming the number of days was 4000 (you'll have to calculate this): > > days_list = range(4000) > ta = cdms2.createAxis( days_list ) > ta.id = 'time' > ta.units = 'days since 2004-10-01' > var.setAxis(0, ta) > cdutil.setTimeBoundsDaily(var, 1 ) # 1 is daily frequency, assumes 1 data > pt per day > > Bill Hayes > Carnegie Institute DGE > > > On Sat, May 23, 2015 at 1:10 PM, sudipta sarkar <sdp...@gm...> > wrote: > >> Hi All >> I am trying to concatenate several H5 daily data global gridded file into >> a single array 3D array (time, lat, long). >> >> I can define the lat and long axis for this new 3d array. But I am not >> sure how to create the time axis for this 3D array. >> My start time is 2004-10-01 and end time is 2015-05-20. >> >> Do I need to create a cdtime time array with these start and end dates >> and then define a time axis based on this time array? >> >> Can someone please show me how. I am not sure how to go about this. >> >> Thanks >> >> >> >> ------------------------------------------------------------------------------ >> One dashboard for servers and applications across Physical-Virtual-Cloud >> Widest out-of-the-box monitoring support with 50+ applications >> Performance metrics, stats and reports that give you Actionable Insights >> Deep dive visibility with transaction tracing using APM Insight. >> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y >> _______________________________________________ >> Cdat-discussion mailing list >> Cda...@li... >> https://lists.sourceforge.net/lists/listinfo/cdat-discussion >> >> > |