Comments (5)
Hi Rolf, that is odd. Have you tried to convert directly to dfs0?
df.to_dfs0("output/naples_fl_eum.dfs0",
items=[
ItemInfo(EUMType.Temperature),
ItemInfo(EUMType.Precipitation_Rate, EUMUnit.inch_per_day)]
)
from mikeio.
Maybe the name "T" is interfering with transpose method DataFrame.T
https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.T.html
๐ค
from mikeio.
You could also test with df.T.to_numpy() optionally with dtype argument - see https://pandas.pydata.org/docs/reference/api/pandas.Series.to_numpy.html#pandas.Series.to_numpy
from mikeio.
Maybe the name "T" is interfering with transpose method
DataFrame.T
https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.T.html ๐ค
Good point - in that case safer to refer to that series with df["T"]
from mikeio.
Thank you very much for your prompt replies!
It's really the interfering with the transpose method: df.T returns a transposed dataframe. So, df['Tยจ] works!
I thought that methods must always called with brackets (i.e. df.T() for transposing).
Thanks for the hint of direct converting! I knew the method df.to_dfs0 from the examples but didn't know how to define the items.
from mikeio.
Related Issues (20)
- 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
- DFSU.read() very slow on AMD CPU or linux
- Concat bug with mikeio>2.0 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.