Comments (1)
Dear @alesok,
Thank you for suggesting a new method for slf.Serafin.Read
.
The method provided should work fine but can only work if Telemac is used with a constant time step.
I prefer not to add the method as it is not the general case. An alternative to this method could be to simply define the list header.time
manually in your script with something like :
import numpy as np
header.time = list(np.arange(header.nb_frames)*5.0) # if time step is equal to 5.0 sec.
Finally if you need an iterator on all frames, returning the current time and corresponding values (shape=(header.nb_var, header.nb_nodes)), we could add it, to avoid browsing the file twice.
Regards,
Luc
from pyteltools.
Related Issues (20)
- plot a Serafin results file using Python API HOT 4
- `SerafinHeader.from_triangulation` performance HOT 3
- Support for 3D boundary files HOT 4
- Depth-averaging for 3D Serafin files HOT 2
- Add two variables HOT 2
- Fix temporal mean operator
- Interpolate to 2D vertical cross section HOT 2
- Provide example to reproject result HOT 1
- Error in Vertical Cross Section HOT 6
- Creating workflow and running from terminal HOT 1
- Error in SynchMax HOT 9
- Question regarding volume calculation HOT 2
- Liquid Flux Calculation Orientation HOT 1
- Duration over threshold
- Language selection in comp_ADCP_t2d HOT 1
- Create release
- Add t3s read/write to BlueKenue.py
- Serafin.Write creates a ghosted frame HOT 4
- bug in Mesh2D __init__ HOT 4
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 pyteltools.