Skip to content

Make vario. estim. distance fct ready for N dim.#82

Closed
LSchueler wants to merge 1 commit intodevelopfrom
NDim
Closed

Make vario. estim. distance fct ready for N dim.#82
LSchueler wants to merge 1 commit intodevelopfrom
NDim

Conversation

@LSchueler
Copy link
Copy Markdown
Member

@LSchueler LSchueler commented Apr 21, 2020

As discussed in issue #77 and in the PyKrige issue we want to support arbitrary field dimensions.

@LSchueler LSchueler added the enhancement New feature or request label Apr 21, 2020
@LSchueler LSchueler added this to the 1.3 milestone Apr 21, 2020
@LSchueler
Copy link
Copy Markdown
Member Author

LSchueler commented Apr 21, 2020

This commit is a first step towards arbitrary dimensions.
One problem with using a more general distance function is that the parallelisation is not working anymore. We'll have to discuss how much effort we want to put into the parallelisation of the variogram estimation. Of course, it gets more and more important with increasing dimensions... ;-)

Copy link
Copy Markdown
Member

@MuellerSeb MuellerSeb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say: LGTM. It looks much cleaner.

Comment on lines +120 to +126
# quick and dirty assembly of pos
if dim == 1:
pos = np.atleast_2d(x)
elif dim == 2:
pos = np.array((x, y))
else:
pos = np.array((x, y, z))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use the xyz2pos routine here?

@MuellerSeb MuellerSeb modified the milestones: 1.3, 2.0 Aug 25, 2020
@MuellerSeb
Copy link
Copy Markdown
Member

I implemented this with 73f1b68

There, parallelism is working. Closing this one in favor of the direct-vario branch.

@MuellerSeb MuellerSeb closed this Nov 7, 2020
@MuellerSeb MuellerSeb deleted the NDim branch November 11, 2020 22:43
@MuellerSeb MuellerSeb modified the milestones: 2.0, 1.3 Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants