Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add therm enhancement to NOAA #62

Closed
thecivvie opened this issue Feb 11, 2021 · 0 comments · Fixed by #65
Closed

Add therm enhancement to NOAA #62

thecivvie opened this issue Feb 11, 2021 · 0 comments · Fixed by #65
Labels
enhancement New feature or request

Comments

@thecivvie
Copy link

thecivvie commented Feb 11, 2021

I added the therm enhancement to the noaa scripts

 # determine which enhancements to create based on sunlight/dark
 if [ "${SUN_ELEV}" -gt "${SUN_MIN_ELEV}" ]; then
-  ENHANCEMENTS="ZA MCIR MCIR-precip MSA MSA-precip HVC-precip HVCT-precip HVC HVCT"
+  ENHANCEMENTS="ZA MCIR MCIR-precip MSA MSA-precip HVC-precip HVCT-precip HVC HVCT therm"
   daylight="true"
 else
-  ENHANCEMENTS="ZA MCIR MCIR-precip"
+  ENHANCEMENTS="ZA MCIR MCIR-precip therm"
   daylight="false"
 fi

@@ -116,6 +116,9 @@ for enhancement in $ENHANCEMENTS; do
     "HVCT-precip")
       proc_script="noaa_hvct_precip.sh"
       ;;
+    "therm")
+      proc_script="noaa_therm.sh"
+      ;;
   esac

   if [ -z "${proc_script}" ]; then

NOAA.SH:

# import common lib and settings
. "$HOME/.noaa-v2.conf"
. "$NOAA_HOME/scripts/common.sh"

# input params
MAP_OVERLAY=$1
INPUT_WAV=$2
OUTPUT_IMAGE=$3

# produce the output image
$WXTOIMG -o -m "${MAP_OVERLAY}" -e "therm" "${INPUT_WAV}" "${OUTPUT_IMAGE}"

As yet untested due to constant power failures here

@jekhokie jekhokie added the enhancement New feature or request label Feb 12, 2021
@jekhokie jekhokie linked a pull request Feb 12, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants