Re: losing-end-of-row values when manipulating CSV input

2011-07-13 Thread Neil Berg
Ethan, Thank you for this tip- you are correct that I saved the data as rich text. I remade the files in VI instead of TextEdit, which allowed me to write a true csv file and the script works as expected now. Thanks again, Neil On Jul 13, 2011, at 2:17 PM, Ethan Furman wrote: > Neil B

losing-end-of-row values when manipulating CSV input

2011-07-13 Thread Neil Berg
ot; filter line. I've tried several ways to remove this trailing "\", but to no success. Do you have any suggestions on how to fix this issue? Many thanks in advance, Neil Berg # Purpose: read in a CSV file containing hourly temps. at each station, # then appe

neglecting daylight savings

2010-11-11 Thread Neil Berg
year loc_m = loc_dt.month # local month loc_d = loc_dt.day # local day loc_h = loc_dt.hour # local hour return loc_y, loc_m, loc_d, loc_h _ Python 2.6 Mac OS X 10.6.4 _ Any help is much appreciated. Thank you in advance, Neil Berg -- http://mail.python.org/mailman/listinfo/python-list

Re: returning results from function

2010-11-11 Thread Neil Berg
x])) ***Here is where I'd like to see the returned values so I can create new arrays that store them * Hope this makes sense. Thanks, Neil On Nov 11, 2010, at 1:54 PM, Chris Rebert wrote: > On Thu, Nov 11, 2010 at 1:16 PM, Neil Berg wrote: >> Hi Python community, &g

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 "retu