-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Field: enable standalone use #166
Conversation
…dd 'latlon' property; better doc ref to '__call__'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think first of all the __call__
method and maybe also the Field
class itself needs more documentation. It is not clear at all what is being "generated" and what the "field values" are.
Now we have Field.structured
, Field.unstructured
, Field.mesh
, and Field.points
. Wouldn't it be really nice to enhance the mesh_type
keyword to be able to actually use all these possibilities with only one single method call?
Maybe just a "Set field with position tuple and values" in the doc header?
This would be an issue for GSTools v2. For now we have to keep these methods. Especially the Also the planned xarray interface (see #140) should also be just a new method Here we are again discussing the scope of this class 😄 |
Yeah, together with an example of what that is good for is enough I guess. Something like "This gives you access to e.g. the plotting routines or the normalization functionality." |
Here we go again ;-) Anyways, I think the |
Then I would vote for kicking |
We actually added the I have to agree that it would take a lot of careful considerations, if we introduce a new |
Ok, then I am fine with dropping |
@LSchueler removed the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's good to have the example.
And I think we're nearly there ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We finally made it! 👍
Yeah! Will merge when CI is successful. 🎉 |
Minor update to the
Field
class to enable standalone usage:dim
points
method to generate field on a point list (transposed unstructured pos tuple as used in many other packages (e.g. PyVista))latlon
property__call__
This was a low hanging fruit. Now
Field
can be used to display and export arbitrary n-d point data.