1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-09-01 18:38:00 +00:00

skyplot: add jpg output, improve documentation, apply pep8 formatting

This commit is contained in:
Carles Fernandez
2025-08-27 20:35:29 +02:00
parent a1c3039a5d
commit fc91f414d5
2 changed files with 750 additions and 394 deletions

View File

@@ -22,8 +22,8 @@ showing satellite visibility over time.
- Color-codes satellites by constellation (GPS, Galileo, GLONASS, BeiDou). - Color-codes satellites by constellation (GPS, Galileo, GLONASS, BeiDou).
- Elevation mask set to 5°, configurable via the `--elev-mask` optional - Elevation mask set to 5°, configurable via the `--elev-mask` optional
argument. argument.
- Outputs high-quality image in PDF format. EPS, PNG, and SVG formats are also - Outputs high-quality image in PDF format. EPS, JPG, PNG, and SVG formats are
available via the `--format` optional argument. also available via the `--format` optional argument.
- Non-interactive mode for CI jobs with the `--no-show` optional argument. - Non-interactive mode for CI jobs with the `--no-show` optional argument.
- Constellations to plot can be configured via the `--system` optional argument. - Constellations to plot can be configured via the `--system` optional argument.
- Optionally, it uses the corresponding RINEX observation file to limit the plot - Optionally, it uses the corresponding RINEX observation file to limit the plot
@@ -52,7 +52,7 @@ showing satellite visibility over time.
``` ```
./skyplot.py <RINEX_FILE> [LATITUDE] [LONGITUDE] [ALTITUDE] ./skyplot.py <RINEX_FILE> [LATITUDE] [LONGITUDE] [ALTITUDE]
[--elev-mask ELEV_MASK] [--elev-mask ELEV_MASK]
[--format {pdf,eps,png,svg}] [--format {pdf,eps,jpg,png,svg}]
[--no-show] [--no-show]
[--system SYSTEM [SYSTEM ...]] [--system SYSTEM [SYSTEM ...]]
[--use-obs] [--use-obs]
@@ -60,17 +60,17 @@ showing satellite visibility over time.
### Arguments ### Arguments
| Argument | Type | Units | Description | Default | | Argument | Type | Units | Description | Default |
| ---------------- | -------- | ----------- | ------------------------ | -------- | | ---------------- | -------- | ----------- | ---------------------- | -------- |
| `RINEX_NAV_FILE` | Required | - | RINEX nav file path | - | | `RINEX_NAV_FILE` | Required | - | RINEX nav file path | - |
| `LATITUDE` | Optional | degrees (°) | North/South position | 41.275°N | | `LATITUDE` | Optional | degrees (°) | North/South position | 41.275°N |
| `LONGITUDE` | Optional | degrees (°) | East/West position | 1.9876°E | | `LONGITUDE` | Optional | degrees (°) | East/West position | 1.9876°E |
| `ALTITUDE` | Optional | meters (m) | Height above sea level | 80.0 m | | `ALTITUDE` | Optional | meters (m) | Height above sea level | 80.0 m |
| `--elev-mask` | Optional | degrees (°) | Elevation mask | 5° | | `--elev-mask` | Optional | degrees (°) | Elevation mask | 5° |
| `--format` | Optional | - | Output {pdf,eps,png,svg} | pdf | | `--format` | Optional | - | Output file format | pdf |
| `--no-show` | Optional | - | Do not show plot | - | | `--no-show` | Optional | - | Do not show plot | - |
| `--system` | Optional | - | Systems to plot | All | | `--system` | Optional | - | Systems to plot | All |
| `--use-obs` | Optional | - | Use RINEX obs data | - | | `--use-obs` | Optional | - | Use RINEX obs file | - |
### Examples ### Examples
@@ -118,5 +118,5 @@ The script generates a PDF file named `skyplot_<RINEX_FILE>.pdf` (with dots in
- Time range in footer. - Time range in footer.
- Embedded fonts that display consistently across all systems and generate - Embedded fonts that display consistently across all systems and generate
publication-ready figures. publication-ready figures.
- EPS, PNG, and SVG output formats available via `--format eps`, `--format png`, - EPS, JPG, PNG, and SVG output formats available via `--format eps`,
and `--format svg`. `--format jpg`, `--format png`, and `--format svg`.

File diff suppressed because it is too large Load Diff