Bad News! NOAA has changed its format AGAIN!

Tweaks to Weather Harvest
  
19 Dec '07 Wed Dec 19, 2007 03:58    
layingback
Site Admin  
  •  

Post Bad News! NOAA has changed its format AGAIN!

Not only has NOAA changed their format again(!) but they have - of course - done it such that it is not backward compatible - again!

But wait it gets worse... The "new" version is "Enhanced" (reasons given are an unconvincing one of letting people add their own GIS images as background, and a more probable one that it's easier for them ;-)), but the "Standard" version is NOT the old version, but a different one entirely.

The Enhanced version requires Java (states Javascript or Java, but basically doesn't work unless you have Java, version 1.4.2 or later), and has a long download time (again their wording). The Standard version has very reduced functionality - in particular no loops like we had before, which IMHO was the real value in the display.

Add to that the projection has changed giving a "distorted view" (sic - their term not mine!) with E-W stretched, so that GIS users with NAD 1983 projection can display the images without adjusting the projection (which is BS 'cos GIS users have the ability to do that, unlike us non-GIS users without projection mapping software!!!).

The Enhanced version is closest to the prior system, but the old simple system of looping - displaying the last 'n' static images under Javascript - has been replaced by some Java routine. What, I have no way of knowing as that part of the documentation listing the files and locations has not been updated, even though every other piece of documentation has, and even though the file and directory names have clearly changed (we're getting 404's).

Your US tax dollars at work.

Any how </rant>. Calming down. Taking another look.

It looks to me as if the old image files are all still there as before. However instead of being named ..._1.gif, ..._2.gif in reverse chronological order, they are now held with date and time in their names. Obviously I don't know when the images were captured, so I just need to find a way to download everything in the (new) directory and display in filename order. Might be possible... That would give us our old system back - and better functionality IMHO than their new "Enhanced" system.



layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)

2.6.32 / 1.3 - 2.4 / 5.5 - 5.6 / 5.4 - 5.5 / 9.4

 
 
 
 
  
19 Dec '07 Wed Dec 19, 2007 04:47    
layingback
Site Admin  
  •  

Post Re: Bad News! NOAA has changed its format AGAIN!

OK, here's a fix, I believe...

These code changes apply only to my hacked files.

In wh_radar.php at line 548 find:

PHP:
    $primaryradar = ereg_replace( ":noaaradar:", $row['primaryradar'] , $radarpath );
$infopath = ereg_replace( ":noaaradar:", strtolower( $row['primaryradar'] ), $infopath );



and replace with:

PHP:
    $primaryradar = ereg_replace( ":noaaradar:", strtoupper(substr( $row['primaryradar'] , 1 )), $radarpath );
$infopath = ereg_replace( ":noaaradar:", strtoupper(substr( $row['primaryradar'] , 1 )), $infopath );



Note it may only work until NOAA discovers that they are still leaving the old files around (in a different directory hence the change above). If they stop saving them we're hosed. But in the meantime we still have a really useful 4 - 5 hour loop versus the short loop NOAA displays on their own sites!!!



layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)

2.6.32 / 1.3 - 2.4 / 5.5 - 5.6 / 5.4 - 5.5 / 9.4

 
 
 
 
Link  QR 
Share this Printer Friendly Page  facebook   google+   linkedin   twitthis  
Show more ...



Forum Permissions - You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum