jsf2nav
Overview
jsf2nav extracts position fixes from EdgeTech JSF Position messages (message type 3004, JSF_Position_3004_Data) and writes them into a binary OMG jcu_nav_rec navigation file (<nav_file_prefix>.nav).
Usage
jsf2nav [-v] [-debug] -jsf <input_name.jsf> -nav <nav_file_prefix>
CLI Options
| Flag | Arguments | Default | Description |
|---|---|---|---|
-jsf | <input_name.jsf> | Required | Path to the input EdgeTech .jsf file. |
-nav | <nav_file_prefix> | Required | Output prefix; creates <nav_file_prefix>.nav. |
-v | None | Off | Print every parsed JSF_Position_3004_Data structure. |
-debug | None | Off | Enable debug flag. |
How It Works
- Message Filtering: Iterates sequentially through all
JSF_Message_Headerblocks in the input.jsffile, skipping any message whosemessage_type != 3004. - Validity Check: Inspects
navigation_3004.data_validity_flagsand requires both bit0x0008and bit0x0010(valid latitude and longitude) to be set before accepting a record. - OMG Navigation Output: Populates
jcu_nav_rec(time,centisecsfrom nanoseconds,lat,lon) and writes each fix to<nav_file_prefix>.navvianav_write().
Practical Examples
1. Extract navigation from an EdgeTech 4600/2205 JSF file:
jsf2nav -v -jsf line01.jsf -nav line01