I wrote my JSON_generator.php to exactly simulate the one at the NWS site, so that it could be used by any script without change. Most scripts call it multiple times if they want to display multiple products or radar stations. But, it would not be difficult to modify the script if you wanted to.
Actually, here at Flightstats we are moving away from using this script. Its only purpose is to let you know what the file names are, so you can insert them into the HTML img tags. Instead, we are setting up a proxy on our site so that we can read the directories from the client (using JavaScript) without running into the dreaded "same origin policy" problem.
By the way, if you are working closely with the NWS I would love to have more information about Ridge2 radar. I have not been able to find much information on how to access the image files. I wrote to them but received no response. If you have that information (or can get it) and send it to me (or post it here), I will write JavaScript to access it and will be glad to share it in here.
Questions would be:
Is Ridge2 ready to be used by people like us?
How do we access the image files?
Are there other ways to access the images, like a tile server or other server?
Is there any sample code they can provide that accesses the new Ridge2 radar?
Is there any documentation on what is available?
Thanks!