Comments (6)
What are the bounds of the data in your netcdf file (x,y,z vectors)?
from easi.
x = 0, 500, 1000, 1500, 2000, 2500, 3000, 3500, 4000, 4500, 5000, 5500,
6000, 6500, 7000, 7500, 8000, 8500, 9000, 9500, 10000 ;
y = 0 ;
z = 0, 500, 1000, 1500, 2000, 2500, 3000, 3500, 4000, 4500, 5000, 5500,
6000, 6500, 7000, 7500, 8000, 8500, 9000, 9500, 10000, 10500, 11000,
11500, 12000, 12500, 13000, 13500, 14000 ;
dimensions:
x = 21 ;
y = 1 ;
z = 29 ;
ncdump norciax_210fault_nncia.nc -h
netcdf norciax_210fault_nncia {
types:
compound initial_condition {
float s_zz ;
float s_yy ;
float s_yz ;
float s_xx ;
float s_xz ;
float s_xy ;
float d_c ;
float mu_s ;
}; // initial_condition
dimensions:
x = 21 ;
y = 1 ;
z = 29 ;
variables:
float x(x) ;
float y(y) ;
float z(z) ;
initial_condition data(z, y, x) ;
}
from easi.
What are you trying to do? AffineMap mapping point (0,0,0) to (348441,4.76021e+06,0) is correct. The error is thrown because latter point is not part of your netcdf file. So in principle everything works as it should work.
from easi.
The setup is not designed by me, I m just debugging it.
I agree that the affine map does not map onto the netcdf.
But then the error itself is not very clear, because it may suggest that easi tries to assess model parameters at a point of the mesh which does not exist.
It does not say that it is a point transformed by the affine map.
Also, why ASAGI is not fixing in this case (e.g. Warn: ASAGI: Coordinate in dimension 2 is out of range. Fixing
), but throwing an error? Is it consistent?
from easi.
I agree that the error message is not very intuitive but it's unambiguous:
fault2.yaml@2: Could not find model for point [ 348441 4.76021e+06 0 ] in group 1.
@2 tells that the component at Line 2 is throwing the error (the AffineMap). Then, AffineMap is complaining that it's output point is not accepted by any of its child components.
How would you formulate the error message to make it more clear?
The error is not thrown by ASAGI but by easi. ASAGI would in principle allow points that are out of bounds, but then the value is clamped to the nearest boundary value. In this case, one would get completely wrong values.
from easi.
Hi,
I agree that the message was not ambiguous once you know how to interpret it.
Neither I or Taufiq and Emanuelle from INGV could not understand it when they faced it.
There is, therefore, room for improvement in this error message.
Nevertheless, I don't know how to make it clearer.
A minimum would be to add a discussion about this example in:
https://seissol.readthedocs.io/en/latest/easi.html#debugging-easi-script
I will do that if you agree.
Thomas.
from easi.
Related Issues (13)
- EvalModel with more than 8 parameters HOT 4
- ASAGI block in a !EvalModel HOT 8
- initializing plastCo from mu leads to SeisSol crashing HOT 2
- Segmentation fault with !LuaMap in easicube
- 1d input of a LayeredModel from EvalModel HOT 5
- stack overflow with LuaMap HOT 2
- ASAGI 1d gives unexpected resuts HOT 3
- No valid version for 'easi' satisfies '@1.2' HOT 12
- Unknown tag !LuaMap HOT 2
- Installing SeisSol dependency easi error:undefined reference to H5free_memory HOT 11
- easi does not propates yaml-cpp HOT 1
- Agreing on a impalaJIT version 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 easi.