From e424d96f573875e8e0e2418b211701e57f491a15 Mon Sep 17 00:00:00 2001 From: cyschneck <22159116+cyschneck@users.noreply.github.com> Date: Mon, 6 Jan 2025 15:53:13 -0700 Subject: [PATCH 1/4] fao equations --- ncl/ncl_entries/meteorology.ipynb | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/ncl/ncl_entries/meteorology.ipynb b/ncl/ncl_entries/meteorology.ipynb index 5837d9a3..9488a63d 100644 --- a/ncl/ncl_entries/meteorology.ipynb +++ b/ncl/ncl_entries/meteorology.ipynb @@ -78,7 +78,15 @@ "source": [ "## daylight_fao56\n", "\n", - "NCL's `daylight_fao56` calculates the maximum number of daylight hours as described in the Food and Agriculture Organization (FAO) Irrigation and Drainage Paper 56 [(Chapter 3, Equation 34)](https://www.fao.org/4/X0490E/x0490e07.htm#chapter%203%20%20%20meteorological%20data) {footcite}`allan_fao_1998`" + "NCL's `daylight_fao56` calculates the maximum number of daylight hours as described in the Food and Agriculture Organization (FAO) Irrigation and Drainage Paper 56 [(Chapter 3, Equation 34)](https://www.fao.org/4/X0490E/x0490e07.htm#chapter%203%20%20%20meteorological%20data) {footcite}`allan_fao_1998`\n", + "\n", + "Where the maximum number of daylight hours, N, is calulated as:\n", + "\n", + "{math}`{\\omega}_{s} = arccos[-tan({\\phi})tan({\\delta})]`\n", + "\n", + "Where {math}`{\\omega}_{s}` is the sunset hour angle in radians [(Chapter 3, Eqution 25)](https://www.fao.org/4/X0490E/x0490e07.htm#chapter%203%20%20%20meteorological%20data) {footcite}`allan_fao_1998`\n", + "\n", + "{math}`N = \\frac{24}{{\\pi}} {\\omega}_{s}`" ] }, { @@ -125,7 +133,11 @@ "source": [ "## satvpr_temp_fao56\n", "\n", - "NCL's `satvpr_temp_fao56` calculates saturation vapor pressure using temperature as described in the Food and Agriculture Organization (FAO) Irrigation and Drainage Paper 56 [(Chapter 3, Equation 11)](https://www.fao.org/4/x0490e/x0490e07.htm) {footcite}`allan_fao_1998`" + "NCL's `satvpr_temp_fao56` calculates saturation vapor pressure using temperature as described in the Food and Agriculture Organization (FAO) Irrigation and Drainage Paper 56 [(Chapter 3, Equation 11)](https://www.fao.org/4/x0490e/x0490e07.htm) {footcite}`allan_fao_1998`\n", + "\n", + "Where the saturation vapor pressure, {math}`e^°` (kPa), at air temperature {math}`T` (°C) is calculated as:\n", + "\n", + "{math}`e^°(T) = 0.6108 {\\exp}[\\frac{17.27T}{T + 237.3}]`" ] }, { @@ -169,7 +181,11 @@ "source": [ "## satvpr_tdew_fao56\n", "\n", - "NCL's `satvpr_tdew_fao56` calculates the actual saturation vapor pressure using dewpoint temperature as described in the Food and Agriculture Organization (FAO) Irrigation and Drainage Paper 56 [(Chapter 3, Equation 14)](https://www.fao.org/4/x0490e/x0490e07.htm) {footcite}`allan_fao_1998`" + "NCL's `satvpr_tdew_fao56` calculates the actual saturation vapor pressure using dewpoint temperature as described in the Food and Agriculture Organization (FAO) Irrigation and Drainage Paper 56 [(Chapter 3, Equation 14)](https://www.fao.org/4/x0490e/x0490e07.htm) {footcite}`allan_fao_1998`\n", + "\n", + "Where the actual vapor pressure, {math}`e_{a}` (kPa), is saturation vapor presssure at a specific dewpoint temperature, {math}`T_{dew}` (°C) which is calculated as:\n", + "\n", + "{math}`e_{a} = e^°(T_{dew}) = 0.6108 {\\exp}[\\frac{17.27 T_{dew}}{T_{dew} + 237.3}]`" ] }, { @@ -206,7 +222,11 @@ "source": [ "## satvpr_slope_fao56\n", "\n", - "NCL's `satvpr_slope_fao56` calculates the slope of the saturation vapor pressure curve as described in the Food and Agriculture Organization (FAO) Irrigation and Drainage Paper 56 [(Chapter 3, Equation 13)](https://www.fao.org/4/x0490e/x0490e07.htm) {footcite}`allan_fao_1998`" + "NCL's `satvpr_slope_fao56` calculates the slope of the saturation vapor pressure curve as described in the Food and Agriculture Organization (FAO) Irrigation and Drainage Paper 56 [(Chapter 3, Equation 13)](https://www.fao.org/4/x0490e/x0490e07.htm) {footcite}`allan_fao_1998`\n", + "\n", + "Where the slope of saturation vapor pressure curve, {math}`{\\Delta}` (kPa), at air temperature {math}`T` (°C) is calculated as:\n", + "\n", + "{math}`{\\Delta} = \\frac{4098 [0.6108 {\\exp}[\\frac{17.27T}{T + 237.3}]}{(T + 237.3)^2}`" ] }, { From 4abb3dcde19521d6dfef0d5033adf5975c03bfa6 Mon Sep 17 00:00:00 2001 From: cyschneck <22159116+cyschneck@users.noreply.github.com> Date: Mon, 6 Jan 2025 15:57:45 -0700 Subject: [PATCH 2/4] fix spelling --- ncl/ncl_entries/meteorology.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ncl/ncl_entries/meteorology.ipynb b/ncl/ncl_entries/meteorology.ipynb index 9488a63d..2b038be6 100644 --- a/ncl/ncl_entries/meteorology.ipynb +++ b/ncl/ncl_entries/meteorology.ipynb @@ -80,11 +80,11 @@ "\n", "NCL's `daylight_fao56` calculates the maximum number of daylight hours as described in the Food and Agriculture Organization (FAO) Irrigation and Drainage Paper 56 [(Chapter 3, Equation 34)](https://www.fao.org/4/X0490E/x0490e07.htm#chapter%203%20%20%20meteorological%20data) {footcite}`allan_fao_1998`\n", "\n", - "Where the maximum number of daylight hours, N, is calulated as:\n", + "Where the maximum number of daylight hours, N, is calculated as:\n", "\n", "{math}`{\\omega}_{s} = arccos[-tan({\\phi})tan({\\delta})]`\n", "\n", - "Where {math}`{\\omega}_{s}` is the sunset hour angle in radians [(Chapter 3, Eqution 25)](https://www.fao.org/4/X0490E/x0490e07.htm#chapter%203%20%20%20meteorological%20data) {footcite}`allan_fao_1998`\n", + "Where {math}`{\\omega}_{s}` is the sunset hour angle in radians [(Chapter 3, Equation 25)](https://www.fao.org/4/X0490E/x0490e07.htm#chapter%203%20%20%20meteorological%20data) {footcite}`allan_fao_1998`\n", "\n", "{math}`N = \\frac{24}{{\\pi}} {\\omega}_{s}`" ] @@ -183,7 +183,7 @@ "\n", "NCL's `satvpr_tdew_fao56` calculates the actual saturation vapor pressure using dewpoint temperature as described in the Food and Agriculture Organization (FAO) Irrigation and Drainage Paper 56 [(Chapter 3, Equation 14)](https://www.fao.org/4/x0490e/x0490e07.htm) {footcite}`allan_fao_1998`\n", "\n", - "Where the actual vapor pressure, {math}`e_{a}` (kPa), is saturation vapor presssure at a specific dewpoint temperature, {math}`T_{dew}` (°C) which is calculated as:\n", + "Where the actual vapor pressure, {math}`e_{a}` (kPa), is saturation vapor pressure at a specific dewpoint temperature, {math}`T_{dew}` (°C) which is calculated as:\n", "\n", "{math}`e_{a} = e^°(T_{dew}) = 0.6108 {\\exp}[\\frac{17.27 T_{dew}}{T_{dew} + 237.3}]`" ] From 09c072561441905c7bef64dbd4293382fece528b Mon Sep 17 00:00:00 2001 From: cyschneck <22159116+cyschneck@users.noreply.github.com> Date: Mon, 6 Jan 2025 16:20:13 -0700 Subject: [PATCH 3/4] update edits --- ncl/ncl_entries/meteorology.ipynb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ncl/ncl_entries/meteorology.ipynb b/ncl/ncl_entries/meteorology.ipynb index 2b038be6..dd576fdf 100644 --- a/ncl/ncl_entries/meteorology.ipynb +++ b/ncl/ncl_entries/meteorology.ipynb @@ -82,11 +82,11 @@ "\n", "Where the maximum number of daylight hours, N, is calculated as:\n", "\n", - "{math}`{\\omega}_{s} = arccos[-tan({\\phi})tan({\\delta})]`\n", + "{math}`N = \\frac{24}{{\\pi}} {\\omega}_{s}`\n", "\n", "Where {math}`{\\omega}_{s}` is the sunset hour angle in radians [(Chapter 3, Equation 25)](https://www.fao.org/4/X0490E/x0490e07.htm#chapter%203%20%20%20meteorological%20data) {footcite}`allan_fao_1998`\n", "\n", - "{math}`N = \\frac{24}{{\\pi}} {\\omega}_{s}`" + "{math}`{\\omega}_{s} = arccos[-tan({\\phi})tan({\\delta})]`" ] }, { @@ -135,7 +135,7 @@ "\n", "NCL's `satvpr_temp_fao56` calculates saturation vapor pressure using temperature as described in the Food and Agriculture Organization (FAO) Irrigation and Drainage Paper 56 [(Chapter 3, Equation 11)](https://www.fao.org/4/x0490e/x0490e07.htm) {footcite}`allan_fao_1998`\n", "\n", - "Where the saturation vapor pressure, {math}`e^°` (kPa), at air temperature {math}`T` (°C) is calculated as:\n", + "Where the saturation vapor pressure, {math}`e^°` (kPa), at air temperature, {math}`T` (°C), is calculated as:\n", "\n", "{math}`e^°(T) = 0.6108 {\\exp}[\\frac{17.27T}{T + 237.3}]`" ] @@ -183,7 +183,7 @@ "\n", "NCL's `satvpr_tdew_fao56` calculates the actual saturation vapor pressure using dewpoint temperature as described in the Food and Agriculture Organization (FAO) Irrigation and Drainage Paper 56 [(Chapter 3, Equation 14)](https://www.fao.org/4/x0490e/x0490e07.htm) {footcite}`allan_fao_1998`\n", "\n", - "Where the actual vapor pressure, {math}`e_{a}` (kPa), is saturation vapor pressure at a specific dewpoint temperature, {math}`T_{dew}` (°C) which is calculated as:\n", + "Where the actual vapor pressure, {math}`e_{a}` (kPa), is saturation vapor pressure at a specific dewpoint temperature, {math}`T_{dew}` (°C), which is calculated as:\n", "\n", "{math}`e_{a} = e^°(T_{dew}) = 0.6108 {\\exp}[\\frac{17.27 T_{dew}}{T_{dew} + 237.3}]`" ] @@ -226,7 +226,7 @@ "\n", "Where the slope of saturation vapor pressure curve, {math}`{\\Delta}` (kPa), at air temperature {math}`T` (°C) is calculated as:\n", "\n", - "{math}`{\\Delta} = \\frac{4098 [0.6108 {\\exp}[\\frac{17.27T}{T + 237.3}]}{(T + 237.3)^2}`" + "{math}`{\\Delta} = \\frac{4098 (0.6108 {\\exp}[\\frac{17.27T}{T + 237.3}])}{(T + 237.3)^2}`" ] }, { From 881372c9b8a166e6289acb08460c991abef3678c Mon Sep 17 00:00:00 2001 From: cyschneck <22159116+cyschneck@users.noreply.github.com> Date: Wed, 8 Jan 2025 16:00:04 -0700 Subject: [PATCH 4/4] sunrise equation --- ncl/ncl_entries/meteorology.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ncl/ncl_entries/meteorology.ipynb b/ncl/ncl_entries/meteorology.ipynb index dd576fdf..0b2782cf 100644 --- a/ncl/ncl_entries/meteorology.ipynb +++ b/ncl/ncl_entries/meteorology.ipynb @@ -84,7 +84,7 @@ "\n", "{math}`N = \\frac{24}{{\\pi}} {\\omega}_{s}`\n", "\n", - "Where {math}`{\\omega}_{s}` is the sunset hour angle in radians [(Chapter 3, Equation 25)](https://www.fao.org/4/X0490E/x0490e07.htm#chapter%203%20%20%20meteorological%20data) {footcite}`allan_fao_1998`\n", + "Where {math}`{\\omega}_{s}` is the sunset hour angle in radians [(Chapter 3, Equation 25)](https://www.fao.org/4/X0490E/x0490e07.htm#chapter%203%20%20%20meteorological%20data) {footcite}`allan_fao_1998` which is calculated from the latitude of the observer on Earth ({math}`\\phi`) and the sun's declination ({math}`\\delta`):\n", "\n", "{math}`{\\omega}_{s} = arccos[-tan({\\phi})tan({\\delta})]`" ]