You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the other hand, when using a netcdf file with this structure:
ncdump -h test.nc
netcdf test {
dimensions:
na = 9 ;
nb = 5 ;
variables:
float a(na) ;
float b(nb) ;
float h(nb, na) ;
}
I get the following error:
../EvaluateVpVs/EvaluateDc test2.yaml -15000. 0 -5000.
terminate called after throwing an instance of 'std::runtime_error'
what(): test2.yaml@9: Could not find model for point [ 5000 5000 ] in group 1.
Aborted (core dumped)
Which means that asagi only works when each dimension and 1D variable have the same name.
This should be Documented, or a warning should be raised when not the case.
The text was updated successfully, but these errors were encountered:
Coordinate Variables:
1-dimensional netCDF variables whose dimension names are identical to their variable names are regarded as "coordinate variables" (axes of the underlying grid structure of other variables defined on this dimension).
Probably everything is working fine but the your arrays a and b are no longer considered as coordinate variables and the point 5000, 5000 is out of bounds.
Hi Sebastian,
I see! I missed this important point of the COARDS convention. Then we will make that clear in easi or seissol documentation.
Thanks for the feedback!
Best,
Thomas.
Le 19 octobre 2020 19:07:45 GMT+02:00, Sebastian Rettenberger <[email protected]> a écrit :
This is part of the COARDS Convention for netCDF files:
https://ferret.pmel.noaa.gov/Ferret/documentation/coards-netcdf-conventions
> **Coordinate Variables:**
> 1-dimensional netCDF variables whose dimension names are identical to
their variable names are regarded as "coordinate variables" (axes of
the underlying grid structure of other variables defined on this
dimension).
Probably everything is working fine but the your arrays `a` and `b` are
no longer considered as coordinate variables and the point 5000, 5000
is out of bounds.
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#10 (comment)
This is the file I try to parse:
And this is how I create the example netcdf
structure of the netcdf
I try then to parse the yaml file use a cpp program, and I get the expected value:
On the other hand, when using a netcdf file with this structure:
I get the following error:
Which means that asagi only works when each dimension and 1D variable have the same name.
This should be Documented, or a warning should be raised when not the case.
The text was updated successfully, but these errors were encountered: