calc-vpd 0.2.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +10 -11
- package/readme.md +7 -20
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "calc-vpd",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "VPD (Vapor Pressure Deficit) function",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "elzup/calc-vpd",
|
|
7
7
|
"author": "elzup",
|
|
8
8
|
"engines": {
|
|
9
|
-
"node": ">=
|
|
9
|
+
"node": ">=14"
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
|
-
"add-contributor": "all-contributors add",
|
|
13
12
|
"precommit": "lint-staged",
|
|
14
13
|
"fmt": "prettier --write '**/*.{js,json,md}'",
|
|
15
14
|
"lint": "eslint --ext .js .",
|
|
16
15
|
"test": "jest",
|
|
17
16
|
"test:cov": "jest --coverage --ci --runInBand",
|
|
18
|
-
"test:ci": "yarn lint && yarn test:cov"
|
|
17
|
+
"test:ci": "yarn lint && yarn test:cov",
|
|
18
|
+
"prepare": "husky install"
|
|
19
19
|
},
|
|
20
20
|
"lint-staged": {
|
|
21
21
|
"*.{js,json,md}": [
|
|
@@ -33,12 +33,11 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"
|
|
37
|
-
"eslint": "
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"prettier": "2.0.5"
|
|
36
|
+
"eslint": "8.18.0",
|
|
37
|
+
"eslint-config-nzap": "5.3.2",
|
|
38
|
+
"husky": "8.0.1",
|
|
39
|
+
"jest": "28.1.2",
|
|
40
|
+
"lint-staged": "13.0.3",
|
|
41
|
+
"prettier": "2.7.1"
|
|
43
42
|
}
|
|
44
43
|
}
|
package/readme.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# calc-vpd
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+

|
|
4
4
|
[](https://github.com/facebook/jest)
|
|
5
5
|
|
|
6
6
|
> VPD (Vapor Pressure Deficit) function
|
|
7
7
|
|
|
8
|
-
水蒸気圧 = 6.1078
|
|
9
|
-
飽和水蒸気量 = 217
|
|
10
|
-
飽差 = (100 - 相対湿度) \* 飽和水蒸気量 / 100
|
|
8
|
+
- 水蒸気圧 = 6.1078 \* 10 ^ ((7.5 - 気温 / (気温 + 237.3)))
|
|
9
|
+
- 飽和水蒸気量 = 217 - 水蒸気圧 / (気温 + 273.15)
|
|
10
|
+
- 飽差 = (100 - 相対湿度) \* 飽和水蒸気量 / 100
|
|
11
11
|
|
|
12
12
|
参考: http://bigbearfarm.blog.fc2.com/blog-entry-306.html
|
|
13
13
|
|
|
@@ -24,9 +24,9 @@ const calcVpd = require('calc-vpd')
|
|
|
24
24
|
|
|
25
25
|
calcVpd({ tmp: 29.2, hmd: 76.5 })
|
|
26
26
|
//=> {
|
|
27
|
-
// "swv": 29.
|
|
28
|
-
// "vp": 40.
|
|
29
|
-
// "vpd": 6.
|
|
27
|
+
// "swv": 29.080252344,
|
|
28
|
+
// "vp": 40.518038231,
|
|
29
|
+
// "vpd": 6.833859301,
|
|
30
30
|
// }
|
|
31
31
|
```
|
|
32
32
|
|
|
@@ -52,16 +52,3 @@ vpd: 飽差
|
|
|
52
52
|
## License
|
|
53
53
|
|
|
54
54
|
MIT © [elzup](https://elzup.com)
|
|
55
|
-
|
|
56
|
-
## Contributors
|
|
57
|
-
|
|
58
|
-
Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):
|
|
59
|
-
|
|
60
|
-
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
|
|
61
|
-
<!-- prettier-ignore -->
|
|
62
|
-
| [<img src="https://avatars3.githubusercontent.com/u/2284908?v=4" width="100px;"/><br /><sub><b>elzup</b></sub>](https://elzup.com)<br />[💻](https://github.com/elzup/calc-vpd/commits?author=elzup "Code") |
|
|
63
|
-
| :---: |
|
|
64
|
-
|
|
65
|
-
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
|
66
|
-
|
|
67
|
-
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!
|