slcs-jsc / mptrac

Massive-Parallel Trajectory Calculations (MPTRAC) is a Lagrangian particle dispersion model for the analysis of atmospheric transport processes in the free troposphere and stratosphere.
GNU General Public License v3.0
35 stars 14 forks source link

Unable to read in variables - ERA5 #13

Closed hs2112 closed 1 year ago

hs2112 commented 1 year ago

Error (libtrac.c, read_met_grid, l3578): NetCDF: Invalid dimension ID or name



Could you please help me debug? Thank you. 
hs2112 commented 1 year ago

Link to file: https://drive.google.com/file/d/1zjbK0nne6AVXtuRvx3qbhwuzbNKeg2er/view?usp=sharing Hope you can take a look.

hs2112 commented 1 year ago

Could it be because 'hy' variables and dimensions are missing in ea_2005_06_20_00.nc? They got removed when I converted to pressure levels, somehow. Also, they were named differently in my merged file and the ml level column called 'hybrid' did not have its first level mapped to the surface vars - image

lars2015 commented 1 year ago

Hello hs2112,

thanks for sending the bug report!

I checked the netCDF meteo file you shared and fixed some issues with the MPTRAC code:

You would have to update to the most recent code version on the master branch, please.

Best regards Lars

hs2112 commented 1 year ago

Hi @lars2015,

Just moving my comments to the relevant issue.

thanks for the changes. Looks like it's able to read in the 2D variables for the parcel origin file now (issue https://github.com/slcs-jsc/mptrac/issues/13) but it is still not writing the _atm and _grid files for the following timesteps.

My data files are 3 hours apart in time so we are concerned with a 3-hour timestep with files formatted as follows - image

Log file - logfile.log

Run script (run.sh saved as run.txt) - run.txt

lars2015 commented 1 year ago

Hi @hs2112,

I've added the reply to issue #12.

Best regards Lars