-
Notifications
You must be signed in to change notification settings - Fork 3
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
Re-assess/update PySCHISM #8
Comments
TypeError in fgrid.py: 'sjoin() got an unexpected keyword argument 'op''DescriptionI encountered a Steps to Reproduce
from pyschism.mesh.hgrid import Hgrid
from pyschism.mesh.fgrid import DragCoefficient
if __name__ == '__main__':
hgrid=Hgrid.open('hgrid.gr3', crs='epsg:4326')
depth1=-1.0
depth2=-3.0
bfric_river=0.0025
bfric_land=0.025
fgrid=DragCoefficient.linear_with_depth(hgrid, depth1, depth2, bfric_river, bfric_land)
regions=['region1.reg', 'region2.reg']
values=[0.001, 0.0]
flags=[1, 0]
for reg, value, flag in zip(regions, values, flags):
fgrid.modify_by_region(hgrid, f'./{reg}', value, depth1, flag)
fgrid.write('drag.gr3', overwrite=True)
gdf_in = gpd.sjoin(gdf2, gdf1, op="within") Proposed FixThe issue can be fixed by replacing op with predicate: gdf_in = gpd.sjoin(gdf2, gdf1, predicate="within") Additional InformationPySCHISM version: 0.1.15 |
I've developed a new plotting feature for pyschism that allows quick visualization of input files used in the SCHISM model. The goal here is to improve our workflow by enabling us to visually inspect our input data before running the model, potentially saving time and helping to catch issues early. Here's what I've done:
Next Steps:
Please feel free to check out the fork, try the new feature, and let me know if you have any questions, suggestions, or if you encounter any issues. |
No description provided.
The text was updated successfully, but these errors were encountered: