MSS icon indicating copy to clipboard operation
MSS copied to clipboard

Simplified export of png overlays compatible to the PLANET system on HALO

Open janhclem opened this issue 2 years ago • 14 comments

png overlays without axis, titles etc. could be used in systems like PLANET as map overlays that are also accessible for operators on the aeroplane. I am looking for a simple workflow/option to export png overlays from the MSS UI to png overlays. An option "export as overlay" would be the easiest way in my opinion. The overlays should have a high enough resolution to allow zooming into them within PLANET a bit, but not too high because of performance. Furthermore, they need to be in cylindrical coordinates, without borders, axis and so on.

janhclem avatar Aug 14 '23 12:08 janhclem

@janhclem Please verify if the files in the wms cache can be used you can configure the dir to store them by the configuration editor,

Screenshot_20230817_085242

This is what the server delivers.

Based on these files, what needs to be different?

ReimarBauer avatar Aug 17 '23 06:08 ReimarBauer

Thanks. The files work very well as overlays for PLANET. The resolution however should be increased because I want to zoom into them for a factor of around 10. Best thing would be if I could try a coupled of different resolutions. Additionally, it would be good to have png files with human readable names.

6bf1a79fbef6df6c88cf6ad84e479a34 bf5fe55df16c4fe442fc9f5ed5da1b78

janhclem avatar Aug 17 '23 13:08 janhclem

@jgrooss I assume this needs a different resolution of the used data, or?

ReimarBauer avatar Aug 17 '23 13:08 ReimarBauer

@janhclem the Cache is not meant as store but we maybe can add use the UI to 'save as' so you can store it under a human readable Format. Have also a look on the options. May be you can disable there anything already.

ReimarBauer avatar Aug 17 '23 13:08 ReimarBauer

@jgrooss I assume this needs a different resolution of the used data, or?

I don't think so and should have clarified that. A higher resolution of the figure would be better to see borders sharply, higher resolution of the CLaMS data is not needed. The borders are too blurry that is the main problem (see below), the CLaMS fields are okay. example

janhclem avatar Aug 18 '23 07:08 janhclem

The problem was, that for non-total hemispherical sections it did not seem to work in PLANET. The resolution of the plot is always defined by the msui screen resolution. for this case it may be an idea to get a higher resolution by requesting it from the server by an appropriate URL

jgrooss avatar Aug 18 '23 08:08 jgrooss

Or one could leave out the shorelines here completely and make the overlay transparent in PLANET

jgrooss avatar Aug 18 '23 08:08 jgrooss

We have these Layout sizes configurable. Please give it a try, change it to a higher value. layout_sizes

ReimarBauer avatar Aug 18 '23 13:08 ReimarBauer

when this works, then likly mss autoplot is the solution @swsrkty what do you think about this. Fetching data without further addons by the "msui"?

ReimarBauer avatar Aug 21 '23 19:08 ReimarBauer

Varying the layout parameter for top view somehow does not affect the figures I find in the cache folder. The resolution only depends on the size if the window I have opened.

janhclem avatar Aug 22 '23 07:08 janhclem

That's a good question ;) https://github.com/Open-MSS/MSS/issues/1918

Please set immutable too

immutable

ReimarBauer avatar Aug 22 '23 08:08 ReimarBauer

the immutable, blocks resizing of the view area, which is wanted for the case you need the exact sizes. currently we define the view area by this. The fetched image is smaller. This gives a 916 × 458 pixels for the topview view area by 1200 x 1000

ReimarBauer avatar Aug 22 '23 08:08 ReimarBauer

Thanks, now I can scale the figures. With 9160x7020 it looks much better on PLANET. I think that is enough.

The side effect now is that my msui window is to large for normal usage. So I think the last step would be to make the export convenient or even automated. You mentioned mss autopilot. I will have a look at it...

janhclem avatar Aug 22 '23 09:08 janhclem

Hi @janhclem, please have a look at https://mss.readthedocs.io/en/stable/mssautoplot.html and let me know if I can help in anyway.

swsrkty avatar Aug 22 '23 14:08 swsrkty

This should become documented as a use case.

ReimarBauer avatar Nov 27 '24 16:11 ReimarBauer

That is with the current mssautoplot not possible. It does not lookup and use the layout definitions of topview, sideview or linearview.

ReimarBauer avatar Jan 24 '25 13:01 ReimarBauer

When the layout option is included into mssautoplot, it needs another option to return only the image without axis, titles etc. for this usecase we add a --raw click command

ReimarBauer avatar Jan 24 '25 15:01 ReimarBauer