mscross / pysplit

A package for HYSPLIT air parcel trajectory analysis.
BSD 3-Clause "New" or "Revised" License
144 stars 79 forks source link

Trouble with integration error - bad reverse trajectory #64

Open ceio1 opened 4 years ago

ceio1 commented 4 years ago

HI, I am using pysplit to generate backtrajectories. When calculating the integration error, sometimes, this error comes up "Trajectory C:/Users/User/Desktop/serv_trajs/london17\london17dec0000winter20171201031.0 has a bad reverse trajectory:

                      120 hours instead of 51 hours

It happens for many trajectories to end in 👍 AttributeError: 'Trajectory' object has no attribute 'integration_error'

I am not sure what this means and how to fix it either, any suggestions? Many thanks in advance

mscross commented 4 years ago

Length mismatch between original and reverse trajectory. Looks like the original only ran for 51 hours, then the reverse went what I assume is all the way. The integration error will not be calculated when there is a length mismatch. Trajectories will stop early if they run into the ground, out of the top of the model, or beyond the space/time scope of your meteorology. For this particular trajectory, make sure you have enough January meteorology and perhaps start it higher than 0 m off the ground.