Skip to content

elzup/calc-vpd

Repository files navigation

calc-vpd

Node.js CI tested with jest

VPD (Vapor Pressure Deficit) function

  • 水蒸気圧 = 6.1078 * 10 ^ ((7.5 - 気温 / (気温 + 237.3)))
  • 飽和水蒸気量 = 217 - 水蒸気圧 / (気温 + 273.15)
  • 飽差 = (100 - 相対湿度) * 飽和水蒸気量 / 100

参考: http://bigbearfarm.blog.fc2.com/blog-entry-306.html

Install

$ npm install calc-vpd

Usage

const calcVpd = require('calc-vpd')

calcVpd({ tmp: 29.2, hmd: 76.5 })
//=> {
//     "swv": 29.080252344,
//     "vp": 40.518038231,
//     "vpd": 6.833859301,
//   }

API

calcVpd(input)

input

Type: { tmp: number, hmd: number }

tmp: 気温 hmd: 湿度

output

Type: { swv: number, vp: number, vpd number }

vp: 水蒸気圧, swv: 飽和水蒸気量, vpd: 飽差

License

MIT © elzup