Write trj4 file
Expected behavior
Output the trajectory in the TRJ4 format.
Initial state
Variation: "GMT"
Input variables
| Variable name | Description |
|---|---|
| header | The header that should be written to the file as string (can be multiline). |
| time | rafos julian day ? NEEDS TO BE DETERMINED |
| lat | latitude array |
| lon | longitude array |
| temperature | temperature array |
| pressure | pressure array |
| vlat | latitude veloctiy array |
| vlon | longitude veloctiy array |
Output parts
Header part
The header part consists of text that will be prepended to the .trj4 file. Header lines are indicated by a # sign as first character.
Data part
| Shortname | Description | Value/Format | Default value |
|---|---|---|---|
| [TIME] | The timestamp | 7.2f | |
| [LAT] | Latitude | 8.3f | -999 |
| [LON] | Longitude | 8.3f | -999 |
| [PRES] | Pressure | 7.1f | -999 |
| [TEMP] | Temperature | 7.2f | -999 |
| [VLON] | Longitude velocity | 8.3f | -999 |
| [VLAT] | Latitude velocity | 8.3f | -999 |
Output of one line
[TIME] [LAT] [LON] [TEMP] [PRES] [VLON] [VLAT]