Skip to content
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

Design simple FM/FM nesting workflow #204

Open
veenstrajelmer opened this issue Dec 14, 2022 · 0 comments
Open

Design simple FM/FM nesting workflow #204

veenstrajelmer opened this issue Dec 14, 2022 · 0 comments

Comments

@veenstrajelmer
Copy link
Collaborator

veenstrajelmer commented Dec 14, 2022

  • Nesthd1:
    • input: rooster grof (evt ook epsg code, of uit rooster lezen)
    • input: pli-line met bnd langs rooster-fijn (incl epsg code, default is WGS84 maar check dan: coords.min()>=-180 en coords.max()<=180)
    • action: kdtree van cellcenters grove rooster
    • action: find 3 nearest neighbors (cartesian) or find cell numbers and connected cells via meshgrid oid
    • action: generate list of cellscenters and connected cellcenters
    • action: drop duplicate coordinates, drop coordinates with distance larger than np.sqrt(cellarea.mean() of nestcells)
    • returns: obsfile met coordinaten van deze cellcenter values
  • Run grof model met obsfile
  • Nesthd2:
    • input: pli-line
    • input: hisfile grove model
    • (input: obsfile, to check if all obspoints are present in ncfile (geen adminfile nodig))
    • action: make kdtree van obspoints, query per pli punt (incl distance, cartesian), invdist avg of neighbors, results in timeseries
      • alternative: hisfile.interp() met alle pli punten (zoals interpolate_nc_to_bc() function) (lijkt niet zomaar mogelijk, maar kan ongetwijfeld)
    • action: put timeseries in forcingmodel and write to bc file
    • eerste opzet in "workinprogress_interpolate_his.py" example script
  • er is een idee om interpolatie in te bouwen in de FM kernel, dan zou het nog veel makkelijker worden (plifile omzetten naar xyn, grof model draaien met xyn, history inlezen en omzetten naar nc/bc

First setup: https://github.com/Deltares/dfm_tools/blob/main/tests/examples_workinprogress/workinprogress_nestingFMtoFM.py

Also request from RS/PK to add Neuman boundary, where inflowing direction of grid should be known (possible?). Or alternatively, combination of waterlevel/ux/uy boundary, which is simpler to implement.

Related, nesting SFINCS in FM is done in GC with:

Also request from WO to add Riemann boundary, so combination of waterlevel and discharge (latter from cross-sections). For morphology we also require nesting bed level changes (form obsfiles) and sediment transport (form cross-sections).

Also align with nesting in ocean models like CMEMS, maybe also consider nesting in other existing models (shyfem, schism, delft3d4, etc).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant