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

Reader native schism #447

Closed
wants to merge 268 commits into from

Conversation

simonweppe
Copy link
Contributor

Hi @knutfrode @gauteh ,

Following up on that discussion on readers for data on unstructured grids, #243, I have made a clean branch from your latest code (without any of my other edits/dev) and added only work I did on the reader for the native SCHISM output files ( SCHISM model : http://ccrm.vims.edu/schismweb/. The interpolation is handled by the ReaderBlockUnstruct() class, which is in the reader itself rather than in interpolation.py for now

Like you said, it would be good to have a more generic reader for several unstructured grid formats, but in the meantime this could be useful to SCHISM users or in the development of a more unified reader for these kind of grids.

Cheers,

Simon

@gauteh
Copy link
Member

gauteh commented Nov 26, 2020 via email

@gauteh gauteh mentioned this pull request Dec 15, 2020
@gauteh
Copy link
Member

gauteh commented Dec 15, 2020

Hi @simonweppe,

I've started looking at this reader. I have posted some cleanups in #476 (currently only regarding the custom landmask). I have also rebased your work. We have made some significant changes to the structure and inheritance of readers which we need to take into account in your reader before we can merge. It would be good to remove debug comments and dead code before merging since this tends to end up never getting removed later. If you do not have time to do this I can also try to help out with that. I have not really started working on the schims-reader yet but I hope that some of the methods in unstrucutred.py can be used to avoid duplication between FVCOM and SCHISM. I have some doubts though since you need a 3D cKDTree.

In custom landmask reader, do you need the plot method? I assume it is duplicated here since you need an unstructured boundary?

Regards, Gaute

@simonweppe
Copy link
Contributor Author

Thanks for that @gauteh. I'll find some time to clean the code and include as much as possible the methods in unstrucutred.py.
Keep you in touch.
Thanks,
Simon

@coveralls
Copy link

coveralls commented Jan 14, 2021

Coverage Status

Coverage decreased (-9.3%) to 50.641% when pulling 43bebc7 on simonweppe:reader_native_schism into 5a17254 on OpenDrift:master.

knutfrode and others added 25 commits January 27, 2021 22:01
… performance improvement for one case. Added also the same chunk for open_dataset, but uncertain whether this has any impact.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Added chunks time:1 for open_mfdataset in reader_netCDF_generic. Huge…

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Modified check whether environment is outdated; using cfgrib instead …

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Radionuclide
…t example. ShipDrift model now requires wind and current input to run (fallback 0 -> None)

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Using now CMEMS wind (MyWwaveWAM3km) and current (Topaz6) in shipdrif…

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
par lonlat2xy

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
plot_property() can now save figure to file if filename is provided

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
netCDF attribute seed_geojson is now a GeoJSON FeatureCollection.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
…ipt to show coverage of these for the gallery. Prioritising now Topaz6 in favor of Topaz4 and Nordic4, and WAM3 in favor of WAM4
… x/y variables are detected, giving much faster initialisation. General cleanup of the reader.
gauteh and others added 28 commits May 27, 2021 10:44
…on() method, activated by setting markersize='mass' when calling the method. (Otherwise the algorithm runs as before)

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
[run-ex] Illustrating use of orign_marker in example_multi_seed.py

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Assuring that sea_floor_depth_below_sea_level is positive, and not ne…

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Set resuspended particles diameter correctly
…dated for sorbed to sediments and then resuspended particles.
…n factors for temperature and salinity environmental variables. Renaming several variables

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Chemical speciation for organic pollutants + some small fixes
@simonweppe simonweppe closed this Jun 25, 2021
@simonweppe simonweppe deleted the reader_native_schism branch June 25, 2021 09:53
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

Successfully merging this pull request may close these issues.

None yet

7 participants