Re: [Qgis-user] mdal / mesh simple formats

2022-08-26 Thread Matt Boyd via Qgis-user
Thanks Richard,
that looks interesting. I can now get regular grid / square mesh to
display correctly but I'm working with tri-mesh and anything I try to
load using that ends up like this..Just a line of squares.
There's something obvious I'm missing in the format here.

On Fri, Aug 26, 2022 at 4:56 PM Richard Duivenvoorde
 wrote:
>
> Hi Matt,
>
> I'm not a Mesh expert either, but I use (and create) netcdf using python 
> using the
> https://github.com/Unidata/netcdf4-python module
>
> Netcdf is pretty good supported in QGIS in my experience
>
> Our data has also a time dimension so we use the CF convention [0] and 
> fiddling around with the so called UGRID convention [1] But maybe that is 
> both too much for a simple tin...
>
> I Googled:
> https://stackoverflow.com/questions/48864357/convert-hdf5-to-netcdf4-in-bash-r-python-or-ncl
> as being able to convert hdf5 to netcdf... didn't/couldn't try/test though..
>
> Regards,
>
> Richard Duivenvoorde
>
> [0] https://en.wikipedia.org/wiki/Climate_and_Forecast_Metadata_Conventions
> [1] http://ugrid-conventions.github.io/ugrid-conventions/#data-variables
>
> On 8/26/22 03:32, Matt Boyd via Qgis-user wrote:
> > Thanks, thats pretty helpful.
> > I'm running QGIS 3.26.2-Buenos Aires installed from osgeo.
> > under the xdmf directory there the xmf/hdf files look pretty similar
> > to what I'm using but they won't load. there's a partial duplicate of
> > the data in the hdf file in that directory as a 2dm file which does
> > work.
> > I'm still not sure if I'm supposed to be able to load the xmf/hdf
> > files directly using mdal? I can easily drop out my hdf5 data to the
> > 2dm format is this the proposed way to do it?
> >
> > Thanks again
> > Matt
> >
> > On Fri, Aug 26, 2022 at 4:09 AM Delaz J via Qgis-user
> >  wrote:
> >>
> >> Hi Matt,
> >>
> >> The mdal repo has a number of mesh data
> >> (https://github.com/lutraconsulting/MDAL/tree/master/tests/data) but
> >> whether these are simple meshes/formats or not is beyond my
> >> understanding of this data type.
> >>
> >> Hope that helps,
> >>
> >> Harrissou
> >>
> >> Le 25/08/2022 à 09:41, Matt Boyd via Qgis-user a écrit :
> >>
> >>> Hi QGIS people,
> >>> I asked something like this a couple of years ago, managed to find
> >>> some workarounds and now that I know a little more about what I'm
> >>> doing I could use a bit of help.
> >>> I've got some simple tin meshes that I'd like to drop into QGIS, they
> >>> get generated in a python modelling software I'm using.
> >>> The data all sits in a single hdf5 file, points with coordinates, the
> >>> cells which are just the indexes of 3 points, plus attributes for each
> >>> point. About the simplest mesh setup I can imagine.
> >>> I'm trying to find the simplest format that mdal supports with an
> >>> example dataset so I can make something similar. (ideally hdf5 so I
> >>> don't need to work out how to use anything new in python).
> >>>
> >>> Any tips?
> >>> Thanks
> >>> Matt
> >>> ___
> >>> Qgis-user mailing list
> >>> Qgis-user@lists.osgeo.org
> >>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> >>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> >> ___
> >> Qgis-user mailing list
> >> Qgis-user@lists.osgeo.org
> >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > ___
> > Qgis-user mailing list
> > Qgis-user@lists.osgeo.org
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] mdal / mesh simple formats

2022-08-26 Thread Richard Duivenvoorde via Qgis-user

Hi Matt,

I'm not a Mesh expert either, but I use (and create) netcdf using python using 
the
https://github.com/Unidata/netcdf4-python module

Netcdf is pretty good supported in QGIS in my experience
 
Our data has also a time dimension so we use the CF convention [0] and fiddling around with the so called UGRID convention [1] But maybe that is both too much for a simple tin...


I Googled:
https://stackoverflow.com/questions/48864357/convert-hdf5-to-netcdf4-in-bash-r-python-or-ncl
as being able to convert hdf5 to netcdf... didn't/couldn't try/test though..

Regards,

Richard Duivenvoorde

[0] https://en.wikipedia.org/wiki/Climate_and_Forecast_Metadata_Conventions
[1] http://ugrid-conventions.github.io/ugrid-conventions/#data-variables

On 8/26/22 03:32, Matt Boyd via Qgis-user wrote:

Thanks, thats pretty helpful.
I'm running QGIS 3.26.2-Buenos Aires installed from osgeo.
under the xdmf directory there the xmf/hdf files look pretty similar
to what I'm using but they won't load. there's a partial duplicate of
the data in the hdf file in that directory as a 2dm file which does
work.
I'm still not sure if I'm supposed to be able to load the xmf/hdf
files directly using mdal? I can easily drop out my hdf5 data to the
2dm format is this the proposed way to do it?

Thanks again
Matt

On Fri, Aug 26, 2022 at 4:09 AM Delaz J via Qgis-user
 wrote:


Hi Matt,

The mdal repo has a number of mesh data
(https://github.com/lutraconsulting/MDAL/tree/master/tests/data) but
whether these are simple meshes/formats or not is beyond my
understanding of this data type.

Hope that helps,

Harrissou

Le 25/08/2022 à 09:41, Matt Boyd via Qgis-user a écrit :


Hi QGIS people,
I asked something like this a couple of years ago, managed to find
some workarounds and now that I know a little more about what I'm
doing I could use a bit of help.
I've got some simple tin meshes that I'd like to drop into QGIS, they
get generated in a python modelling software I'm using.
The data all sits in a single hdf5 file, points with coordinates, the
cells which are just the indexes of 3 points, plus attributes for each
point. About the simplest mesh setup I can imagine.
I'm trying to find the simplest format that mdal supports with an
example dataset so I can make something similar. (ideally hdf5 so I
don't need to work out how to use anything new in python).

Any tips?
Thanks
Matt
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Problem reading QGIS menus or tool tips in Ubuntu MATE

2022-08-26 Thread Richard Duivenvoorde via Qgis-user

QGIS, in the end, delegates the creation of Tooltips and Menu's to the 
Qt-Toolkit.

The Qt-Toolkit then has different implementations to actually draw those, 
depending on your Operating System.

I'm not familiar with Ubuntu MATE, but maybe it's not fully supported by Qt? In 
other Linux distro's there are often different themes/window managers to choose 
from, would that help?

Ubuntu to me is well known as "the company who tries to know better... and give up 
after some time"...

Is there a special reason to NOT use Gnome as desktop? I'm in favour of 
diversity, but I think as we (as linux users) are already a minority, we should 
try to focus/support on not too many flavours.
( I'm OK with KDE/Kubuntu too :-) )

Sorry to be not more helpfull, maybe other MATE users have an idea?

Regards,

Richard Duivenvoorde

PS, googling how MATE differs from Gnome I found: 
https://itsfoss.com/which-ubuntu-install/
It's based on (OLD!!) gnome2... Please give the new Gnome a try, it's my daily 
driver for years now, and I'm very happy with it

On 8/26/22 01:27, Herman Felderhof via Qgis-user wrote:

Background: I have recently upgraded from Ubuntu 20.04 LTS (Focal), to Ubuntu 
22.04 (Jammy). QGIS was upgraded at the same time to 3.22 LTR Białowieża. I 
think I may have had 3.16 LTR Hannover before that but I'm not certain.

The Problem: I can only read either the drop down menus in QGIS or the tool 
tips, it doesn't matter if I choose a light to a dark theme in Ubuntu MATE 
22.04. When I switch to a dark theme the menus are okay and I can read them, 
they have light text on a dark background, but when I hover over an icon the 
tool tips have light text on a light background and are therefore illegible. 
The opposite problem occurs whenever I switch to a light theme.

What I have tried: Opening other applications to see if it's only QGIS, and no 
other applications seem to have this problem. I have tried changing to several 
different themes in Ubuntu MATE, opening and closing QGIS after resetting the 
theme, rebooting, trying in a different computer, looking to see if I can find 
any settings to fix the problem, upgrading QGIS from 3.22 LTR Białowieża to 
3.26 Buenos Aires, searching web forums in case somebody else has the same 
problem and a solution is already known.

My questions: Are there any settings available to users that I can use to fix 
this problem? Or is this a bug and outside the scope of ordinary users 
control?I am not afraid of using the command line or editing files if 
necessary, especially if I have clear instructions.

Thanks for any help or even just comments.

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user