Showing posts with label faxes. Show all posts
Showing posts with label faxes. Show all posts

Thursday, March 11, 2010

Fax crawler, for SailMail users

I wanted to get something more dynamic for the patterns that can be used at sea...
When ashore, no problem, the faxes are pulled out from the Internet.
At sea, that's different, you have GetFax (from SailMail) downloading the faxes from the SSB onto your hard drive, and when it's about putting the faxes together in a composite, that used to be a painful experience, you had to locate the faxes one by one... Baaaaad.
There is now a new kind of dynamic pattern. If the protocol used to get the fax(es) is not http, then there is a surprise. There is a "search:" protocol implemented like in:

search:chartview.util.SearchUtil.findMostRecentFax(".*500.*", "${fax.path}")

That allows the soft to crawl the directory where the faxes are downloaded.
It does not look that friendly, but that is quite powerful, and extendable. After the "search:" keyword is the name of the Java class and method used to find the right fax. That method must be static, take two String parameters, and return a String value, that's all. The first parameter is a regular expression to match the description of the fax to find. SailMail appropriately stores this information when a fax is downloaded through GetFax... The second parameter is the root directory to start the search from, to find the most recent, matching the regular expression pattern. In the example above, it is the value of the path stored in the Weather Wizard preferences.
It is extendable in the sense that you can write your own crawlers, in Java. It just needs to be put in the classpath.
The same kind of syntax and method is available for the GRIBs as well.

search:chartview.util.SearchUtil.findMostRecentFile(".*\.(grb|grib)$", "${grib.path}")

The idea when at sea is to have GetFax running in "auto" mode for a while, and then to use this kind of composite pattern in the Weather Wizard. This way, this rendering is just one - I said "one" - click away:



Even fuzzy faxes make sense. Click the image... Cool!
To learn how to use this feature the best way, just Google "Regular Expression", this is soooooooooooo kewl!

Monday, February 1, 2010

Archives 2009 available

From this page, you can now reach several kinds of archives, along with real-time data. We had in the past the composites archives - which can be opened and rendered by the Weather Wizard - we now have images generated after the composites, they can be visualized from your browser.
Check out this link for details.

Tuesday, January 5, 2010

Color Faxes

We can now integrate color faxes, like this one.
It is a bit special in the sense that
  • It's a square projection (Anaximandre)
  • It is in several colors.
Anaximandre never was a problem, but the multiple colors is something that was not managed.
We now have the possibility to just make a fax transparent, without changing the black to another color (which is a possibility that still remains).
Having the colored fax transparent allows as usual superimposition with other data, like GRIBs or charts.
We can produce a rendering like this:
Some improvements in the image processing have been done too, regarding the transparency, and the sharp and blur. Looks much nicer. I had the idea of doing it by looking at what OpenCPN was doing for their charts rendering, which is much nicer than Maptech, based on the same data files.

Friday, September 25, 2009

Externalizing the Look and Feel option

The possibility to apply a Swing Look and Feel on the UI has been externalized. You can apply any Look and Feel you want, its name will be mentioned in the command-line, or in the shortcut properties. That brings more flexibility to the user, and cuts the dependencies with the providers.
On the right is an example of what's possible, using the "Napkin" Look and Feel.
The default look and feel is the System one, not the Metal one (Java default).
Those who have already installed the program should re-install it, as some modifications in the launching script were made.

Monday, August 24, 2009

New feature: Load composite from the web

You can now load an archived composite from the web, in the Weather Wizard.
There are archived composites at http://donpedro.lediouris.net/weather/waz/, and they can be accessed directly. Go to File > Load Composite from the web.
There was a lot of activity in the tropical zone during the past weeks, hurricanes, typhoons, tropical waves, depressions and storms. They can be visualized this way, in case you did not follow those phenomenons on a daily base.

Monday, April 27, 2009

Repackaged...

I repackaged the install.
The dustlet is now implemented as a user-exit, that minimizes the dependencies.
I also integrated and modified the JGrib code, in order not to have to worry about Log4J, which was not quite mandatory in our case.
The best way to get the new version is to uninstall, and then re-install. This is because of some implied structural changes in the soft.
After that, the auto-update feature will keep working OK.

Thursday, January 15, 2009

Introducing GRIB Slicing


We now have the possibility on rendered GRIB file to draw a line. A graph will then show up, representing the values along the line of the different data contained in the GRIB. 
If the mouse is held clicked on the graph, then a red dot is displayed on the map (and on the line of course), showing where the point is geographically. It becomes easy to see where the wind is the strongest, the pressure the highest, the temperature the warmest, the precipitations the heaviest, etc.
This feature is available immediatly.

Wednesday, October 1, 2008

Path for GRIB & Faxes

Minor but useful enhancement to the software. We now have the possibility to give a path - instead of a single directory - for the software to find the GRIB and Faxes. 
It occured to me when I was configuring the new laptop on the ketch, for both Internet and the SSB. The faxes and GRIBs coming from SailMail are not stored on the file system in the same location. 
So now, you can tell the soft to took into morte than one directory when you configure the preferences for GRIBs and Faxes.

Thursday, April 10, 2008

More patterns

There is now a page where you can get new or updated patterns.
I will keep updating it.
The last one is a 4 layer one, superimposing 500mb charts, current analysis, and 24, 48 and 96 hour predictions.
Also, I'm reworking the setup; it is now creating a group of programs (on Windows...), that makes it easier to use. The Console remains though.

Wednesday, February 6, 2008

Available as an Applet

There is a stripped-down version of the soft available as an Applet.
It requires a bit of configuration at the plug-in level, but it renders the charts on top of each others.

Tuesday, November 6, 2007

Dynamic Patterns

We introduced a while back this concept of pattern. Once you have reshaped all several faxes to fit your needs, you can "replay" the re-shaping step by creating a pattern out of it, so you can apply it again on other similar faxes, stored on your file system. That is pretty convenient, when you use the GetFax utility from SailMail, which stores the downloaded files on your disk.
We have also added some features, allowing you, when you are planning a trip, to download from the UI faxes from the Internet. In that case, you download the fax(es) from the net, save them on your disk, and then apply a pattern on them. Mmmh..., there is room for improvement here!
This is where we've introduced the concept of dynamic pattern, containing the URLs of the faxes to download before applying a pattern on it.
As a result, the picture below is just two clicks away. One to invoke the dynamic pattern, another one to show the result in Google Earth... Google Map behaves the same. Click on it to enlarge.It is made out of three faxes:
  1. North Pacific Surface Analysis
  2. North Pacific 500mb analysis
  3. Central Pacific Streamlines
Notice that this last one has to be rotated 90 degrees clockwise, as it comes from the net on its side. This rotation is now part of the pattern as well.