runtraj.models.flexpart.read_partoutput#
- runtraj.models.flexpart.read_partoutput(paths, release_time)[source]#
Read FLEXPART 11
partoutputfiles as one particle table.Each row is a particle at an output time when FLEXPART wrote it, so a particle not yet released or already gone has no row. FLEXPART skips a particle in the step it is released, so there is no release row at
age = 0.lon,lat, andzbecomelon,lat, andzagl; the other fields that HYSPLIT also writes take HYSPLIT’s names (PARTICLE_COLUMNS), sohmixismlhtandrhoisdens, andpresis in hPa. Every other field keeps FLEXPART’s name, such aspvorhmix_av, withNaNwhere FLEXPART wrote its fill value.- Parameters:
- Returns:
particle,age(seconds, negative for a backward run),lon,lat,zagl, then the other fields, ordered by output time as FLEXPART wrote them and by particle within a time.- Return type:
- Raises:
FileNotFoundError – If a file does not exist.
ValueError – If no file is given, a file has no
lon,lat, orz, a field is on FLEXPART’s grid rather than per particle (the output of a domain-filling run,MDOMAINFILL1).
Examples
>>> particles = read_partoutput( ... "output/partoutput_20230601180000_init.nc", ... release_time=dt.datetime(2023, 6, 1, 18), ... )