fsfrazao / DegDay

Degrees per day project for CMSC6950 course
0 stars 0 forks source link

Task 2 (Basic) #7

Open fsfrazao opened 8 years ago

fsfrazao commented 8 years ago

Hi Dianlong Zhang,

Could you please commit your task 2 code?

DarrenZDL commented 8 years ago

Yes, I will commit it this afternoon. On Jun 9, 2016 10:13 AM, "fsfrazao" notifications@github.com wrote:

Dianlong Zhang,

Could please commit your task 2 code?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fsfrazao/DegDay/issues/7, or mute the thread https://github.com/notifications/unsubscribe/AIP119rxLeFlq2zghxYaGMj0l9AUblx5ks5qKApegaJpZM4Ix7jL .

fsfrazao commented 8 years ago

Great! Thanks a lot!

djo504 commented 8 years ago

@fsfrazao is it possible to use your function to calculate gdd for a specific date in a specific month all year round?

fsfrazao commented 8 years ago

@djo504 I'm not sure if I understand what you need. Do you mean the same day in all months of the year (e.g. 15 jan, 15 feb,.....15 dec)?

There are a few ways to do that. For example you could put all the dates you want in a dataframe and pass it to the apply_GDD function in the GDD module. Something like that should do it.

import GDD

data=GDD.read_file("./my/input/files/1706_2000.csv")
data_with_gdd=GDD.apply_GDD(data[data.day==15],base_t=10) 
DarrenZDL commented 8 years ago

@fsfrazao I just find that the task 2 files I uploaded were gone. Did I not successfully upload? Because I did not see any delete of my files. My history appears 404 when I open my uploaded files.

DarrenZDL commented 8 years ago

@fsfrazao I just upload the codes again

DarrenZDL commented 8 years ago

@fsfrazao I'm still working on the optional task 1, could you email me your GDD.csv file which is the output of GDD.py? I need to know the column name and data of your GDD.csv file. Thanks!