Sean, here is an idea: (:-) You probably already have thought of it...
To make it easier to Weatherfax_pi
File > Open
Then the user selects a file that has been previously
internet retrieved...such as
http!!!weather.noaa.gov!pub!fax!PJAM98.TIF
The plugin tries to apply the original CoordinateSet by reverse
tracking the file....
extracting "weather.noaa.gov/pub/fax/" as the url
extracting "PJAM98.TIF as the filename
The plugin then looks up the Map Url
C:\Program Files (x86)\OpenCPN\plugins\weatherfax\data\WeatherFaxIn ternetRetrieval.xml
to find the corresponding entry....which is..
<Map Url="PJAM98.TIF" Contents="96 HR WIND/WAVE FORECAST" Area="4" />
Then the plugin looks up the correct CoordinateSet for this Map Url based on Coordinate Name= "NOAA - Boston - 4"
<Coordinate Name="NOAA - Boston - 4" X1="133" Y1="134" Lat1="60.00000" Lon1="-90.00000" X2="1548" Y2="999" Lat2="20.00000" Lon2="0.00000" Mapping="Mercator" MappingMultiplier="1.0000" MappingRatio="1.0000" />
And applies that to the downloaded file with the name
http!!!weather.noaa.gov!pub!fax!PJAM98.TIF
At which point the image is directly overlayed on the
charts without having to use the Wizard.
Summary of file use in Weatherfax_pi
----------------------
User CoordinateSets stored inC:\ProgramData\opencpn\opencpn.ini
----------------------
[Settings/WeatherFax/CoordinateSets/New_Coord_2]
Point1X=1390
Point1Y=998
Point1Lat=70
Point1Lon=-35
Point2X=2230
Point2Y=1898
Point2Lat=30
Point2Lon=10
mapping=1
inputpolex=273
inputpoley=-76
inputequator=1534
inputtrueratio=1.004
mappingmultiplier=1
mappingratio=1
----------------------
CoordinateSets used for Internet Retrieval located inC:\Program Files (x86)\OpenCPN\plugins\weatherfax\data\CoordinateSe ts.xml
<WeatherFaxCoordinates>
<Coordinate Name="
NOAA -
Boston -
4"
X1="133" Y1="134"
Lat1="60.00000" Lon1="-90.00000"
X2="1548" Y2="999"
Lat2="20.00000" Lon2="0.00000"
Mapping="Mercator" MappingMultiplier="1.0000" MappingRatio="1.0000" />
----------------------
Internet Retrieval choices listed in
C:\Program Files (x86)\OpenCPN\plugins\weatherfax\data\WeatherFaxIn ternetRetrieval.xml
<OCPNWeatherFaxInternetRetrieval>
<Server Name="NOAA" Url="http://weather.noaa.gov/pub/fax/">
<Region Name="Boston">
<!-- wind/wave
charts -->
<Map Url="PWAA90.TIF" Contents="WIND/WAVE ANALYSIS" Area="8" />
<Map Url="PJAA99.TIF" Contents="SEA STATE ANALYSIS" Area="4" />
<Map Url="PWAE10.TIF" Contents="24HR WIND/WAVE FORECAST" Area="8" />
<Map Url="PJAI10.TIF" Contents="48HR WIND/WAVE FORECAST" Area="4" />
<Map Url="PJAI20.TIF" Contents="48HR WAVE PERIOD FORECAST" Area="4" />
<Map Url="PJAM98.TIF" Contents="96 HR WIND/WAVE FORECAST" Area="4" />
<Map Url="PJAM88.TIF" Contents="96 HR WAVE PERIOD FORECAST" Area="4" />
Note the selectors for applying coordinatesets:
Server Name="NOAA"
Region Name ="Boston"
Area="8" (for example)
<!-- surface charts -->
<Map Url="PYAD10.TIF" Contents="PRELIMINARY SURFACE ANALYSIS" Area="1" />
<Map Url="QDTM10.TIF" Contents="48HR SURFACE FORECAST" Area="4" />
<Map Url="PYAA11.TIF" Contents="SURFACE ANALYSIS (PART 1 NE ATLANTIC)" Area="2" />
<Map Url="PYAA12.TIF" Contents="SURFACE ANALYSIS (PART 2 NW ATLANTIC)" Area="3" />
<Map Url="PPAE10.TIF" Contents="24HR SURFACE FORECAST" Area="8" />
<Map Url="PWAM99.TIF" Contents="96 HR SURFACE FORECAST" Area="4" />
-------------------------
Typical Path and names for Internet Retrieved Files
C:\ProgramData\opencpn\plugins\weatherfax
http!!!weather.noaa.gov!pub!fax!PJAI10.TIF
http!!!weather.noaa.gov!pub!fax!PJAM88.TIF
http!!!weather.noaa.gov!pub!fax!PJAM98.TIF
http!!!weather.noaa.gov!pub!fax!PJBA99.TIF
http!!!weather.noaa.gov!pub!fax!PPAA10.TIF
http!!!weather.noaa.gov!pub!fax!PPBA10.TIF
http!!!weather.noaa.gov!pub!fax!PTCA89.TIF
-------------------------