The IGN ESP GNSS Data Availability Checker is a PowerShell script that checks the availability of GNSS (Global Navigation Satellite System) observation data from the Spanish National Geographic Institute (IGN) HTTPS archive. This tool helps determine the hourly availability of 1-second data for specific stations and time periods from the IGN ESP repository.
- Checks availability of hourly (1-second) GNSS data
- Uses HTTPS web requests to check directory listings
- Generates reports and CSV output detailing hourly availability
- Simple parameter-based execution
- Windows operating system
- PowerShell 5.1 or later
- Internet connection with access to IGN HTTPS server (https://datos-geodesia.ign.es)
| Parameter | Type | Required | Description |
|---|---|---|---|
| stationId | string | Yes | Station ID (e.g., BCL1, ACOR) |
| startDate | DateTime | Yes | Start date in YYYY-MM-dd format |
| endDate | DateTime | Yes | End date in YYYY-MM-dd format |
Run the script from PowerShell by providing the required parameters:
.\script\IGN_ESP_GNSS_Data_Availability_Checker.ps1 -stationId "BCL1" -startDate "2025-01-01" -endDate "2025-01-05"-
Check hourly data availability for station BCL1 during the first 5 days of January 2025:
.\script\IGN_ESP_GNSS_Data_Availability_Checker.ps1 -stationId "BCL1" -startDate "2025-01-01" -endDate "2025-01-05"
-
Check hourly data availability for station ACOR during February 2025:
.\script\IGN_ESP_GNSS_Data_Availability_Checker.ps1 -stationId "ACOR" -startDate "2025-02-01" -endDate "2025-02-28"
The script creates output in a directory named results/IGN_ESP/<stationId> in the current working directory. Two types of files are generated:
-
CSV file: Contains detailed hourly availability information.
- Columns:
year,doy,00,01,02,...,22,23,percentage - Hourly columns (00-23) show a binary indicator (1 for available, 0 for unavailable).
percentageshows the percentage of available hours for that day.
- Columns:
-
Text report: Provides a summary of the results.
- Lists configuration parameters (station, date range).
- Shows overall statistics (days checked, total hours checked, available hours, overall percentage).
- Includes the total execution time.
The filenames follow this pattern:
<stationId>_hourly_<startDate>_<endDate>.[csv|txt]
Example: BCL1_hourly_20250101_20250105.csv
The script checks for data availability by accessing URLs structured like this:
https://datos-geodesia.ign.es/ERGNSS/horario_1s/<YYYYMMDD>/<HH>/
Where:
<YYYYMMDD>is the date (e.g., 20250101)<HH>is the 2-digit hour (00-23)
It then looks for compressed CRINEX files (*_MO.crx.gz) within the directory listing for the specified stationId.
Common issues and solutions:
-
HTTPS Connection Failures:
- Ensure your network allows HTTPS connections to
datos-geodesia.ign.es. - Check for firewall restrictions or proxy settings.
- Ensure your network allows HTTPS connections to
-
Long Execution Times:
- The script checks each hour for each day sequentially. Checking long date ranges can take time.
- Network latency to the IGN server can affect speed.
-
Missing Data:
- Verify the
stationIdis correct and expected to have data in the IGN archive for the specified period. - Data availability might be delayed or incomplete on the server.
- The file pattern (
*_MO.crx.gz) might need adjustment if IGN changes its naming conventions.
- Verify the
This script is provided as-is with no warranty. Use at your own risk.