+/-
+/-

±Donations

Donate with PayPal!
Help support Pro_News and become a member of our Sponsors Group
The tip jar is at PayPal, but does not require a PayPal account
macavity £ 10.00
Rusty_ $ 27.96
Gamekeeper £ 20.00
Witewolf $ 10.00
macavity $ 20.00
Arg0n4th $ 2.00

±User Info


مرحبا مجهول

(تسجيل)

عضوية:
الأخير: mehak
جديد اليوم: 0
جديد بالأمس: 0
الكل: 167

المتصفحون الآن:
الأعضاء: 0
الزوار: 17
Bots: 4
المجموع: 21
من و أي:
 الزوار:
Downloads
Support Forums
Pro News Articles
Support Forums
Downloads
Support Forums
Support Forums
Support Forums
Support Forums
Downloads
Support Forums
Support Forums
Support Forums
Support Forums
Support Forums
Support Forums
Support Forums
 Bots:
Baidu > التحمي
Voila > Support Forums
Google > Pro News Articles
Majestic-12 > Support Forums

فريق العمل متص:

لا أحد من فريق العمل متص

±Stop Software Patents

stopsoftwarepatents.eu petition banner

±30 Years of GNU

[ Celebrate 30 years of GNU! ]

Bad News! NOAA has changed its format AGAIN!

Tweaks to Weather Harvest
  

Bad News! NOAA has changed its format AGAIN!

مساهمة ارسل: الثلاثاء ديسمبر 18, 2007 8:58 pm بواسطة layingback

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.39 - 2.2.12 / 4.4.7 - 5.1.37 / 5.5 / 9.2.1
 

 

layingback
Site Admin
Site Admin
 
 
 
  

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

مساهمة ارسل: الثلاثاء ديسمبر 18, 2007 9:47 pm بواسطة layingback

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:
<?php
$primaryradar
= ereg_replace( ":noaaradar:", $row['primaryradar'] , $radarpath );
$infopath = ereg_replace( ":noaaradar:", strtolower( $row['primaryradar'] ), $infopath );



and replace with:

PHP:
<?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.39 - 2.2.12 / 4.4.7 - 5.1.37 / 5.5 / 9.2.1
 

 

layingback
Site Admin
Site Admin
 
 
 
Link  QR 
Share this صفحة للطباعة  facebook   google+   linkedin   twitthis  
Show more ...


لاتستطيع وضع مواضيع جديدة في هذا المنتدى
لاتستطيع الرد على المواضيع في هذا المنتدى
لا تستطيع تعديل مواضيعك في هذا المنتدى
لاتستطيع الغاء مواضيعك في هذا المنتدى
لاتستطيع التصويت في هذا المنتدى
You cannot attach files in this forum
You can download files in this forum