ReadFiles: Read Files

Description Usage Arguments Details Author(s) See Also

Description

The ReadFiles function is a utility function called by function ProcTraj. This function reads all the endpoint files output by HYSPLIT, process these files, and put them all together in a single file.

Usage

1
ReadFiles(working_dir, ID, dates, tz)

Arguments

working_dir

String; path to HySplit working directory, this is the location of the endpoint trajectory files that will be read by ReadFiles.

ID

Integer: Process ID. When called in Parallel, this ID argument ensures that each process will deal with a separate set of files preventing race condition problems among different processes.

dates

Vector containg all the dates that will be calculated by hysplit.

tz

String; TimeZone e.g "GMT"

Details

Each HYSPLIT endpoints trajectory file has a header containing some information about the trajectory it self. In order to put all trajectories together, ReadFile take this header information out. An example of a single trajectory output by HYSPLIT could be:

3 1
CDC1 7 7 1 0 0
CDC1 7 8 1 0 0
CDC1 7 9 1 0 0
1 FORWARD OMEGA
7 8 11 22 50.185 -67.475 100.0
1 PRESSURE
1 1 7 8 11 22 0 0 0.0 50.185 -67.475 100.0 953.4
1 1 7 8 11 23 0 0 1.0 50.033 -67.312 95.3 956.9
1 1 7 8 12 0 0 0 2.0 49.871 -67.159 90.4 960.0
1 1 7 8 12 1 0 0 3.0 49.708 -67.009 85.8 962.7

In this example, the ReadFile function would take the header information out, so that, only the four last lines would be used.

Author(s)

Thalles Santos Silva

See Also

ProcTraj


opentraj documentation built on May 1, 2019, 8:47 p.m.