-
Notifications
You must be signed in to change notification settings - Fork 8
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
Output data needs to indicate whether a node is a boundary one or not #167
Comments
I have second thoughts about adding it to the post-processing. The code is import pyposeidon.mesh as pm
#add boundary nodes
mesh = pm.set(type='tri2d', mesh_file=os.path.join(b.rpath + 'hgrid.gr3'))
out_total = xr.merge([out,mesh.Dataset[['type','node','id']]]) but it would take long for a big global mesh and the data will be in every output file. I suggest we save |
Sure, it can be part of the model definition. |
That being said, do we need to call out_total = out.assign(
btype=mesh.Dataset.type,
bnode=mesh.Dataset.node,
bid=mesh.Dataset.id
) |
I agree if we needed to merge them. We will not do that. We are just going to save to a import pyposeidon.mesh as pm
#add boundary nodes
mesh = pm.set(type='tri2d', mesh_file=os.path.join(b.rpath + 'hgrid.gr3'))
mesh.Dataset[['type','node','id']]].to_netcdf("boundary_connectivity.nc") This will be done once and the file can be used to identify boundary nodes for all outputs, if need be. It doesn't need to be part of |
I think we can close this issue. |
Should we export this file by default? Should we also be able to read it? And/or to add a reference it in the |
This is needed for GDACS
The text was updated successfully, but these errors were encountered: