Author Topic: UPdated wxGOES16&17(18)-HAniSLoops with New Image Series (& More!)  (Read 7226 times)

0 Members and 1 Guest are viewing this topic.

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Long story short, I noticed that NESDIS had added three more composited image series to their satellite services, Sandwich, Day Cloud Phase, and Night Microphysics.  After being frustrated in my efforts to add these new series to this script, I saw that the filenames in the directories I was scraping were truncated and not valid.

I contacted NESDIS and within just five minutes I received a kind and very helpful reply that pointed me to JSON Data where the filenames could be obtained intact and with much less brute force than my directory scraping used.  I prevailed upon the ever helpful and incredibly talented Ken True to modify the <iframe> portion of these script sets in order to use the JSON Data.  Always accommodating and always creative, he produced new <iframe> scripts that do the trick!

So, there is a new wxGOES16-HAniSLoops version as well as a new wxGOES17-HAniSLoops version up on my site and available via my scripts page.

Thanks a million, Ken, for modifying both <iframes> =D&gt; \:D/ =D&gt;
« Last Edit: August 11, 2022, 05:10:51 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline mikeym2m

  • Senior Contributor
  • ****
  • Posts: 153
    • MikeyM's Thornhurst PA Weather
Re: UPdated wxGOES16&17-HAniSLoops with New Image Series (& More!)
« Reply #1 on: June 18, 2020, 10:42:30 AM »
Thanks Jerry and Ken  [tup]  [tup]

MikeyM

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: UPdated wxGOES16&17-HAniSLoops with New Image Series (& More!)
« Reply #2 on: June 18, 2020, 04:56:50 PM »
You're very welcome, Jerry!  It was quite an exercise to determine the underlying naming convention used by NESDIS for the JSON filenames, but once that was cracked, it was very simple to get the data needed by your script to display the images with HAniS.
Also, nice job in expanding the image types displayed by the scripts!!
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: UPdated wxGOES16&17-HAniSLoops with New Image Series (& More!)
« Reply #3 on: June 20, 2020, 12:44:55 PM »
I would recommend that everyone who is using my older GOES16 and GOES17 HAniS-Animated scripts update to the new, vastly improved :grin: version.  It will greatly reduce the load on the NESDIS servers.

Along those lines, I've been using a modified version of my old GOES16 HAniS-Animated script as my satellite animation in my 'index.php'.  I've created a generalized version of this script using Ken's JSON-Data filename acquisition technique.  It works for all those '$sectors' indicated in the comments, namely all continental US sectors and Puerto Rico.  It can be set to your liking via the parameters indicated.

This, in context, is how it's displayed in my 'index.php':
Code: [Select]
  <table width="99%" style="border: none">
  <tr><td align="center">
    <a class="hvr-glow hvr-grow" onclick="x=window.open('https://radar.weather.gov/Conus/Loop/uppermissvly_loop.gif')" target="_blank" title="Larger View in New Tab"><img src="https://radar.weather.gov/Conus/Loop/uppermissvly_loop.gif" alt="Regional Radar" width="320" height="240" style="margin: 0px; padding: 0px; border: none; cursor:pointer" /></a>
  </td>
  <td align="center" style="padding:0px">
    <a class="hvr-glow hvr-grow" title="Operational US Satellite Loops in New Tab"><iframe id="satLoops" width="320" height="238" align="left" src="wxGOES16-HAniSLoops-iframe-index.php" style="margin: 0px; padding: 0px; border: none; cursor:pointer"></iframe></a>
  </td>
  </tr>
  <tr><td colspan="2" class="subHeader" align="center" style="font-size:75%; float:none">Radar image courtesy of <a href="https://radar.weather.gov/" target="_blank" title="Opens in New Tab">NWS Radar</a> &amp; satellite images courtesy of <a href="https://www.star.nesdis.noaa.gov/GOES/sectors_index.php" target="_blank" title="Opens in New Tab">NESDIS</a>.</td></tr>
  </table>
« Last Edit: June 20, 2020, 12:50:03 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline lddaly

  • Forecaster
  • *****
  • Posts: 490
Re: UPdated wxGOES16&17-HAniSLoops with New Image Series (& More!)
« Reply #4 on: June 23, 2020, 12:18:15 AM »
Thank you, Ken and Jerry! I have wxGOES16-HAniSLoops.php running on my site. The only change I made was adding css to be consistent with wxnwsradar.php and display the dropdown categories under Satellite View with black text on a white background.
Code: [Select]
#selectors optgroup {
  color: black;
  background: white;
}
#selectors option {
  background-color:<?php echo $btnColor?>;
  border-radius:7px;
  color:<?php echo $btnTextColor?>;
}
#selectors select {
  background-color:<?php echo $btnColor?>;
  border-radius:7px;
  color:<?php echo $btnTextColor?>;
}

Offline josecmorales

  • Senior Contributor
  • ****
  • Posts: 294
Re: UPdated wxGOES16&17-HAniSLoops with New Image Series (& More!)
« Reply #5 on: June 23, 2020, 10:12:36 AM »
Amazing work! [tup]
Vantage Pro2 + UV, Airlink, Purpleair, Meteobridge.
Twitter: ClimaGuayana
Blitzortung station: 2934
Weatherlink: ClimaGuayana

Offline K6GKM

  • CamWX.com
  • Contributor
  • ***
  • Posts: 124
    • CamWX
Re: UPdated wxGOES16&17-HAniSLoops with New Image Series (& More!)
« Reply #6 on: June 25, 2020, 01:37:12 PM »
This is a wonderful script!  My only feedback concerns the directory structure in the zip package in which it was delivered.  The script is looking for the hanis .js resources in a /HAniS folder, but the directory in the zip file is called /hanis4.10.  It took me a while to figure out the script was looking for the .js files in the wrong place.

Otherwise, this is a fantastic addition.  Great work!   [tup]

-Grant
Grant Miles
Camarillo, CA, USA
Owner/Admin - CamWX.com
SKYWARN Spotter
Station Hardware: Davis Vantage Pro2 Plus w/ 24hr FARS
Station Software: Weather Display, Weather Message, FWI Calculator, StartWatch, with social media & messaging automation using Make.com, Twilio, and Brevo.


Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: UPdated wxGOES16&17-HAniSLoops with New Image Series (& More!)
« Reply #7 on: June 25, 2020, 01:46:06 PM »
This is a wonderful script!  My only feedback concerns the directory structure in the zip package in which it was delivered.  The script is looking for the hanis .js resources in a /HAniS folder, but the directory in the zip file is called /hanis4.10.  It took me a while to figure out the script was looking for the .js files in the wrong place.

Otherwise, this is a fantastic addition.  Great work!   [tup]

-Grant
Thanks for the kind words, Grant, and for the most helpful feedback.  I was apparently on autopilot when I constructed these GOES16&17 zips.  :oops: Sorry about that.

Corrected zips are now available on my scripts page.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline AZmonsooncats

  • Current weather conditions in North Phoenix, Ariz
  • Senior Contributor
  • ****
  • Posts: 248
  • Me & My Little Sis!!
    • Pepper Ridge North Valley  Weather and Lightning
Re: UPdated wxGOES16&17-HAniSLoops with New Image Series (& More!)
« Reply #8 on: August 14, 2020, 08:11:19 PM »
Hi I updated these scripts and have them working here  http://pepperridgenorthvalley.com/radar.php

However I noticed a small glitch on the satellite band selector I can only get the first 10 options on the dropdown menu. The exceptions all the when you selected Satellite view of Goes Full Disk or Continental US you get all 16 satellite band options.  ](*,) Do have any idea what could be causing this error? I am using the stand alone version since my template is highly modified version.

Jeanette
"Some dreams are in the night time, And some seem like yesterday
But leaves turn brown and fade, Ships sail away
You long to say a thousand words…but Seasons Change."



CWOP:CW3794, MesoWest: C3794, Facebook: https://www.facebook.com/PepperRidgeNorthValleyWX/

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: UPdated wxGOES16&17-HAniSLoops with New Image Series (& More!)
« Reply #9 on: August 14, 2020, 08:25:06 PM »
Not an error, just scripted to display only valid options.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline AZmonsooncats

  • Current weather conditions in North Phoenix, Ariz
  • Senior Contributor
  • ****
  • Posts: 248
  • Me & My Little Sis!!
    • Pepper Ridge North Valley  Weather and Lightning
Re: UPdated wxGOES16&17-HAniSLoops with New Image Series (& More!)
« Reply #10 on: August 14, 2020, 08:54:40 PM »
Not an error, just scripted to display only valid options.

Wondering why on your scripts page it appears as options under Sat band but not on mine did alter the script to display water vapor maps for the Us Sectors?

Jeanette
« Last Edit: August 14, 2020, 10:30:09 PM by AZmonsooncats »
"Some dreams are in the night time, And some seem like yesterday
But leaves turn brown and fade, Ships sail away
You long to say a thousand words…but Seasons Change."



CWOP:CW3794, MesoWest: C3794, Facebook: https://www.facebook.com/PepperRidgeNorthValleyWX/

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: UPdated wxGOES16&17-HAniSLoops with New Image Series (& More!)
« Reply #11 on: August 14, 2020, 08:58:55 PM »
I’ll check it out when my cat is done with his lap-nap...
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: UPdated wxGOES16&17-HAniSLoops with New Image Series (& More!)
« Reply #12 on: August 14, 2020, 10:01:22 PM »
After having played with this for a while, I see that you've adapted the StandAlone version to your web page.  When I viewed the StandAlone version on my site (accessed via 'Larger Image Loop'), I saw that the same selector limitations existed.

I think I've found and corrected the problem, which was a failure to include the $standAlone variable in the variables that allow all of the selector options to display.  Hence the default for the StandAlone script version was the limited selector options.

There's a new wxGOES17-HAniSLoops.zip up on my scripts page that should do the trick for you.

Thanks for picking up on this problem!
« Last Edit: August 14, 2020, 10:04:23 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline AZmonsooncats

  • Current weather conditions in North Phoenix, Ariz
  • Senior Contributor
  • ****
  • Posts: 248
  • Me & My Little Sis!!
    • Pepper Ridge North Valley  Weather and Lightning
Re: UPdated wxGOES16&17-HAniSLoops with New Image Series (& More!)
« Reply #13 on: August 14, 2020, 10:33:01 PM »
After having played with this for a while, I see that you've adapted the StandAlone version to your web page.  When I viewed the StandAlone version on my site (accessed via 'Larger Image Loop'), I saw that the same selector limitations existed.

I think I've found and corrected the problem, which was a failure to include the $standAlone variable in the variables that allow all of the selector options to display.  Hence the default for the StandAlone script version was the limited selector options.

There's a new wxGOES17-HAniSLoops.zip up on my scripts page that should do the trick for you.

Thanks for picking up on this problem!
After having played with this for a while, I see that you've adapted the StandAlone version to your web page.  When I viewed the StandAlone version on my site (accessed via 'Larger Image Loop'), I saw that the same selector limitations existed.

I think I've found and corrected the problem, which was a failure to include the $standAlone variable in the variables that allow all of the selector options to display.  Hence the default for the StandAlone script version was the limited selector options.

There's a new wxGOES17-HAniSLoops.zip up on my scripts page that should do the trick for you.

Thanks for picking up on this problem!

Thank you for checking theses are great scripts would the issue be similar on the Goes16 script? that is the one I am using right now on that page.

Jeanette
« Last Edit: August 14, 2020, 10:34:54 PM by AZmonsooncats »
"Some dreams are in the night time, And some seem like yesterday
But leaves turn brown and fade, Ships sail away
You long to say a thousand words…but Seasons Change."



CWOP:CW3794, MesoWest: C3794, Facebook: https://www.facebook.com/PepperRidgeNorthValleyWX/

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: UPdated wxGOES16&17-HAniSLoops with New Image Series (& More!)
« Reply #14 on: August 15, 2020, 12:37:38 AM »
Well,  so much for listening! :oops:

Sorry I missed the fact that your state only appears in the GOES16 images.  You are correct because the same problem was present there as well.

Belatedly fixed with a new zip as well.

My apologies, again.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline AZmonsooncats

  • Current weather conditions in North Phoenix, Ariz
  • Senior Contributor
  • ****
  • Posts: 248
  • Me & My Little Sis!!
    • Pepper Ridge North Valley  Weather and Lightning
Re: UPdated wxGOES16&17-HAniSLoops with New Image Series (& More!)
« Reply #15 on: August 15, 2020, 02:40:53 AM »
Well,  so much for listening! :oops:

Sorry I missed the fact that your state only appears in the GOES16 images.  You are correct because the same problem was present there as well.

Belatedly fixed with a new zip as well.

My apologies, again.

No problem it is working fine now at:   http://pepperridgenorthvalley.com/radar.php  thank you for the fixes.

One Last question can you restrict the width on Goes17 like you can on Goes 16 couldn't find that setting in Goes 17 map otherwise it works well haven't incorporated into the site yet due to being too wide and showing limited views of my state.

Jeanette
"Some dreams are in the night time, And some seem like yesterday
But leaves turn brown and fade, Ships sail away
You long to say a thousand words…but Seasons Change."



CWOP:CW3794, MesoWest: C3794, Facebook: https://www.facebook.com/PepperRidgeNorthValleyWX/

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: UPdated wxGOES16&17-HAniSLoops with New Image Series (& More!)
« Reply #16 on: August 15, 2020, 11:31:13 AM »
Unfortunately I never included the width restriction scheme in the GOES17 HAniS Loops script.

I've done so in the current version, but other than verifying that there are no scripting errors I haven't verified that the width restriction scheme works as intended.

Please give the latest wxGOES17-HAniSLoops.php a whirl, and let me know if you have issues with it.  The zip is available on my scripts page.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline mikeym2m

  • Senior Contributor
  • ****
  • Posts: 153
    • MikeyM's Thornhurst PA Weather
Re: UPdated wxGOES16&17-HAniSLoops with New Image Series (& More!)
« Reply #17 on: August 15, 2020, 12:06:55 PM »
Jerry

On the GEOS17_HAniSLoops.php when I use the "widescreen mode" only 10 Band options are appearing for Pacific Northwest, Pacific Southwest and Hawaii. All 20 Bands show in the "narrowscrren mode". I'm having the same problem with GEOS16 with all satellite views in "widescreen mode" showing only 10 "Bands" while all 20 Bands are showing in "narrowscreen mode". I'm seeing the same thing when I view GOES16 and GEOS17 on your website.

Thanks for taking a look.

MikeyM

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: UPdated wxGOES16&17-HAniSLoops with New Image Series (& More!)
« Reply #18 on: August 15, 2020, 02:38:11 PM »
Right you are!  The WideScreen logic was twisted up a bit in the includes script. #-o

I think the updated includes script, inc-wxGOES17HAniSLoops.php, solves that problem.

Check it out here by setting WideScreen mode.

The zip has been updated.

Let me know if problems persist.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline mikeym2m

  • Senior Contributor
  • ****
  • Posts: 153
    • MikeyM's Thornhurst PA Weather
Re: UPdated wxGOES16&17-HAniSLoops with New Image Series (& More!)
« Reply #19 on: August 15, 2020, 03:40:31 PM »
Jerry

Yes GOES17 looks good now in the widescreen with all 20 bands. I'll try to take a look at the GEOS17 script changes and see if I can Incorporate them into the GEOS16 scripts.

Thanks for the update and sorry to be a pain!

MikeyM

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: UPdated wxGOES16&17-HAniSLoops with New Image Series (& More!)
« Reply #20 on: August 15, 2020, 04:26:35 PM »
There are many differences between the GOES17 and the GOES16 includes scripts.  I managed to find the critical changes and have applied them to an updated includes script found on my scripts page.

You can check it out here on my website.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline mikeym2m

  • Senior Contributor
  • ****
  • Posts: 153
    • MikeyM's Thornhurst PA Weather
Re: UPdated wxGOES16&17-HAniSLoops with New Image Series (& More!)
« Reply #21 on: August 15, 2020, 04:33:00 PM »
Jerry

Thank you!   [tup] [tup]

MikeyM

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6364
    • Valentine Nebraska's Real-Time Weather
Re: UPdated wxGOES16&17-HAniSLoops with New Image Series (& More!)
« Reply #22 on: August 17, 2020, 01:50:04 PM »
Thanks again  [tup]
I do miss not having the gif loops, they died over the weekend. It was an easy way to input a satellite loop on the index page. I replaced it with my west view camera many probably enjoy more. Visitors will just have to dig a little for the regional satellite now.
Randy

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: UPdated wxGOES16&17-HAniSLoops with New Image Series (& More!)
« Reply #23 on: August 17, 2020, 03:37:42 PM »
You're welcome, Randy.

Which GIF loops died over the weekend?  Here are my GOES16 and GOES17 GIF loops.  They're still chugging along.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6364
    • Valentine Nebraska's Real-Time Weather
Re: UPdated wxGOES16&17-HAniSLoops with New Image Series (& More!)
« Reply #24 on: August 17, 2020, 04:21:49 PM »
I was grabbing the GIF directly off their site and the link broke Sunday.  It even had a broke sign which is now removed. I see they have a download GIF tab now which I missed. I'll use the new address thanks for the heads up it's still there and working.
Randy

 

anything