IGS Products¶
Client for the IGS precise product archives, and the types that describe the products it lists.
IGSProductsClient¶
IGSProductsClient ¶
IGSProductsClient(source: IGSProductSource | str, *, base_url: str | None = None, cddis_username: str | None = None, cddis_password: str | None = None, cache_max_age: float | None = None, max_retries: int | None = None, rate_limit: RateLimitConfig | None = None)
Client for IGS precise-product archives.
The client reads from one IGSProductSource and never falls back to another. CDDIS requires NASA Earthdata credentials, passed as cddis_username and cddis_password. Credentials are sent only to the NASA Earthdata login service and are never shown by repr.
Requests are blocking, limited to 60 per minute and 3600 per hour unless rate_limit sets other caps, retried on transient failures, and honour BRAHE_NETWORK_MODE. Listings and downloaded files are cached under get_igs_cache_dir(). Listings are cached per source, so a client with a different base_url shares the listing cache of the source it stands in for. The cache directory is not coordinated across processes or across clients sharing it.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
source | IGSProductSource | str | Archive to read from, or its name ( | required |
base_url | str | None | Directory URL that contains one subdirectory per GPS week, for mirrors and tests. A trailing | None |
cddis_username | str | None | NASA Earthdata username. Requires | None |
cddis_password | str | None | NASA Earthdata password. Requires | None |
cache_max_age | float | None | Seconds a cached directory listing is served before it is refreshed. Default: 3600.0. | None |
max_retries | int | None | Extra attempts after the first on transient failures. A retry waits for an exponential backoff with jitter, or for the server's | None |
rate_limit | RateLimitConfig | None | Per-minute and per-hour request caps. Each attempt to fetch a listing or a file counts as one request. Default: 60 per minute and 3600 per hour. | None |
Raises:
| Type | Description |
|---|---|
ValueError | If only one credential is given, credentials are given with a non-CDDIS source or with |
Example
Initialize instance.
base_url property ¶
base_url: str
Base URL of the product directory, with a trailing slash.
Returns:
| Name | Type | Description |
|---|---|---|
str | str | The directory URL. |
source property ¶
source: IGSProductSource
Source the client reads from.
Returns:
| Name | Type | Description |
|---|---|---|
IGSProductSource | IGSProductSource | The archive. |
cache_dir method descriptor ¶
cache_dir() -> str
Directory holding cached listings and product files.
Returns:
| Name | Type | Description |
|---|---|---|
str | str |
|
Raises:
| Type | Description |
|---|---|
BraheError | If the cache directory cannot be created. |
download method descriptor ¶
download(product: IGSProduct) -> str
Downloads a product into the cache and returns the cached path.
Files are cached under <cache_dir>/<source>/<week>/<name>, with the source in lowercase, the product's four-digit archive week, and the name as published. A cached file is returned without a request and without an age check. When the file is not cached, BRAHE_NETWORK_MODE must allow the request. A CDDIS download signs in to NASA Earthdata with the client's credentials.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
product | IGSProduct | Product to download, as returned by a listing. | required |
Returns:
| Name | Type | Description |
|---|---|---|
str | str | Path of the cached file, compressed as published. |
Raises:
| Type | Description |
|---|---|
BraheError | If the file does not exist on the source, the network mode forbids the request, the Earthdata login fails, the body does not match the name's compression, or the cache cannot be written. |
download_sp3 method descriptor ¶
download_sp3(product: IGSProduct) -> SP3
Downloads an SP3 orbit product, if it is not cached, and parses it.
The product is downloaded as download does and read with SP3.from_file, which decompresses gzip and Unix compress (.Z) data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
product | IGSProduct | SP3 product to download, as returned by a listing. | required |
Returns:
| Name | Type | Description |
|---|---|---|
SP3 | SP3 | The parsed file. |
Raises:
| Type | Description |
|---|---|
BraheError | If the product is not an SP3 file, which is checked before anything is downloaded, or if the download or parse fails. |
Example
download_sp3_range method descriptor ¶
download_sp3_range(start: Epoch, end: Epoch, center: IGSAnalysisCenter | str, solution: IGSSolutionType | str, *, pad: bool = True, sampling: float | None = None, concurrency: int = 4) -> list[SP3]
Downloads and parses the daily SP3 orbit files of one analysis center and solution that cover [start, end].
The files are the daily orbit files of every GPS day from the day containing start through the day containing end. With pad set, the days before and after are added when the source has their files, so that SP3Satellite.from_files uses centered fits at the span edges. From GPS week 2238 each day's file is the long-name one-day ORB SP3 file starting at 00:00; when several sampling intervals are published, the coarsest is used unless sampling is set, in which case only that interval is used. Before GPS week 2238 it is the short-name daily SP3 file, such as cod21003.sp3, and sampling is ignored. A solution code that is not a known type is kept as an Other value and matches only files published with that code, so a misspelled code finds no file for the first day of the span and raises.
Every file is chosen, and every listing and selection error is raised, before anything is downloaded. Ultra-rapid orbits are rejected because successive issues overlap in time. A day inside the span with no file is an error; such a padding day is skipped. A padding file that is listed but whose download answers 404 is also skipped, and its day is left out of the result; any other failure to download or parse a padding file, and any failure for a file inside the span, including a 404, is an error.
The files are downloaded and parsed on up to concurrency threads, which share the client's rate limiter. Once a file fails, no further file is started, and the error raised is that of the earliest file that failed. CDDIS requests run one at a time until one has succeeded, so that the threads share one Earthdata session.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
start | Epoch | Start of the time range. | required |
end | Epoch | End of the time range, inclusive. | required |
center | IGSAnalysisCenter | str | Analysis center or its code, for example | required |
solution | IGSSolutionType | str | Solution type or its code, for example | required |
pad | bool | Add the days before and after the span when available. Default: True. | True |
sampling | float | None | Sampling interval of the long-name files to use, seconds. Default: the coarsest published. | None |
concurrency | int | Threads that download and parse the files, at least 1. Default: 4. | 4 |
Returns:
| Type | Description |
|---|---|
list[SP3] | list[SP3]: Parsed daily files in time order. |
Raises:
| Type | Description |
|---|---|
BraheError | If |
Example
list_files method descriptor ¶
Lists the file names in the GPS week directory containing epoch.
Every file is returned as published, including names that are not IGS products such as readme.txt. Subdirectories, sort links, and the parent-directory link are left out.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epoch | Epoch | Any instant in the GPS week to list. | required |
Returns:
| Type | Description |
|---|---|
list[str] | list[str]: File names in listing order. |
Raises:
| Type | Description |
|---|---|
BraheError | If the week directory does not exist on the source, or the listing cannot be served from the cache or fetched. |
list_products method descriptor ¶
list_products(epoch: Epoch, *, center: IGSAnalysisCenter | str | None = None, solution: IGSSolutionType | str | None = None, content: IGSContentType | str | None = None, format: IGSFileFormat | str | None = None) -> list[IGSProduct]
Lists the products in the GPS week directory containing epoch.
Files whose names parse as IGS product names are returned; other files are skipped. Each filter left as None matches every product. A center, solution, content, or format code that is not a known type is kept as an Other value and matches only products published with that code, so a misspelled code matches nothing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epoch | Epoch | Any instant in the GPS week to list. | required |
center | IGSAnalysisCenter | str | None | Analysis center or its code, such as | None |
solution | IGSSolutionType | str | None | Solution type or its code, such as | None |
content | IGSContentType | str | None | Content type or its code, such as | None |
format | IGSFileFormat | str | None | File format or its code, such as | None |
Returns:
| Type | Description |
|---|---|
list[IGSProduct] | list[IGSProduct]: Matching products in listing order. |
Raises:
| Type | Description |
|---|---|
BraheError | If the week directory does not exist on the source, or the listing cannot be served from the cache or fetched. |
list_products_between method descriptor ¶
list_products_between(start: Epoch, end: Epoch, *, center: IGSAnalysisCenter | str | None = None, solution: IGSSolutionType | str | None = None, content: IGSContentType | str | None = None, format: IGSFileFormat | str | None = None) -> list[IGSProduct]
Lists the products whose coverage overlaps [start, end].
A product covers [start_epoch, start_epoch + span). A product with no span, such as a short-name weekly file, covers the GPS week of its archive directory. The week directories containing start through end are listed, plus those holding products that begin up to three days before start or are filed up to one day after end. Such an extra week that does not exist on the source is skipped. When BRAHE_NETWORK_MODE forbids fetching a listing, the extra weeks are served only from the cache and skipped when they are not cached; a week containing part of the range must still be cached.
A center, solution, content, or format code that is not a known type is kept as an Other value and matches only products published with that code, so a misspelled code matches nothing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
start | Epoch | Start of the time range. | required |
end | Epoch | End of the time range, inclusive. | required |
center | IGSAnalysisCenter | str | None | Analysis center or its code, such as | None |
solution | IGSSolutionType | str | None | Solution type or its code, such as | None |
content | IGSContentType | str | None | Content type or its code, such as | None |
format | IGSFileFormat | str | None | File format or its code, such as | None |
Returns:
| Type | Description |
|---|---|
list[IGSProduct] | list[IGSProduct]: Matching products ordered by start epoch, then name. |
Raises:
| Type | Description |
|---|---|
BraheError | If |
Example
list_weeks method descriptor ¶
Lists the GPS weeks that have a directory on the source.
Reads the source's top-level listing and keeps the entries named by a four-digit week number, such as 0576/ or 2340/.
Returns:
| Type | Description |
|---|---|
list[int] | list[int]: GPS week numbers in ascending order. |
Raises:
| Type | Description |
|---|---|
BraheError | If the listing cannot be served from the cache or fetched. |
save method descriptor ¶
save(product: IGSProduct, destination: str, keep_cached: bool = False, decompress: bool = False) -> str
Downloads a product, if it is not cached, and writes it to destination.
A path with an extension is the file written. An existing directory, or a path whose last component has no extension, is a directory, created if missing, that receives the file under its published name. The file is written as published unless decompress is set, which decompresses a gzip or Unix-compressed (.Z) product and drops the .gz or .Z suffix from the name used in a directory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
product | IGSProduct | Product to save, as returned by a listing. | required |
destination | str | Directory or file path, outside the cache directory; any | required |
keep_cached | bool | Leave the cached file in place; otherwise it is removed and a later | False |
decompress | bool | Write a compressed product decompressed. Default: False. | False |
Returns:
| Name | Type | Description |
|---|---|---|
str | str | Path written. |
Raises:
| Type | Description |
|---|---|
BraheError | If |
Example
IGSProductSource¶
IGSProductSource ¶
Public archive that serves IGS products.
CDDIS holds the full archive and requires NASA Earthdata credentials. GARNER (the Scripps Institution of Oceanography mirror) holds the full archive from GPS week 576 and is served over unencrypted HTTP. BKG holds GPS weeks 2238 and later, and only the IGS combination and CAS products.
Example
Initialize instance.
BKG class-attribute ¶
BKG: IGSProductSource = IGSProductSource.BKG
Public archive that serves IGS products.
CDDIS holds the full archive and requires NASA Earthdata credentials. GARNER (the Scripps Institution of Oceanography mirror) holds the full archive from GPS week 576 and is served over unencrypted HTTP. BKG holds GPS weeks 2238 and later, and only the IGS combination and CAS products.
CDDIS class-attribute ¶
CDDIS: IGSProductSource = IGSProductSource.CDDIS
Public archive that serves IGS products.
CDDIS holds the full archive and requires NASA Earthdata credentials. GARNER (the Scripps Institution of Oceanography mirror) holds the full archive from GPS week 576 and is served over unencrypted HTTP. BKG holds GPS weeks 2238 and later, and only the IGS combination and CAS products.
GARNER class-attribute ¶
GARNER: IGSProductSource = IGSProductSource.GARNER
Public archive that serves IGS products.
CDDIS holds the full archive and requires NASA Earthdata credentials. GARNER (the Scripps Institution of Oceanography mirror) holds the full archive from GPS week 576 and is served over unencrypted HTTP. BKG holds GPS weeks 2238 and later, and only the IGS combination and CAS products.
IGSProduct¶
IGSProduct ¶
A product file listed in an IGS archive's GPS week directory.
Products are returned by IGSProductsClient listings and passed back to its download methods. All properties are read-only.
Example
Initialize instance.
file_name property ¶
file_name: IGSProductFileName
Parsed fields of the file name.
Returns:
| Name | Type | Description |
|---|---|---|
IGSProductFileName | IGSProductFileName | The parsed name. |
gps_week property ¶
gps_week: int
GPS week of the archive directory the file is listed in.
Returns:
| Name | Type | Description |
|---|---|---|
int | int | GPS week number. |
IGSProductFileName¶
IGSProductFileName ¶
A parsed IGS product file name.
Parses both the long names used from GPS week 2238 (IGS0OPSFIN_20243150000_01D_15M_ORB.SP3.gz) and the short names used before it (igs21000.sp3.Z). str() returns the name exactly as it was parsed.
Example
Initialize instance.
campaign property ¶
campaign: str | None
Campaign code, for example OPS or MGX. Only long names carry one.
Returns:
| Type | Description |
|---|---|
str | None | str | None: Campaign code, or None for short names. |
center property ¶
center: IGSAnalysisCenter
Analysis center that produced the product.
Returns:
| Name | Type | Description |
|---|---|---|
IGSAnalysisCenter | IGSAnalysisCenter | The analysis center. |
compression property ¶
compression: IGSCompression
Compression applied to the file.
Returns:
| Name | Type | Description |
|---|---|---|
IGSCompression | IGSCompression | Compression. |
content property ¶
content: IGSContentType
Content type of the product.
Returns:
| Name | Type | Description |
|---|---|---|
IGSContentType | IGSContentType | Content type. |
format property ¶
format: IGSFileFormat
gps_week property ¶
gps_week: int
GPS week of the archive directory that holds the product.
This is the week in the file name. It equals the week of start_epoch except for short ultra-rapid names issued on the first day of a week, whose coverage starts in the previous week.
Returns:
| Name | Type | Description |
|---|---|---|
int | int | GPS week number. |
is_sp3 property ¶
is_sp3: bool
Whether the product is an SP3 orbit file.
Returns:
| Name | Type | Description |
|---|---|---|
bool | bool | True for orbit products in SP3 format. |
name_style property ¶
name_style: IGSNameStyle
Which naming convention the name follows.
Returns:
| Name | Type | Description |
|---|---|---|
IGSNameStyle | IGSNameStyle |
|
sampling property ¶
sampling: float | None
Sampling interval of the product, in seconds. Only long names carry one.
Returns:
| Type | Description |
|---|---|
float | None | float | None: Sampling interval in seconds, or None for short names. |
solution property ¶
solution: IGSSolutionType
Solution type of the product.
Returns:
| Name | Type | Description |
|---|---|---|
IGSSolutionType | IGSSolutionType | Solution type. |
span property ¶
span: float | None
Time span covered by the product, in seconds.
Returns:
| Type | Description |
|---|---|
float | None | float | None: Span in seconds, or None for weekly short-name products. |
start_epoch property ¶
start_epoch: Epoch
First epoch covered by the product, in GPS time.
For long names this is the start time in the name. For short ultra-rapid names (igu, igv, siu, ...) the named week, day and hour mark the start of the predicted half of the two-day file, so coverage starts 24 hours earlier and can fall in the previous GPS week, whereas gps_week stays the named week.
Returns:
| Name | Type | Description |
|---|---|---|
Epoch | Epoch | Start epoch. |
version property ¶
version: int | None
Product version digit. Only long names carry one.
Returns:
| Type | Description |
|---|---|
int | None | int | None: Version, or None for short names. |
parse staticmethod ¶
parse(name: str) -> IGSProductFileName
Parse a long or short IGS product file name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name | str | File name without directory components. | required |
Returns:
| Name | Type | Description |
|---|---|---|
IGSProductFileName | IGSProductFileName | The parsed name. |
Raises:
| Type | Description |
|---|---|
BraheError | If the name matches neither convention or a field is out of range. |
Example
IGSSolutionType¶
IGSSolutionType ¶
Solution type of an IGS product: final, rapid, ultra-rapid or predicted.
Codes other than FIN, RAP, ULT and PRD are kept as they appear, uppercased, and compare equal to other solutions parsed from the same code.
Example
Initialize instance.
FINAL class-attribute ¶
FINAL: IGSSolutionType = IGSSolutionType.FINAL
Solution type of an IGS product: final, rapid, ultra-rapid or predicted.
Codes other than FIN, RAP, ULT and PRD are kept as they appear, uppercased, and compare equal to other solutions parsed from the same code.
PREDICTED class-attribute ¶
PREDICTED: IGSSolutionType = IGSSolutionType.PREDICTED
Solution type of an IGS product: final, rapid, ultra-rapid or predicted.
Codes other than FIN, RAP, ULT and PRD are kept as they appear, uppercased, and compare equal to other solutions parsed from the same code.
RAPID class-attribute ¶
RAPID: IGSSolutionType = IGSSolutionType.RAPID
Solution type of an IGS product: final, rapid, ultra-rapid or predicted.
Codes other than FIN, RAP, ULT and PRD are kept as they appear, uppercased, and compare equal to other solutions parsed from the same code.
ULTRA_RAPID class-attribute ¶
ULTRA_RAPID: IGSSolutionType = IGSSolutionType.ULTRA_RAPID
Solution type of an IGS product: final, rapid, ultra-rapid or predicted.
Codes other than FIN, RAP, ULT and PRD are kept as they appear, uppercased, and compare equal to other solutions parsed from the same code.
code property ¶
code: str
Three-letter code as it appears in a long product file name.
Returns:
| Name | Type | Description |
|---|---|---|
str | str |
|
parse staticmethod ¶
parse(code: str) -> IGSSolutionType
Parse a solution code.
Matching is case-insensitive. Unrecognized codes are kept, uppercased.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
code | str | Three-letter solution code, for example | required |
Returns:
| Name | Type | Description |
|---|---|---|
IGSSolutionType | IGSSolutionType | The parsed solution type. |
IGSContentType¶
IGSContentType ¶
Content type of an IGS product: orbit, clock, Earth rotation and so on.
Codes other than the listed ones are kept as they appear, uppercased.
Example
Initialize instance.
ATTITUDE class-attribute ¶
ATTITUDE: IGSContentType = IGSContentType.ATTITUDE
BIAS class-attribute ¶
BIAS: IGSContentType = IGSContentType.BIAS
CLOCK class-attribute ¶
CLOCK: IGSContentType = IGSContentType.CLOCK
EARTH_ROTATION class-attribute ¶
EARTH_ROTATION: IGSContentType = IGSContentType.EARTH_ROTATION
IONOSPHERE class-attribute ¶
IONOSPHERE: IGSContentType = IGSContentType.IONOSPHERE
ORBIT class-attribute ¶
ORBIT: IGSContentType = IGSContentType.ORBIT
SOLUTION class-attribute ¶
SOLUTION: IGSContentType = IGSContentType.SOLUTION
SUMMARY class-attribute ¶
SUMMARY: IGSContentType = IGSContentType.SUMMARY
TROPOSPHERE class-attribute ¶
TROPOSPHERE: IGSContentType = IGSContentType.TROPOSPHERE
code property ¶
code: str
Three-letter code as it appears in a long product file name.
Returns:
| Name | Type | Description |
|---|---|---|
str | str | The content code, uppercase. |
parse staticmethod ¶
parse(code: str) -> IGSContentType
Parse a content-type code.
Matching is case-insensitive. Unrecognized codes are kept, uppercased.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
code | str | Three-letter content code, for example | required |
Returns:
| Name | Type | Description |
|---|---|---|
IGSContentType | IGSContentType | The parsed content type. |
IGSFileFormat¶
IGSFileFormat ¶
File format of an IGS product: SP3, CLK, ERP and so on.
Codes other than the listed ones are kept as they appear, uppercased.
Example
Initialize instance.
BIA class-attribute ¶
BIA: IGSFileFormat = IGSFileFormat.BIA
CLK class-attribute ¶
CLK: IGSFileFormat = IGSFileFormat.CLK
ERP class-attribute ¶
ERP: IGSFileFormat = IGSFileFormat.ERP
INX class-attribute ¶
INX: IGSFileFormat = IGSFileFormat.INX
OBX class-attribute ¶
OBX: IGSFileFormat = IGSFileFormat.OBX
SNX class-attribute ¶
SNX: IGSFileFormat = IGSFileFormat.SNX
SP3 class-attribute ¶
SP3: IGSFileFormat = IGSFileFormat.SP3
SUM class-attribute ¶
SUM: IGSFileFormat = IGSFileFormat.SUM
TRO class-attribute ¶
TRO: IGSFileFormat = IGSFileFormat.TRO
code property ¶
code: str
Format code as it appears in a long product file name.
Returns:
| Name | Type | Description |
|---|---|---|
str | str | The format code, uppercase. |
parse staticmethod ¶
parse(code: str) -> IGSFileFormat
Parse a file-format code.
Matching is case-insensitive. Unrecognized codes are kept, uppercased.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
code | str | File-format code, for example | required |
Returns:
| Name | Type | Description |
|---|---|---|
IGSFileFormat | IGSFileFormat | The parsed file format. |
IGSCompression¶
IGSCompression ¶
Compression applied to an IGS product file.
Example
Initialize instance.
GZIP class-attribute ¶
GZIP: IGSCompression = IGSCompression.GZIP
NONE class-attribute ¶
NONE: IGSCompression = IGSCompression.NONE
IGSNameStyle¶
IGSNameStyle ¶
Which of the two IGS archive file-name conventions a name follows.
Example
Initialize instance.
LONG class-attribute ¶
LONG: IGSNameStyle = IGSNameStyle.LONG
IGSAnalysisCenter¶
IGSAnalysisCenter ¶
Analysis center that produced an IGS product.
Codes other than the listed ones, such as the short-name combination codes IGL and IGV, are kept as they appear, uppercased, and compare equal to other centers parsed from the same code.
Example
Initialize instance.
COD class-attribute ¶
COD: IGSAnalysisCenter = IGSAnalysisCenter.COD
Analysis center that produced an IGS product.
Codes other than the listed ones, such as the short-name combination codes IGL and IGV, are kept as they appear, uppercased, and compare equal to other centers parsed from the same code.
EMR class-attribute ¶
EMR: IGSAnalysisCenter = IGSAnalysisCenter.EMR
Analysis center that produced an IGS product.
Codes other than the listed ones, such as the short-name combination codes IGL and IGV, are kept as they appear, uppercased, and compare equal to other centers parsed from the same code.
ESA class-attribute ¶
ESA: IGSAnalysisCenter = IGSAnalysisCenter.ESA
Analysis center that produced an IGS product.
Codes other than the listed ones, such as the short-name combination codes IGL and IGV, are kept as they appear, uppercased, and compare equal to other centers parsed from the same code.
GFZ class-attribute ¶
GFZ: IGSAnalysisCenter = IGSAnalysisCenter.GFZ
Analysis center that produced an IGS product.
Codes other than the listed ones, such as the short-name combination codes IGL and IGV, are kept as they appear, uppercased, and compare equal to other centers parsed from the same code.
GOP class-attribute ¶
GOP: IGSAnalysisCenter = IGSAnalysisCenter.GOP
Analysis center that produced an IGS product.
Codes other than the listed ones, such as the short-name combination codes IGL and IGV, are kept as they appear, uppercased, and compare equal to other centers parsed from the same code.
GRG class-attribute ¶
GRG: IGSAnalysisCenter = IGSAnalysisCenter.GRG
Analysis center that produced an IGS product.
Codes other than the listed ones, such as the short-name combination codes IGL and IGV, are kept as they appear, uppercased, and compare equal to other centers parsed from the same code.
IGS class-attribute ¶
IGS: IGSAnalysisCenter = IGSAnalysisCenter.IGS
Analysis center that produced an IGS product.
Codes other than the listed ones, such as the short-name combination codes IGL and IGV, are kept as they appear, uppercased, and compare equal to other centers parsed from the same code.
JGX class-attribute ¶
JGX: IGSAnalysisCenter = IGSAnalysisCenter.JGX
Analysis center that produced an IGS product.
Codes other than the listed ones, such as the short-name combination codes IGL and IGV, are kept as they appear, uppercased, and compare equal to other centers parsed from the same code.
JPL class-attribute ¶
JPL: IGSAnalysisCenter = IGSAnalysisCenter.JPL
Analysis center that produced an IGS product.
Codes other than the listed ones, such as the short-name combination codes IGL and IGV, are kept as they appear, uppercased, and compare equal to other centers parsed from the same code.
MIT class-attribute ¶
MIT: IGSAnalysisCenter = IGSAnalysisCenter.MIT
Analysis center that produced an IGS product.
Codes other than the listed ones, such as the short-name combination codes IGL and IGV, are kept as they appear, uppercased, and compare equal to other centers parsed from the same code.
NGS class-attribute ¶
NGS: IGSAnalysisCenter = IGSAnalysisCenter.NGS
Analysis center that produced an IGS product.
Codes other than the listed ones, such as the short-name combination codes IGL and IGV, are kept as they appear, uppercased, and compare equal to other centers parsed from the same code.
SIO class-attribute ¶
SIO: IGSAnalysisCenter = IGSAnalysisCenter.SIO
Analysis center that produced an IGS product.
Codes other than the listed ones, such as the short-name combination codes IGL and IGV, are kept as they appear, uppercased, and compare equal to other centers parsed from the same code.
USN class-attribute ¶
USN: IGSAnalysisCenter = IGSAnalysisCenter.USN
Analysis center that produced an IGS product.
Codes other than the listed ones, such as the short-name combination codes IGL and IGV, are kept as they appear, uppercased, and compare equal to other centers parsed from the same code.
WHU class-attribute ¶
WHU: IGSAnalysisCenter = IGSAnalysisCenter.WHU
Analysis center that produced an IGS product.
Codes other than the listed ones, such as the short-name combination codes IGL and IGV, are kept as they appear, uppercased, and compare equal to other centers parsed from the same code.
code property ¶
code: str
Three-letter code used in product file names, uppercase.
Returns:
| Name | Type | Description |
|---|---|---|
str | str | Center code. |
name property ¶
name: str | None
Name of the institution.
Returns:
| Type | Description |
|---|---|
str | None | str | None: Institution name, or None for an unlisted code. |
parse staticmethod ¶
parse(code: str) -> IGSAnalysisCenter
Parse a center code.
Matching is case-insensitive. Unlisted codes are kept, uppercased.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
code | str | Three-letter center code, for example | required |
Returns:
| Name | Type | Description |
|---|---|---|
IGSAnalysisCenter | IGSAnalysisCenter | The parsed center. |
get_igs_cache_dir¶
get_igs_cache_dir builtin ¶
get_igs_cache_dir() -> str
Get the IGS product cache directory path.
Returns the path to the IGS cache subdirectory used for storing downloaded IGS products. Defaults to ~/.cache/brahe/igs (or $BRAHE_CACHE/igs if environment variable is set).
The directory is created if it doesn't exist.
Returns:
| Name | Type | Description |
|---|---|---|
str | str | Path to the IGS cache directory. |
Raises:
| Type | Description |
|---|---|
IOError | If the cache directory cannot be created or accessed. |
Note
The directory will be created on first access if it doesn't exist.
See Also¶
- IGS Products -- Sources, credentials, listing, and downloads
- SP3 Precise Orbit Files -- The format
download_sp3anddownload_sp3_rangereturn - SP3 Library API --
SP3andSP3Satellite - Starlink -- Another ephemeris client with the same cache and network mode behavior