cloudy

Author Topic: Post Processing GRLevel3 Images...  (Read 21208 times)

0 Members and 1 Guest are viewing this topic.

Online TNETWeather

  • Kevin Reed (KrelvinAZ)
  • Global Moderator
  • Posts: 5,865
  • Gremlins are at work...
  • Mesa, AZ
    • TNET Weather Station - Mesa AZ
Post Processing GRLevel3 Images...
« on: September 17, 2006, 08:41:42 PM »
Just playing around...



Notes:
  • Cut original image to take off the ugly dbz bar.
  • Add new dbz bar on bottom with brown background
  • Add logo to bottom left corner of image - Not added using GRlevel3 logo.png

As a single image 590 x 646...

All you need is Time, Aptitude and Desire ... and you can build just about anything...

Offline aifan27

  • Tim
  • Posts: 2,857
  • Pennsylvania
    • Newtown Weather
Re: Post Processing GRLevel3 Images...
« Reply #1 on: September 17, 2006, 10:09:24 PM »
Kevin,

Looks very nice...Are you using the trial version or did you buy it?

Also, how did you cut off the dBZ bar and integrate your own that is part of the radar image?

Great job.  :)

--Tim

Online TNETWeather

  • Kevin Reed (KrelvinAZ)
  • Global Moderator
  • Posts: 5,865
  • Gremlins are at work...
  • Mesa, AZ
    • TNET Weather Station - Mesa AZ
Re: Post Processing GRLevel3 Images...
« Reply #2 on: September 17, 2006, 10:36:17 PM »
Bought it... GRLevel3 that is...  Still playing around with it so I'm still learning.

Quote
Also, how did you cut off the dBZ bar and integrate your own that is part of the radar image?

The first thing I didn't like was the big ugly black box on the side.... plus, it looks like everybody elses.. can't have that...

So, thinking outside of the box...

What I did was create my own bottom...



Then using convert (ImageMagick) on the server side...

o Cropped the image that GRLevel3 spit out.

   /usr/local/bin/convert br1.jpg -crop 590x590+50+0 br1a.jpg

o Added the new bar that I created into the image

   /usr/local/bin/convert br1a.jpg grlevel3-bot.gif -append br1b.jpg

o Now I add my logo to the bottom left of the image

This is a Transparent GIF image...

   /usr/local/bin/composite -gravity SouthWest tws-grlevel3-logo.gif br1b.jpg br1c.jpg

o Then added the top Phoenix part....

This is also a transparent GIF image...


   /usr/local/bin/composite -gravity NorthWest tws-grlevel3-topbox.gif br1c.jpg br1d.jpg

This is all wrapped in a script that is called by Cron every 2 minutes (until I get code in it to detect a new image upload).  It moves the completed image to the image that I actually use so that you don't ever get a partial image (due to upload).

I am now working on a smaller version that will be used for my PDA page.



All you need is Time, Aptitude and Desire ... and you can build just about anything...

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 22,156
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
    • http://www.realweatherstation.com
Re: Post Processing GRLevel3 Images...
« Reply #3 on: September 17, 2006, 10:43:30 PM »
Can you choose a different color for the county lines?

Offline andro700

  • Chuck
  • Posts: 3,213
  • Watford City, North Dakota
    • Chuck's Weather Page
Re: Post Processing GRLevel3 Images...
« Reply #4 on: September 17, 2006, 10:45:25 PM »
Yes you can Niko.

Chuck

Online TNETWeather

  • Kevin Reed (KrelvinAZ)
  • Global Moderator
  • Posts: 5,865
  • Gremlins are at work...
  • Mesa, AZ
    • TNET Weather Station - Mesa AZ
Re: Post Processing GRLevel3 Images...
« Reply #5 on: September 17, 2006, 10:45:43 PM »
Yes... I think they were white originally.

All you need is Time, Aptitude and Desire ... and you can build just about anything...

Offline aifan27

  • Tim
  • Posts: 2,857
  • Pennsylvania
    • Newtown Weather
Re: Post Processing GRLevel3 Images...
« Reply #6 on: September 17, 2006, 10:57:59 PM »
Kevin,

Wow...That is just great!

I wish I could do something like that.  Would much rather have one going across the top of the radar image that goes from "Light" to "Moderate" to "Heavy", instead of having dBZ (since the normal person looking at my website won't really have a clue as to what that means).

--Tim

Online TNETWeather

  • Kevin Reed (KrelvinAZ)
  • Global Moderator
  • Posts: 5,865
  • Gremlins are at work...
  • Mesa, AZ
    • TNET Weather Station - Mesa AZ
Re: Post Processing GRLevel3 Images...
« Reply #7 on: September 17, 2006, 11:09:04 PM »
You would just create the image and then reverse the order of the command that merges them togeather.



/usr/local/bin/convert br1a.jpg grlevel3-bot.gif -append br1b.jpg

To

/usr/local/bin/convert grlevel3-top.gif br1a.jpg -append br1b.jpg

All you need is Time, Aptitude and Desire ... and you can build just about anything...

Offline aifan27

  • Tim
  • Posts: 2,857
  • Pennsylvania
    • Newtown Weather
Re: Post Processing GRLevel3 Images...
« Reply #8 on: September 17, 2006, 11:16:46 PM »
Kevin,

I'm afraid that would be a bit too much for me...It's really like another language!  8O

Also, not sure if that one you just made was for me, but here is my radar page (http://www.newtownweather.com/wx3.html), so you know what colors would look good and what length it would have to be.

One more thing...do you know if my radar key could be placed on the bottom of the radar?

Thanks.

--Tim

Online TNETWeather

  • Kevin Reed (KrelvinAZ)
  • Global Moderator
  • Posts: 5,865
  • Gremlins are at work...
  • Mesa, AZ
    • TNET Weather Station - Mesa AZ
Re: Post Processing GRLevel3 Images...
« Reply #9 on: September 17, 2006, 11:28:26 PM »
Actually, I was just playing around... .notice the Cats & Dogs! part??

With the ImageMagick commands you can do a lot.

All you need is Time, Aptitude and Desire ... and you can build just about anything...

Offline aifan27

  • Tim
  • Posts: 2,857
  • Pennsylvania
    • Newtown Weather
Re: Post Processing GRLevel3 Images...
« Reply #10 on: September 17, 2006, 11:29:42 PM »
Actually, I was just playing around... .notice the Cats & Dogs! part??

 :lol: Yep, saw that...pretty funny!

Quote
With the ImageMagick commands you can do a lot.

Is ImageMagick a software?

--Tim
« Last Edit: September 18, 2006, 12:05:38 AM by aifan27 »

Online TNETWeather

  • Kevin Reed (KrelvinAZ)
  • Global Moderator
  • Posts: 5,865
  • Gremlins are at work...
  • Mesa, AZ
    • TNET Weather Station - Mesa AZ
Re: Post Processing GRLevel3 Images...
« Reply #11 on: September 17, 2006, 11:31:50 PM »
Many ISP hosts provide this package on their systems for you to use...  Every host I've ever used had it.

http://www.imagemagick.org/script/index.php

All you need is Time, Aptitude and Desire ... and you can build just about anything...

Online TNETWeather

  • Kevin Reed (KrelvinAZ)
  • Global Moderator
  • Posts: 5,865
  • Gremlins are at work...
  • Mesa, AZ
    • TNET Weather Station - Mesa AZ
Re: Post Processing GRLevel3 Images...
« Reply #12 on: September 17, 2006, 11:49:36 PM »
Here is one attempt.



All you need is Time, Aptitude and Desire ... and you can build just about anything...

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 22,156
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
    • http://www.realweatherstation.com
Re: Post Processing GRLevel3 Images...
« Reply #13 on: September 17, 2006, 11:58:35 PM »
Many ISP hosts provide this package on their systems for you to use...  Every host I've ever used had it.

http://www.imagemagick.org/script/index.php

Well, many non-budget priced hosts might have it, but I don't think it's very likely that low cost hosts will. Also you need access to run chron jobs and that may not be an option with low cost hosting either. 

You can run imagemagick on the PC though, using batch files, or a windows automation program. I use it for my webcams :D

Offline aifan27

  • Tim
  • Posts: 2,857
  • Pennsylvania
    • Newtown Weather
Re: Post Processing GRLevel3 Images...
« Reply #14 on: September 18, 2006, 12:10:38 AM »
Kevin,

I actually meant place the dBZ scale above the radar image (attached to it) and the radar key below the radar image (attached to it), but it actually looks very good the way you did it.

Maybe take out "Cats & Dogs!", moving "Medium" to the middle of the dBZ scale, and changing "Hard" to "Heavy", moving that to the end.  So in the end it would look like (from left to right)..."Light" (on the left end), "Medium" (on the middle), and "Heavy" (on the right end).

Also, what happened to the "75" under "Current Temp" on the radar key?  :lol:

Thanks a lot!

--Tim

 

cumulus