Author Topic: Zambretti Forecaster Algorithm in php  (Read 4176 times)

0 Members and 1 Guest are viewing this topic.

Offline SLOweather

  • Global Moderator
  • Forecaster
  • *****
  • Posts: 3456
    • Weatherelement Moline IL
Zambretti Forecaster Algorithm in php
« on: August 13, 2014, 05:04:38 PM »
I posted this link in another topic, http://www.meteormetrics.com/zambretti.htm and then actually read it. It's a very good explanation of how a Zambretti forecaster works...



and how to implement one in code. It might be fun to try it in PHP. Wait, never mind...

https://github.com/JonnyHonda/phpWeather/blob/master/zambretti.inc.php

A Zambretti algorithm is what companies like Davis use to create the console forecast. I think maybe Davis has enhanced it some.

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5519
    • KomokaWeather
Re: Zambretti Forecaster Algorithm in php
« Reply #1 on: August 13, 2014, 11:21:26 PM »
On another forum, some initial Zambretti scripting evolved to http://sandaysoft.com/forum/viewtopic.php?f=14&t=9901&hilit=zambretti&start=255

I have a modified version on my website www.komokaweather.com and www.komokaweather.ca.

Paul

Offline nincehelser

  • Forecaster
  • *****
  • Posts: 3337
Re: Zambretti Forecaster Algorithm in php
« Reply #2 on: August 14, 2014, 10:42:35 PM »
Pretty cool.  I just ordered the paper version from here: http://www.shipwreck2000.freeserve.co.uk/

However, I'd really like to find one like this:


http://www.whitbyweather.com/index.php?p=1_56_Zambretti-Forecaster

Offline nincehelser

  • Forecaster
  • *****
  • Posts: 3337
Re: Zambretti Forecaster Algorithm in php
« Reply #3 on: August 22, 2014, 05:28:16 PM »
Pretty cool.  I just ordered the paper version from here: http://www.shipwreck2000.freeserve.co.uk/

However, I'd really like to find one like this:


http://www.whitbyweather.com/index.php?p=1_56_Zambretti-Forecaster

Got my order today.  It's pretty cool. 

It arrived in about a week in the US from England.  Cost 6 British pounds via PayPal.  I guess that's around $10 US.  (I'm not sure why it cost me less than the web site indicates.)

It's smaller than I imagined, but it fits in my hand nicely. Reading glasses are a must (*ugh* I usually don't need them).   Dials are stiff to turn, but perhaps that's a plus.

So far the forecasts seem legit, though I've just used it one time.  ;)

« Last Edit: August 22, 2014, 05:37:15 PM by nincehelser »

Offline SLOweather

  • Global Moderator
  • Forecaster
  • *****
  • Posts: 3456
    • Weatherelement Moline IL
Re: Zambretti Forecaster Algorithm in php
« Reply #4 on: August 22, 2014, 08:09:59 PM »
I'd like to SEE & understand the algorithm that goes into that Zambretti Forecaster program.

Look at the link in the top post...

http://www.meteormetrics.com/zambretti.htm

Offline nincehelser

  • Forecaster
  • *****
  • Posts: 3337
Re: Zambretti Forecaster Algorithm in php
« Reply #5 on: August 23, 2014, 05:38:35 PM »
I'm kind of surprised humidity isn't factored in somehow.

I suppose the mechanical dial method doesn't lend itself to additional inputs, but I wonder if manufacturers like Davis have improved the forecasts with additional data?

Offline pcborges

  • Member
  • *
  • Posts: 1
Re: Zambretti Forecaster Algorithm in php
« Reply #6 on: February 19, 2020, 06:33:53 AM »
Hi, I am designing an App that will collect localized weather info (temperature, pressure, humidity, timestamp and altitude) and post it to a mysql database.
On that database there will be a field dedicated to weather prediction that will be filled by the $z_forecast (as per zambretti.inc.php)
Problems I have:
1: How to adjust it for other countries?
2: In the project there is no provision to get wind information. Is there a way to make a good estimation with no wind info?
3: There have to a be a way to adjust seasons according to global positioning (I will also have GPS data)
The idea is that a php script will run against the latest database data and come out with a sort of $z_forecast so it can be displayed to users.
Thanks in advance
Paulo