This script is capable of reading recursively a bunch of .dat files in binary format and generate a new 3-Dimensional structure containing the data associate to different particles.
The data is organized into n-layers of the following 2-Dimensional structure:
1 | ... | 31 | |||||||||||||||
0 | 3 | 6 | 9 | 12 | 15 | 18 | 21 | ... | 0 | 3 | 6 | 9 | 12 | 15 | 18 | 21 | |
lon | ... | ||||||||||||||||
lat | ... | ||||||||||||||||
h | ... | ||||||||||||||||
qvi | ... | ||||||||||||||||
theta | ... |
- (Required) dirName: Path of the directory that contains the files and path to save the output files (cell array)
- log file: File that contains the list of property processed .dat files and the errors.
- [Month-Name].nc file: Files that contain a 3-Dimensional structure with the rearranged data read from the .dat files.
Reads all the .dat files from SOURCE_PATH and generates rearranged the data into a single 3-Dimensional structure
binary_reader({'SOURCE_PATH','SAVE_PATH'})