Comments (12)
dhitools seem to have a lot of useful functionality
Yes. The library is well maintained and well documented. So why copy? Just use it...
from mikeio.
To qualify this discussion a bit more, I have tried to collect some important functionality in other mike libraries in the below lists. Please extend as needed. With such a list, we can prioritize what functionalities we would like to port to mikeio.
dhitools by robjameswall https://github.com/robjameswall/dhitools
- dfsu-to-grid interpolation
- interpolate from raster (e.g. to mesh)
- to_geodataframe
- dfsu: node_table
- item aggregate statistics (for timesteps or all)
DHI Matlab toolbox https://github.com/DHI/DHI-MATLAB-Toolbox
- Mesh: mzReorderMesh, mzRefineMesh
- Mesh: mzMeshAnalyse
- xyz: mzReadxyz, mzWritexyz
- header manipulation? (like custom blocks)
mikepy by Florian Monetti (DHI internal)
- re-projection
- calculate various statistics
- get_custom_blocks, set_custom_blocks
- xlsx_to_dfs0
- csv_to_dfs0
- dfsu_to_shape (GDAL)
- dfs2_to_raster (GDAL)
- exceedance_probs_to_dfs
from mikeio.
sorry, did not mean to close
from mikeio.
Seems that https://github.com/robjameswall/dhitools could benefit from mikeio. But mikeio should avoid the GDAL and geopandas dependencies and not consume dhitools, or did you decide on something here?
from mikeio.
I needed to load a dfs0, scale the time series data and write a new dfs0 file. I compiled @jsmariegaard 's github.com/DHI/dfs-utils instead and used from python. Maybe these tools can be merged as well?
from mikeio.
GDAL and geopandas seems difficult to install via pip, and I don't want to make mikeio
only available via conda. Thus, I think we have to leave GIS functionality out of mikeio
.
Is there any other functionality from dhitools that we should include in mikeio
somehow? Or close this issue?
from mikeio.
GDAL and geopandas seems difficult to install via pip
Only on Windows. On Linux there are by now zero issues with that (manylinux wheels galore).
from mikeio.
Still, avoiding very heavy dependencies that are only needed for an isolated set of features is a great idea. You can still ease the interface to e.g. GeoDataFrames
, by returning dictionaries to directly create them from.
from mikeio.
Nice. One way to prioritize could be to create an issue for each feature described with a few sentences and maybe with code snippets from the original source. If users and contributors really need these features then they will get implemented eventually or commented on in the issue. If there is a description there is a better chance someone might grab it. Maybe as part of a bigger related feature they are working on.
from mikeio.
Annotated list
Implemented = ✔️
Notebook example = 📓
dhitools by robjameswall https://github.com/robjameswall/dhitools
- dfsu-to-grid interpolation
- interpolate from raster (e.g. to mesh)
- to_geodataframe 📓
- dfsu: node_table
- item aggregate statistics (for timesteps or all)
DHI Matlab toolbox https://github.com/DHI/DHI-MATLAB-Toolbox
- Mesh: mzReorderMesh, mzRefineMesh
- Mesh: mzMeshAnalyse
- xyz: mzReadxyz, mzWritexyz ✔️ #93
- header manipulation? (like custom blocks)
mikepy by Florian Monetti (DHI internal)
- re-projection
- calculate various statistics
- get_custom_blocks, set_custom_blocks
- xlsx_to_dfs0 ✔️ pd.read_excel + df.to_dfs0
- csv_to_dfs0 ✔️ pd.read_csv + df.to_dfs0
- dfsu_to_shape (GDAL) 📓
- dfs2_to_raster (GDAL)
- exceedance_probs_to_dfs
from mikeio.
Annotated list
Implemented = ✔️
Notebook example = 📓
dhitools by robjameswall https://github.com/robjameswall/dhitools
- dfsu-to-grid interpolation ✔️, 📓
- interpolate from raster (e.g. to mesh)
- to_geodataframe 📓
- dfsu: node_table
- item aggregate statistics (for timesteps or all)
DHI Matlab toolbox https://github.com/DHI/DHI-MATLAB-Toolbox
- Mesh: mzReorderMesh, mzRefineMesh
- Mesh: mzMeshAnalyse
- xyz: mzReadxyz, mzWritexyz ✔️ #93
- header manipulation? (like custom blocks)
mikepy by Florian Monetti (DHI internal)
- re-projection ✔️#119 for dfs2
- calculate various statistics
- get_custom_blocks, set_custom_blocks
- xlsx_to_dfs0 ✔️ pd.read_excel + df.to_dfs0
- csv_to_dfs0 ✔️ pd.read_csv + df.to_dfs0
- dfsu_to_shape (GDAL) 📓
- dfs2_to_raster (GDAL)
- exceedance_probs_to_dfs
MIKE Zero
- Data Manager: create dfsu from mesh ✔️
- Data extraction FM
- dfsu-2d
- extract dfs0: discrete ✔️, interpolated (✔️)
- extract dfs1: (✔️)
- extract dfs2: (✔️ but not if the file is not too big)
- extract dfsu-2d: ✔️
- dfsu-3d
- extract dfs0: discrete ✔️, interpolated (✔️)
- extract dfs1: (✔️)
- extract dfs2 transect
- extract dfsu transect
- extract dfsu volume ✔️
- extract dfs3
- dfsu-2d
MIKE Zero toolbox
- TxConc: Concatenation of dfs files ✔️
- Extraction from dfs123 (✔️)
- Time series: Interpolate time series ✔️
- Transformation: rotate grid (✔️)
MIKE tools in bin folder (no GUI)
- DataTrackExtractionFM ✔️#121 for dfsu - dfs2 still missing
- DataVerticalAveragingFM
- extract specific layer: ✔️, 📓
- DataConcatenationFM ✔️
- DataCalculationFM ✔️
- DataExceedenceFM
- DataStatisticsFM ✔️
- DataMergeFM
- DfsuToNetCDF 📓
- DfsuToAscii ✔️
from mikeio.
It is apparent that there is a lot of useful functionality in MIKE IO. I will close this issue and we can open more specific feature requests as the need arises.
from mikeio.
Related Issues (20)
- Inconsistent default spatial plots
- Dfsu3D - vertical max, mean, and min
- Writing a Dfs2 file from python does not retain the x and y coordinates HOT 6
- small inconcistency in time dimension for time-invariant data arrays? HOT 6
- matplotlib should be optional HOT 1
- Extracting data from a large .dfs2 file HOT 4
- When trying to append multiple non-equidistant DFS0 following error message pops up HOT 2
- Appending data to a DataArray in Dfs2 file HOT 2
- Replace legacy interp1d with np.interp
- Dfs2 - static items (bathymetry) HOT 6
- Pass kwargs to plot.mesh HOT 2
- Error in executing code for building documentation not reported as a failing step in Action
- Drop support for 3.8
- Point incorrectly considered outside domain HOT 2
- Page not found at https://dhi.github.io/mikeio/dfs1.html HOT 2
- pip install error HOT 4
- Dfsu read elements reordered
- extract_track bug HOT 8
- Error in DataArray.__init__ if data is the last column of a dataframe HOT 5
- DFSU.read() very slow on AMD CPU or linux HOT 1
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 mikeio.