Author Topic: Goes16 GIF Animation  (Read 8899 times)

0 Members and 1 Guest are viewing this topic.

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6364
    • Valentine Nebraska's Real-Time Weather
Goes16 GIF Animation
« on: January 16, 2019, 05:29:09 AM »
NOAA is generating GIF Animation of the goes 16 satellite images should you want to add a gif to website.  This is great having these available in Animation.

Example: https://cdn.star.nesdis.noaa.gov/GOES16/ABI/GIFS/GOES16-NR-GEOCOLOR-600x600.gif

Link to all images here: https://www.star.nesdis.noaa.gov/GOES/sectors_index.php
« Last Edit: January 16, 2019, 05:34:01 AM by ValentineWeather »
Randy

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Goes16 GIF Animation
« Reply #1 on: January 16, 2019, 10:43:21 AM »
Very interesting, Randy!

Lots of changes to the GOES16 image availability including loops of all the bands as well as animated GIF's for select bands.  The animations are a bit brisk for my taste, but as an easy to implement alternative they're great.  There are also 'loops' available for all bands.

Much food for thought...
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6364
    • Valentine Nebraska's Real-Time Weather
Re: Goes16 GIF Animation
« Reply #2 on: January 16, 2019, 10:55:40 AM »
I thought the same, the speed of animation was on brisk side but works nicely vs what I was using as my front index page satellite.
Randy

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6364
    • Valentine Nebraska's Real-Time Weather
Re: Goes16 GIF Animation
« Reply #3 on: January 16, 2019, 03:09:27 PM »
Added 3 Goes16 Gif animations, 2 IR's and my favorite nighttime Geocolor
 [ You are not allowed to view attachments ]
Randy

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Goes16 GIF Animation
« Reply #4 on: March 16, 2019, 11:41:44 AM »
i've worked up scripts for these GOES16 and GOES17 GIF animations.

They're much less bandwidth intensive than my HAniS-based loops, and they're available on my scripts page.

The disadvantage is that they're only producing GIF animations of seven satellite bands, so the HAniS versions are still useful if you want to see loops of all of the satellite bands.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline SoMDWx

  • Forecaster
  • *****
  • Posts: 1014
    • Southern Maryland Weather
Re: Goes16 GIF Animation
« Reply #5 on: March 16, 2019, 01:38:07 PM »
Thanks Jerry.

It appears that the GOES16 zip file would extract everything.... Gives me an unexpected error....

Jim

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Goes16 GIF Animation
« Reply #6 on: March 16, 2019, 01:48:11 PM »
Thanks Jerry.

It appears that the GOES16 zip file would extract everything.... Gives me an unexpected error....

Jim
Sorry about that! :oops: This sometimes happens when I repeatedly overwrite files in a zip, as I was doing with this one.

New zip tested and now available.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6364
    • Valentine Nebraska's Real-Time Weather
Re: Goes16 GIF Animation
« Reply #7 on: March 16, 2019, 02:18:04 PM »
Works much better than the Hanis version, thanks  [tup]
Randy

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6364
    • Valentine Nebraska's Real-Time Weather
Re: Goes16 GIF Animation
« Reply #8 on: March 16, 2019, 02:46:51 PM »
Looks like nr can't be used as a default sector. Reinstalled make sure something wasn't corrupt when I make this change on the .php doesn't work.
 [ You are not allowed to view attachments ]
« Last Edit: March 16, 2019, 03:07:31 PM by ValentineWeather »
Randy

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Goes16 GIF Animation
« Reply #9 on: March 16, 2019, 03:18:48 PM »
Looks like nr can't be used as a default sector. Reinstalled make sure something wasn't corrupt when I make this change on the .php doesn't work.
 [ You are not allowed to view attachments ]
It looks like you tried to edit the 'includes' file, Randy.  'nr' works just fine as the default when it's entered into the main script.

Beware of the includes file's 'Settings' because they're only for testing purposes and will be overridden by the main script's settings.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6364
    • Valentine Nebraska's Real-Time Weather
Re: Goes16 GIF Animation
« Reply #10 on: March 16, 2019, 03:23:56 PM »
Yes, I did edit includes and changed default also and now is working. 

Not sure what happened but now working. I did 2 different installs and when I changed the default to nr I got nothing but broken image. 3rd times a charm I guess.
« Last Edit: March 16, 2019, 03:27:59 PM by ValentineWeather »
Randy

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Goes16 GIF Animation
« Reply #11 on: March 16, 2019, 03:30:20 PM »
Works much better than the Hanis version, thanks  [tup]
I agree.  I've removed the HAniS versions from my 'Quick Access' menu but left them in my 'Satellites' menu.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Goes16 GIF Animation
« Reply #12 on: March 16, 2019, 03:33:03 PM »
Yes, I did edit includes and changed default also and now is working. 

Not sure what happened but now working. I did 2 different installs and when I changed the default to nr I got nothing but broken image. 3rd times a charm I guess.
Just to be sure, I've modified the script files slightly eliminating a little leftover dead wood from my HAniS rewrites.  There's a refreshed zip on my Scripts page.

I would urge anyone who has had problems with this script to re-download and reinstall.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline SoMDWx

  • Forecaster
  • *****
  • Posts: 1014
    • Southern Maryland Weather
Re: Goes16 GIF Animation
« Reply #13 on: March 16, 2019, 05:59:43 PM »
Jerry,
  Great stuff! Again.....

I see you can set an initial site when you bring up the GOES script. Is there a way to pass a varible into the script to dynamically change the initial view?  I.E change sector.

Jim

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Goes16 GIF Animation
« Reply #14 on: March 16, 2019, 06:04:37 PM »
Jerry,
  Great stuff! Again.....

I see you can set an initial site when you bring up the GOES script. Is there a way to pass a varible into the script to dynamically change the initial view?  I.E change sector.

Jim
In the main script's 'Settings' you'll see a setting for '$sector' along with the possible entries.  This will bring up your desired default:
Code: [Select]
$sector = 'umv'; // IMPORTAMT!!! Default sector location is set here
/* USE ONE of THESE for $sector!
"pnw" is Pacific Northwest
    "nr" is Northern Rockies
    "umv" is Upper Mississippi Valley
    "cgl" is Great Lakes
    "ne" is Northeast
    "psw" is Pacific Southwest
    "sr" is Southern Rockies
    "sp" is Southern Plains
    "smv" is Southern Mississippi Valley
    "se" is Southeast
    "taw" is Tropical Atlantic-Wide
    "gm" is Gulf of Mexico
    "car" is Caribbean
    "eus" is U.S. Atlantic Coast
    "pr" is Puerto Rico
    "cam" is Central America
    "eep" is Equatorial Eastern Pacific
    "eus" is Eastern US
    "mex" is Mexico
    "nsa" is Northern South America
    "ssa" is Southern South America
    "FD" is Full Disk */
in the GOES16 script.  (There is no 'FD' GIF Animation available.  Corrected zip uploaded.)
« Last Edit: March 16, 2019, 06:14:13 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline SoMDWx

  • Forecaster
  • *****
  • Posts: 1014
    • Southern Maryland Weather
Re: Goes16 GIF Animation
« Reply #15 on: March 16, 2019, 06:17:09 PM »
Thanks. What I am talking about is to be able to run the script with a command line option outside the program to "set" your sector.. ie. wxGOES16-GIFLoops.php?sector=eus.

This would make it possible to run just one script for my normal satellite page that focuses in on the eastern US and have the same script run from my tropical page that centered on the Caribbean...

Jim

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Goes16 GIF Animation
« Reply #16 on: March 16, 2019, 06:59:25 PM »
Thanks. What I am talking about is to be able to run the script with a command line option outside the program to "set" your sector.. ie. wxGOES16-GIFLoops.php?sector=eus.

This would make it possible to run just one script for my normal satellite page that focuses in on the eastern US and have the same script run from my tropical page that centered on the Caribbean...

Jim
Sorry, but I'm caught up in another coding project at the moment.  Maybe later?
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Goes16 GIF Animation
« Reply #17 on: March 16, 2019, 08:13:29 PM »
OK, Jim, it was easier than I feared.  Just two additional lines of code, and we're all set.

The command line works just like '?sce=view', only it's like '?sector=pnw' in the GOES17 script or like '?sector=nr' in the GOES16 Script.  I've overridden my defaults in the foregoing links.

New zips are on my scripts page.  There have been modifications to all of them, so upload all of them after you've selected your default $sector in the main script.

Thanks for the suggestion!!! [tup]
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline SoMDWx

  • Forecaster
  • *****
  • Posts: 1014
    • Southern Maryland Weather
Re: Goes16 GIF Animation
« Reply #18 on: March 16, 2019, 08:56:35 PM »
I don't care who you are, you gotta like this!   =D>

Thanks Jerry!


Offline SoMDWx

  • Forecaster
  • *****
  • Posts: 1014
    • Southern Maryland Weather
Re: Goes16 GIF Animation
« Reply #19 on: March 16, 2019, 09:06:19 PM »
Jerry,

How did you scale everything to fit on your page? Some of the images appear to be larger than my iframe...

Jim

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Goes16 GIF Animation
« Reply #20 on: March 16, 2019, 09:48:48 PM »
Jerry,

How did you scale everything to fit on your page? Some of the images appear to be larger than my iframe...

Jim
Be sure $standAlone = false.  The over-sized images will appear if $wideScreen or $standAlone are true.

If you've just pulled in the Stand Alone version without modification, that's your problem.  You'll need a version that doesn't use $wideScreen or $standAlone.  Maybe I could work up a version tomorrow that uses a switch like $standAloneNarrow to turn off the too-wide GIF's.

How did you incorporate the scripts?
« Last Edit: March 16, 2019, 09:54:47 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Goes16 GIF Animation
« Reply #21 on: March 16, 2019, 10:43:08 PM »
I think I've solved your problem in the GOES16 script with a $displayWide setting in the main script.  Set it to false, and see if your GIF's behave themselves.  Replace all of the script files!!!

Another new GIF  :oops: zip is up...

While I'm at it, I've also just modified the GOES17 script to include the $displayWide setting, so that ZIP is up as well.
« Last Edit: March 16, 2019, 11:08:48 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline SoMDWx

  • Forecaster
  • *****
  • Posts: 1014
    • Southern Maryland Weather
Re: Goes16 GIF Animation
« Reply #22 on: March 17, 2019, 08:11:20 AM »
Works great! Thanks!

I used the SA version since i do not use the templates....

Jim

Offline SoMDWx

  • Forecaster
  • *****
  • Posts: 1014
    • Southern Maryland Weather
Re: Goes16 GIF Animation
« Reply #23 on: March 17, 2019, 05:49:00 PM »
Jerry ,

Is it possible to add the Caribbean image to the GOES16 script? I see that it has been left out...

Jim

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Goes16 GIF Animation
« Reply #24 on: March 17, 2019, 07:15:29 PM »
Jerry ,

Is it possible to add the Caribbean image to the GOES16 script? I see that it has been left out...

Jim
Good Catch, Jim!  I hadn't properly configured the Caribbean, and when the GIF didn't appear I removed it.

All good now in the new zip on my scripts page.

Thanks for your help, and don't forget to set '$displayWide = false;' for your template because I always set it to 'true' by default. :-)
Regards, Jerry Wilkins
gwwilk@gmail.com