An open API service indexing awesome lists of open source software.

https://github.com/elzup/calc-vpd

VPD (Vapor Pressure Deficit) function
https://github.com/elzup/calc-vpd

agriculture iot science vpd

Last synced: 4 months ago
JSON representation

VPD (Vapor Pressure Deficit) function

Awesome Lists containing this project

README

          

# calc-vpd

![Node.js CI](https://github.com/elzup/calc-vpd/workflows/Node.js%20CI/badge.svg)
[![tested with jest](https://img.shields.io/badge/tested_with-jest-99424f.svg)](https://github.com/facebook/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

```js
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](https://elzup.com)