# Re: hourly curve

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Thu Nov 12 2009 - 15:59:43 MST

Hi Mike,

I don't know about the 'ftcurvp' function.

How about the following simple approach:

[1] Create an array
x = new ( (/nyrs*365*24/) , "float", 1e20)

[2]
Assign the min and max values to 9Z & 21Z

[3]
Use linear interpolation [linmsg] to fill the missing locations.

[4]
This way you are assured that no onterpolated valu will be
over/under the local min/max

Good luck

D
Michael Notaro wrote:
> I haven't been able to solve the problem of ftcurvp
> freezing up my program for some data. Could
> anyone offer an alternative approach? Seems the function
> has some sort of bug.
>
> I have daily max and min Ts for 20 years. I want to
> assign the maxs and mins to 21Z and 9Z for each day.
> I need to estimate hourly temperatures for those 20 years,
> fitting some sort of curve to the maxs and mins to approximate
> a diurnal cycle.
>
> Thanks,
> Mike
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

```--
======================================================
Dennis J. Shea                  tel: 303-497-1361    |
P.O. Box 3000                   fax: 303-497-1333    |
Climate Analysis Section                             |
Climate & Global Dynamics Div.                       |
National Center for Atmospheric Research             |
Boulder, CO  80307                                   |
USA                        email: shea 'at' ucar.edu |
======================================================
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
```
Received on Thu Nov 12 16:00:14 2009

This archive was generated by hypermail 2.1.8 : Tue Nov 17 2009 - 17:27:43 MST