interpolate monthly values to daily

14 views (last 30 days)
Yasmine
Yasmine on 14 Feb 2012
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 Comment
the cyclist
the cyclist on 14 Feb 2012
I won't write your code for you, but two functions that you will find useful are datenum() and interp1().

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 14 Feb 2012
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.)

Categories

Find more on Interpolation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!