Comments (3)
Looks like I was using the wrong method. Should be:
df_krig = ok.calc_factors(x =mg.xcellcenters, y = mg.ycellcenters,num_threads = 16, maxpts_interp = 999)#use all data
So I am good, but not going to close because I think the use of the sr class in "calc_factors_grid" is still an issue
from pyemu.
@RyanConway91 that SpatialReference
in pyEMU is so we can avoid a direct dependence on flopy, but PstFrom
does play nice with flopy's newer modelgrid
.
Its still pretty new but we will likely be shifting all things pilot points to pypestutils (https://github.com/pypest/pypestutils) in the near future since it supports both structured and unstructured grids and waaayyyyy faster than pyEMU's kriging
from pyemu.
Sorry @RyanConway91, catching up on things long overdue. I think the confusion comes from the docstring in calc_factors_grid()
referencing a flopy.utils.reference.SpatialReference
(legacy), it should be pyemu.helpers.SpatialReference
(or possibly anything that has attributes [xcentergrid, ycentergrid, nrow, ncol, grid_type, ncpl (only if grid type=='vertex')]). As @jtwhite79 says the SpatialReference
in pyemu is pretty stripped down compared to flopys (it was actually a wholesale lifted from flopy's old method). If using pstfrom spatialreference
that is passed to calc_factors_grid()
is constructed on the fly and can use flopy's modelgrid as an input.
Defo checkout the pypestutils stuff, which is bring all of the wonders of plproc etc into a python accessible form.
from pyemu.
Related Issues (20)
- add_parameters KeyError when 'filename' includes path HOT 2
- Justification for setting par_names to all lowercase in parse_tpl_file HOT 2
- use robocopy mirror instead of shutil.copytree in start_workers() HOT 1
- pstfrom_mf6.ipynb doesn't run to completion and returns an error HOT 2
- Panther progress not showing at fourth iteration HOT 1
- AttributeError: 'Pandas' object has no attribute 'chkpar' HOT 33
- pst_from support for single column parameter files HOT 2
- testing issue HOT 2
- shortnames may still violate template file line length constraints in pest_hp HOT 2
- parrep bug? HOT 1
- Miss-alignment in tpl indices and original file HOT 5
- pe.enforce() does not always update df HOT 1
- Matrix object has no attribute 'names' HOT 1
- I/O operation on closed file HOT 2
- Documentation not working HOT 2
- numpy 2.0 incompatibility HOT 1
- Error "ValueError: columns cannot be a set" from pyemu.ParameterEnsemble.from_parfiles()
- Add python function (to PstFrom.add_py_function) as a string. HOT 2
- ready for numpy 2? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyemu.