interpolate monthly values to daily

hello I have monthly temperature values matricies from 1961-1990 and need to interpolate the monthly data for each year to be daily, (make it from 12 values to 365 values for each grid), can any one write me the code please. thank you

1 commentaire

the cyclist
the cyclist le 14 Fév 2012
I won't write your code for you, but two functions that you will find useful are datenum() and interp1().

Connectez-vous pour commenter.

Réponses (1)

Walter Roberson
Walter Roberson le 14 Fév 2012

0 votes

Temperatures are not even remotely close to being linear. What kind of input do you have and what kind of output were you hoping to get? You would be on much safer grounds interpolating something cumulative such as precipitation.
Last week, the temperature here fell 38 degrees Celsius in about as many hours. It stayed that cold for about half a day and then warmed over several days. You cannot interpolate that kind of weather by examining monthly mean or highs or lows. (The difference between our summer-time high temperatures and our winter lows is about 65 degrees Celsius in a typical year.)

Catégories

En savoir plus sur Interpolation dans Centre d'aide et File Exchange

Question posée :

le 14 Fév 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by