Closed mjmuller94 closed 5 years ago
Dear Maarten,
First of all, it is good practice to use markdown on GitHub and on gitter.im. I have now updated your comment by adding three quotes (```python
) as the beginning and end of your code. That makes it much more readable.
Then, it is also very important to say where the error occurred (i.e. on which line). A bit more of the 'traceback' (i.e. what the errors before this last error are) will help find the bug.
So please add that, and then we can try identify what's going on
This has now been fixed, I understand, by moving the rho
field reading into the dictionaries of the FieldSet.from_netcdf
call directly
Hello,
I have calculated the density from the NEMO data and wrote this into a NetCDF. I created a field and added it to my fieldset. I want to know the density of the particle so I defined a new particle class for the density. When I use only one file of the density and set allow_time_extrapolation=True, everything works fine. However, I get an error when I set allow_time_extrapolation=False and use multiple files. This is when the particleset is constructed.
What is going wrong here?
My code and the complete error is below and the density files are in my scratch: /scratch/Maarten/RHO_data_025/.
If is use velocity files instead of my files of the density in
SampleParticle
, it does work. So maybe something is wrong with my density NetCDF files. So the header of one of these files is also shown below.The complete error is:
Code:
Header:
Maarten