VeruGHub / easyclimate

Easy access to high-resolution daily climate data for Europe
https://verughub.github.io/easyclimate/
GNU General Public License v3.0
46 stars 1 forks source link

Getting monthly mean of Tmax and Tmin #45

Open kun-ecology opened 1 year ago

kun-ecology commented 1 year ago

Dear Verónica Cruz-Alonso,

Great thanks for developing this wonderful R package! It has been incredibly useful in my research.

I am currently working on a project that requires calculating the monthly means of Tmax/Tmin to determine the annual and growing season mean temperatures. While I tried to download the tif file from the server and calculate the mean (as you suggested in the readme file), I found it challenging due to the vast number (over 5000) of points spanning several years, which can not be done with my own laptop.

So, I was wondering if it might be possible that you could add a function aimed at this task to the package. It would make my life a lot easier, and I'm sure others would find it useful too.

Thank you for considering my request. I am looking forward to your thoughts on this matter.

Best Regards Kun Guo

Pakillo commented 1 year ago

Dear Kun

Thanks for the suggestion. We're currently discussing it cc @VeruGHub @cpucher

Meanwhile, I'm unclear if you have tried the approach outlined here: https://verughub.github.io/easyclimate/articles/climatic-indices.html#average-climatic-values-per-site-or-time-period. That is, you may not need to download the big rasters from the FTP server, but instead download the daily data (by means of easyclimate::get_daily_data) and then calculate monthly means as shown in that tutorial

Hope this helps

VeruGHub commented 1 year ago

Dear Kun Guo:

Thank you very much for writing, I am glad to hear that the package is useful. You should be able to download daily data for 5000 points using the function get_daily_climate in the package and it is probably easier than downloading the tiff file. If you have troubles, you could split the dataset of points and download the climatic data by parts.

As @Pakillo says, we are considering your proposal!

kun-ecology commented 1 year ago

Hi @VeruGHub @Pakillo, thanks so much for your quick reply. Apologies for my slow response, I have been doing the fieldwork for the last two weeks. Big thanks for the suggestion by @Pakillo, I will try it.

I am very much looking forward to the update function! Cheers Kun