Sunday, October 21, 2007

DailyRDAHMM portlet

I added a new "DailyRDAHMM" portlet to show the result of daily RDAHMM detection.

Upon the request of a browser, the portlet analyzes an xml file, which is generated after running daily rdahmm to record the status changes of stations, and shows the status changes in a similar way to the Realtime RDAHMM portlet. There is a mark for every station on the google map; a click on the mark shows the latest status change trace picture of that station. If the station has a status change from the day before to the present date, the corresponding mark has a red icon; if a status change is detected for a date in the history, the mark icon is yellow; green is used for no status change. Besides the map, a list containing all the stations with status changes and the date of the changes is shown on the right side of a web page.

A test example of this portlet can be accessed at http://156.56.104.131:8080/gridsphere/gridsphere?cid=DailyRDAHMM-Portlet . This example uses an arbitrary manually edited status-change xml file.

The codes for running rdahmm daily on all stations have not been completed, cause I got this problem of how to complete this daily schedule of invoking rdahmm services for all stations...I wonder if a standalone application should be added to call the service everyday. PS, since svn diff does not provide accurate information concerning the status changes and the date they happen, I think I'll just compare the files line by line, and just use svn to save the files.

No comments: