Author Topic: Need PHP code to calcuate dewpoint  (Read 2334 times)

0 Members and 1 Guest are viewing this topic.

Offline satmaster

  • Member
  • *
  • Posts: 13
Need PHP code to calcuate dewpoint
« on: March 06, 2015, 11:17:16 AM »
deleted I think I found the problem.Unable to delete post.
« Last Edit: March 06, 2015, 11:29:50 AM by satmaster »

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8572
    • Meteotemplate
Re: Need PHP code to calcuate dewpoint
« Reply #1 on: March 06, 2015, 11:41:43 AM »
Just if interested, you can use this:

$dewpoint = round(((pow(($humidity/100), 0.125))*(112+0.9*$temp)+(0.1*$temp)-112),1);

*temp in C, humidity in %

 

anything