rgleason / weatherfax_pi

Weatherfax Plugin for Opencpn
GNU General Public License v3.0
5 stars 9 forks source link

WFIR_ UKMet outdated - Updated 5/9/22 #76

Closed ManfredRad closed 2 years ago

ManfredRad commented 2 years ago

UKMet is downloaded from http://old.wetterzentrale.de/pics/. The server does not exist any more. The info in WeatherFaxInternetRetrieval_Europe.xml should read like below. I also suggest to rename the region from central to Europe, since the area covered is all of Europe plus some of the atlantic.

rgleason commented 2 years ago

The link above does not work for me, but this does seem to work https://www.wetterzentrale.de/ I am not sure how much work is involved to fix this, and I do not have time to do it. We expect that users in the region will update the appropriate files and make a PR or send the files.

ManfredRad commented 2 years ago

Here is the file, which needs to be changed to access UKMet data. It has been given the extension .txt to upload it here. The extension .txt needs to be removed and the file copied to data, if tested and deemed working.

WeatherFaxInternetRetrieval_Europe.xml.txt

rgleason commented 2 years ago

Good job. Have updated WFIR_European and committed v1.9.30.4 and pretty soon after the cloud builds the two commits you will find your tarballs in the Cloudsmith Opencpn weatherfax-beta repository (this link is in the spreadsheet at the top) Look at the linked spreadsheet headers, One is for Cloudsmith O Beta and the other next one down is for the plugin's github repos. You can use "Import Plugin" after downloading your tarballs for the OS you need.

Later I will update TP frontend2 with Jon's current work and push up to the beta catalog.

Someday, we can go through how to make a PR. The first time it is more invovled, after that it gets better.

ManfredRad commented 2 years ago

Thanks. Install of the new version worked, however there was an error in the xml file I uploaded. I will fix that and extent the WFIR_European to make use of the current state of the art models (ECWMF and Icon). In my opinion UK_MET is obsolete here, since it is actually based on the other European models anyhow.

rgleason commented 2 years ago

Yes, I removed the old line and it works, but the next thing to fix is the coordinates. Label URL as you think best, keeping in mind the coord reference.

You will find that the new coordinates created after running the Weatherfax Image Wizard are stored in a "user" directory also called coordinatesets.xml . You would need to determine which coords (by the label given) and then use those in the other <plugin?/data/ coordinatesets.xml so the Image Wizard is no longer needed.

It takes a couple of tries to get the hang of it.

Manfred thank you for updating Europe!

rgleason commented 2 years ago

I am finding it difficult to use these images at https://www.wetterzentrale.de/ because they do not have Long/Lat coordinates. The only way to georeference them is to determine two landmarks beforehand, record the lat/long and then use Image Wizard by selecting those landmarks and entering the coords.

It can be done, and it is tedious, but possible.

ManfredRad commented 2 years ago

I believe, we do not need them. Most of them are just displays of griffiges anyhow. If we want to go with synoptic weather charts only, then we should not use them. One source is the german weather service DWD. And those are working. A - potentially useful - source for the British met office is here:

These are great maps for the north Atlantic and they could be helpful for all on the way from US/Carib to Europe.

They even have b&w. Unfortunately the URLs to the individual map has a time stamp in the path. Like: https://data.consumer-digital.api.metoffice.gov.uk/v1/surface-pressure/bw/2022-05-07T0000/0000_MEDIUM_RANGE_FC036.gif

I do not know, if WeatherFax can deal with this.

ozolli commented 2 years ago

They even have b&w. Unfortunately the URLs to the individual map has a time stamp in the path. Like: https://data.consumer-digital.api.metoffice.gov.uk/v1/surface-pressure/bw/2022-05-07T0000/0000_MEDIUM_RANGE_FC036.gif

These black & white versions are already available in the WeatherchartsUK menu entry.

I do not know, if WeatherFax can deal with this.

Yes but it's not easy to calculate it. You have to use the Hour variable. You can some examples in the WFIR_Misc.xml file. I am in the way of implementing the colour version of these charts with this Hour variable. Charts like this : https://data.consumer-digital.api.metoffice.gov.uk/v1/surface-pressure/colour/2022-05-09T0000/FSXX00T_48.gif

rgleason commented 2 years ago

@ozolli I think what you are doing is going to be good. We won't need the B&W probably because WxchartsUK has them.

ozolli commented 2 years ago

I am finding it difficult to use these images at https://www.wetterzentrale.de/ because they do not have Long/Lat coordinates. The only way to georeference them is to determine two landmarks beforehand, record the lat/long and then use Image Wizard by selecting those landmarks and entering the coords.

I use the lat/lon crossings near some known places to determine their coordinates as they are seen as dotted lines in the chart, i.e. here Svaldbard/Portugal crossing for the red coords 80N/9W and Greenland/Africa just South of Mediterranean Sea for the green coords 30N/40W.

ozolli commented 2 years ago

I just realized this morning that these charts are dated 27APR2022. There is something wrong... Same on the website : https://www.wetterzentrale.de/de/topkarten.php?map=1&model=ukmhd&var=1&time=0&run=00&lid=OP&h=0&tr=24&mv=0#mapref

rgleason commented 2 years ago

Maybe we drop those, GFS has these which might be easier to geo coord https://www.wetterzentrale.de/en/topkarten.php?model=gfs&lid=OP Maybe there is something better to use in here? Didn't look too hard.

The ECMWF look like they are Polar https://www.wetterzentrale.de/en/topkarten.php?map=1&model=ecm&var=1&time=0&run=0&lid=OP&h=0&tr=24&mv=0

Correction: They are both polar.

rgleason commented 2 years ago

If you hover on the NAVGEM , UKMO and UKMO EU when on 500hPa charts there is a message showing they are not current.

ozolli commented 2 years ago

In fact UKMO 500HPa geo is up to date ! https://www.wetterzentrale.de/en/topkarten.php?map=1&model=ukm&var=1&time=72&run=0&lid=OP&h=0&tr=24&mv=0 But only 72, 96, 120 and 144... ECMWF look fine : ECMWF

ozolli commented 2 years ago

ECMWF 500HPa Geopot 0h to 240h step 6h done.

rgleason commented 2 years ago

Good, but CFS, ECMWF, GEM, GFS, ICON all offer earlier 0 24 hr and up. GFS has the furthest out. ECMWF has 0 24 48 72 which might provide the more current end.

Later: Just saw this: ECMWF 500HPa Geopot 0h to 240h step 6h done.

PS, saw CAPE which is a measure of instability, good warning for bad weather. https://www.wetterzentrale.de/en/topkarten.php?map=1&model=gfs&var=11&time=6&run=6&lid=OP&h=0&mv=0&tr=6

ozolli commented 2 years ago

Yes why not. I usually get CAPE with grib files, like wind. I can do this for other people, no problem at all, but I only use images for MSLP analysis and forecast so I have more information than what a grib file can give to me.

Speaking of this, I often make sure how far forecasting can be reliable using the so called spaghetti plate : https://www.wetterzentrale.de/en/topkarten.php?map=1&model=gfs&var=1&run=6&time=0&lid=SPAG&h=0&mv=0&tr=24#mapref This is a comparison of the different parameters computed by the GFS model and how they differ with time. The longer they "stay together" the more reliable the forecast is.

rgleason commented 2 years ago

ozolli wrote: Yes why not. I usually get CAPE with grib files, like wind. - Well that's a good point, but sometimes the weatherfax way is easier when looking at weather.

rgleason commented 2 years ago
Speaking of this, I often make sure how far forecasting can be reliable using the so called spaghetti plate :
https://www.wetterzentrale.de/en/topkarten.php?map=1&model=gfs&var=1&run=6&time=0&lid=SPAG&h=0&mv=0&tr=24#mapref
This is a comparison of the different parameters computed by the GFS model and how they differ with time.
The longer they "stay together" the more reliable the forecast is.

Just learned something. How do you read the spagetti plate though the final one looks really complex. Now I just stepped through it and understand it looks comprehensible up to about 144 hours. https://www.wetterzentrale.de/en/topkarten.php?map=1&model=gfs&var=1&run=6&time=144&lid=SPAG&h=0&mv=0&tr=24#mapref

Perhaps that should be in there?

ozolli commented 2 years ago

Added to WFIR_Europe.

rgleason commented 2 years ago

@ozolli I just realized that I may not have gotten the update for this file? ...or where would I find it?

PS I have the one from ManfredRad 10 days ago, (above)

rgleason commented 2 years ago

Also the coordinates for this are no longer working.

ozolli commented 2 years ago

Oh yes I forgot this one... Will do that today.

Edit: I am including (from Wetterzentrale) all the regions from +00hr to +240hr 500HPa, 10m wind and CAPE for ECMWF, GFS ans UKMO models. This is a lot of work.

I also found that I can increase some maps definition using the Size variable in the Image Wizard so I also have to check all the maps again.

So, I will not be able to finish this before tomorrow evening I guess.

rgleason commented 2 years ago

@ozolli OK thanks very much. Standing by.

ozolli commented 2 years ago

Well, I worked faster than I thought. Everything is in this zip: WeatherFax_Update_OZ_15May2022.zip

rgleason commented 2 years ago

Ozolli, I've uncompressed and tried these in a new version of weatherfax_pi, and UKMet and WeatherchartsUK are opening in Image Wizard due to missing coordinateSets.xml? Screenshot (412) Screenshot (413)

The rest of it seems to be working ok. Do you want me to try fixing this, or do you have something that works?

rgleason commented 2 years ago

Pushed up to github https://github.com/rgleason/weatherfax_pi/commits/master 4 flatpak fail + 2 android, but the rest build, v1.9.30.10 You can find them here in cloudsmith https://cloudsmith.io/~opencpn/repos/weatherfax-beta/packages/?q=1.9.30.10

ozolli commented 2 years ago

Ozolli, I've uncompressed and tried these in a new version of weatherfax_pi, and UKMet and WeatherchartsUK are opening in Image Wizard due to missing coordinateSets.xml?

Oups... I forgot to include WFIR_Europe.xml in the archive, that's the reason why. Here it is: WeatherFaxInternetRetrieval_Europe.zip

Sorry you have to push and compile again...

ozolli commented 2 years ago

I did a few more mapping refinements (placement and resolution) and some bug fixes (Mostly Bermuda which has a bit weird naming and too short files retention). I also added ICON (in German Weather DWD), Arome and Arpege from Wetterzentrale.

Eveything updated is in the following zip archive: WeatherFax_Update_OZ_16May2022.zip

rgleason commented 2 years ago

UKmet is working great. Arome, Arpege and German Weather DWD don't seem to find coordinateSets. Closing will make a new Issue.

ozolli commented 2 years ago

They are in CoordinateSets.xml. Just checked you commit and Arome is not there. My fault as I have the working CoordinateSets.xml in another folder I must have forgot to sync it before zipping the files. But Arpege and German Weather DWD are in your commit... Here is the right file: CoordinateSets.zip There are new NOAA GOES entries as I am including NOAA sat images from here: https://www.star.nesdis.noaa.gov/goes/

rgleason commented 2 years ago

Ozolli awesome. I will make another commit tonight. To get an updated version of coordinateSets.xml after you have used Image Manager, are you having to copy your coordiateSets.xml from your "user writable directory" to the directory that weatherfaxInternetRetrival.xml is installed in?

IE: for Windows10
copy C:\ProgramData\opencpn\plugins\weatherfax\coordinateSets.xml
to C:\Users\fcgle\AppData\Local\opencpn\plugins\weatherfax_pi\data\coordiateSets.xml (copy over the old dated one that is there?

Or the equivalent directories for ubuntu/linux?

ozolli commented 2 years ago

No I don't need to write it elsewhere; It works where it is. I just copy it to where the PIM installs it to make the zip file. I copy from $HOME/.var/app/org.opencpn.OpenCPN/config/opencpn/plugins/ to $HOME/.var/app/org.opencpn.OpenCPN/data/opencpn/plugins/weatherfax_pi/

ozolli commented 2 years ago

WIP : NOAA GOES

rgleason commented 2 years ago

No I don't need to write it elsewhere; It works where it is. I just copy it to where the PIM installs it to make the zip file. I copy from $HOME/.var/app/org.opencpn.OpenCPN/config/opencpn/plugins/ to $HOME/.var/app/org.opencpn.OpenCPN/data/opencpn/plugins/weatherfax_pi/

Yes, that is what I mean. It works where it is located, in your user writable directory and it gets changed and saved there as you redefine coordinates with the Image Wizard. This then makes the installed version in
$HOME/.var/app/org.opencpn.OpenCPN/data/opencpn/plugins/weatherfax_pi/ outdated.

Thanks I think I will use some of this in description in the manual.

ozolli commented 2 years ago

I cut all files from data/opencpn/plugins/weatherfax_pi/ and pasted them in config/opencpn/plugins/ The plugin works okay except the toolbar images which must stay in data/opencpn/plugins/weatherfax_pi/

rgleason commented 2 years ago

@ozolli Does it look to you like I got all of your work? See https://github.com/rgleason/weatherfax_pi https://cloudsmith.io/~opencpn/repos/weatherfax-prod/packages/?q=1.9.31.0 for tarballs https://cloudsmith.io/~opencpn/repos/weatherfax-prod/packages/?q=1.9.31.0+tarball

ozolli commented 2 years ago

Installed it on the RPi, changed the MappingMultiplier for Arpege Europe and everything works fine and seem to be there.

ozolli commented 2 years ago

Checking for RAM occupation I noticed a copy-paste error on the GFS where most of them stops at 240hr instead of 384hr, same for the others with wrong range.

Updated Europe file: WeatherFaxInternetRetrieval_Europe.zip

Sorry for the late correction...

Edit: I created a PR for his.

rgleason commented 2 years ago

Very nice job.