Re: returning results from function

2010-11-17 Thread Cameron Simpson
On 11Nov2010 15:29, Chris Rebert creb...@ucsd.edu wrote: | On Nov 11, 2010, at 1:54 PM, Chris Rebert wrote: | On Thu, Nov 11, 2010 at 1:16 PM, Neil Berg nb...@atmos.ucla.edu wrote: | time_y = ncfile.variables['time_y'][:] # (time,int) [yrs] | time_m = ncfile.variables['time_m'][:] # (time,int)

returning results from function

2010-11-11 Thread Neil Berg
Hi Python community, In a main script, I pass the year (yr), month (mo), day (dy) and hour(hr) into the utc_to_local function (pasted below) which converts that date and time into local standard time. I am passing several dates and times into this function and would like to work with the

Re: returning results from function

2010-11-11 Thread Chris Rebert
On Thu, Nov 11, 2010 at 1:16 PM, Neil Berg nb...@atmos.ucla.edu wrote: Hi Python community, In a main script, I pass the year (yr), month (mo), day (dy) and hour(hr) into the utc_to_local function (pasted below) which converts that date and time into local standard time.  I am passing

Re: returning results from function

2010-11-11 Thread Stefan Sonnenberg-Carstens
Am 11.11.2010 22:16, schrieb Neil Berg: Hi Python community, In a main script, I pass the year (yr), month (mo), day (dy) and hour(hr) into the utc_to_local function (pasted below) which converts that date and time into local standard time. I am passing several dates and times into this

Re: returning results from function

2010-11-11 Thread Neil Berg
My main script reads in monthly netCDF files that record variables each hour for that month. The length of all time variables is equal to the number of hours per month. Using January 1995, for example, time_y is a 1d array of the integer 1995 repeated 744 times, time_m is a 1d array of the

Re: returning results from function

2010-11-11 Thread Chris Rebert
On Nov 11, 2010, at 1:54 PM, Chris Rebert wrote: On Thu, Nov 11, 2010 at 1:16 PM, Neil Berg nb...@atmos.ucla.edu wrote: Hi Python community, In a main script, I pass the year (yr), month (mo), day (dy) and hour(hr) into the utc_to_local function (pasted below) which converts that date and