Comments (3)
I'll take a look into this over the next few days- I think it would be a good way for me to get into the particle class and resulting netcdf files. I'm likely to be working on this kind of functionality a lot in parcels I imagine.
from parcels.
I think automatically sampling and outputting each additional field on a grid is too much defaulting, since it will make it very easy to "accidentally blow-up" the output file and adds a lot of invisible "behind the curtain" behaviour. It also requires us to automatically insert particle.var = grid.Var[time, particle.lon, particle.lat]
into at least one kernel executed per output timestep, which will be very awkward to do right when executing kernel chains.
Instead I would propose to have a list of "output variables" on user-defined Particle
classes that defaults to all user_vars
. This way output gets triggered by adding variable var
to a kernel class, but users have to insert the sampling call themselves. It also gives users control over the output file, allowing them to "slim it down" if they wish to do so. I would also note that ultimately we probably want to derive user_vars
automatically by inspecting the kernel objects, meaning that adding the sampling call will automatically trigger output, but that is only a syntactic shortcut to be added later.
from parcels.
Fixed with particle-sampling PR
from parcels.
Related Issues (20)
- CalledProcessError with RuntimeError on a PC HOT 6
- Breaking integration test CI on example_dask_chunk_OCMs.py
- Create kernels from list of Python functions HOT 4
- LaTeX equations in documentation HOT 4
- Geospatial tutorial HOT 3
- Parcels within eReefs GBR HOT 5
- Resuming an interrupted run
- Getting a "Correct cell not found" and no results for a simulation HOT 4
- Reading EFDC NetCDF output into Parcels HOT 16
- issues running regridded ROMS HOT 9
- OutOfBoundsError when particle reaches the North Pole (~ 89.5 deg N)
- Kernel Died Automatically (Ocean Parcels) HOT 2
- OutOfBoundError: I have this code from parcel but it looks like if the particle trajects at shallow depths, it produces an OutOfBounds Error message. I would like to either delete the particles that falls out of the domain or have it bounced back to its original position. I included the 'deleteparticle' function and also produces a different error message. Any help will be much appreciated. Thanks HOT 1
- Broken readthedocs for geospatial tutorial
- `parcels_get_examples` deprecation notice HOT 2
- Cleaning python install process and setup.py
- Typo in documentation of `time_periodic` argument of Fieldset constructors HOT 1
- "Jumps" using different values of RK4_dt HOT 2
- Auto-update CITATION.cff file HOT 2
- Issue running oceanparcels on updated environment HOT 7
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 parcels.