Skip to content

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 ("CDDIS", "GARNER", "BKG", case-insensitive).

required
base_url str | None

Directory URL that contains one subdirectory per GPS week, for mirrors and tests. A trailing / is added when missing.

None
cddis_username str | None

NASA Earthdata username. Requires cddis_password, the CDDIS source, and no base_url.

None
cddis_password str | None

NASA Earthdata password. Requires cddis_username.

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 Retry-After when that is longer, up to 30 seconds. Default: 3.

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 base_url, or source is not a known source name.

Example
1
2
3
4
5
6
import brahe as bh

client = bh.IGSProductsClient("GARNER")
start = bh.Epoch(2024, 11, 11, 0, 0, 0.0, 0.0, time_system=bh.GPS)
end = bh.Epoch(2024, 11, 12, 0, 0, 0.0, 0.0, time_system=bh.GPS)
files = client.download_sp3_range(start, end, "COD", bh.IGSSolutionType.FINAL)

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 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

$BRAHE_CACHE/igs, created if missing.

Raises:

Type Description
BraheError

If the cache directory cannot be created.

Example
1
2
3
4
import brahe as bh

client = bh.IGSProductsClient("GARNER")
print(client.cache_dir())

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.

Example
1
2
3
4
5
6
import brahe as bh

client = bh.IGSProductsClient("GARNER")
epoch = bh.Epoch(2024, 11, 10, 0, 0, 0.0, 0.0, time_system=bh.GPS)
product = client.list_products(epoch, center="COD", solution="FIN", content="ORB", format="SP3")[0]
path = client.download(product)

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
1
2
3
4
5
6
7
import brahe as bh

client = bh.IGSProductsClient("GARNER")
epoch = bh.Epoch(2024, 11, 10, 0, 0, 0.0, 0.0, time_system=bh.GPS)
product = client.list_products(epoch, center="COD", solution="FIN", content="ORB", format="SP3")[0]
sp3 = client.download_sp3(product)
print(sp3.num_satellites, sp3.num_epochs)

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 "COD".

required
solution IGSSolutionType | str

Solution type or its code, for example "FIN".

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 solution is ultra-rapid, end is before start, concurrency is 0, a week listing containing part of the span cannot be obtained, a day inside the span has no file on the source (including when its week directory answers 404), or a download or parse fails other than a 404 for a padding file; a parse error names the product.

Example
1
2
3
4
5
6
7
import brahe as bh

client = bh.IGSProductsClient("GARNER")
start = bh.Epoch(2024, 11, 11, 0, 0, 0.0, 0.0, time_system=bh.GPS)
end = bh.Epoch(2024, 11, 12, 0, 0, 0.0, 0.0, time_system=bh.GPS)
files = client.download_sp3_range(start, end, "COD", "FIN")
satellites = bh.SP3Satellite.from_files(files)

list_files method descriptor

list_files(epoch: Epoch) -> list[str]

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.

Example
1
2
3
4
5
import brahe as bh

client = bh.IGSProductsClient("GARNER")
epoch = bh.Epoch(2024, 11, 10, 0, 0, 0.0, 0.0, time_system=bh.GPS)
names = client.list_files(epoch)

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 "COD".

None
solution IGSSolutionType | str | None

Solution type or its code, such as "FIN".

None
content IGSContentType | str | None

Content type or its code, such as "ORB".

None
format IGSFileFormat | str | None

File format or its code, such as "SP3".

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.

Example
1
2
3
4
5
6
import brahe as bh

client = bh.IGSProductsClient("GARNER")
epoch = bh.Epoch(2024, 11, 10, 0, 0, 0.0, 0.0, time_system=bh.GPS)
for product in client.list_products(epoch, center="COD", solution="FIN", content="ORB"):
    print(product.name, product.url)

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 "COD".

None
solution IGSSolutionType | str | None

Solution type or its code, such as "FIN".

None
content IGSContentType | str | None

Content type or its code, such as "ORB".

None
format IGSFileFormat | str | None

File format or its code, such as "SP3".

None

Returns:

Type Description
list[IGSProduct]

list[IGSProduct]: Matching products ordered by start epoch, then name.

Raises:

Type Description
BraheError

If end is before start, a week directory containing part of the range does not exist on the source, or a listing cannot be served from the cache or fetched.

Example
1
2
3
4
5
6
import brahe as bh

client = bh.IGSProductsClient("GARNER")
start = bh.Epoch(2024, 11, 11, 0, 0, 0.0, 0.0, time_system=bh.GPS)
end = bh.Epoch(2024, 11, 12, 0, 0, 0.0, 0.0, time_system=bh.GPS)
products = client.list_products_between(start, end, center="IGS", solution="FIN", content="ORB")

list_weeks method descriptor

list_weeks() -> list[int]

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.

Example
1
2
3
4
5
import brahe as bh

client = bh.IGSProductsClient("GARNER")
weeks = client.list_weeks()
assert 2340 in weeks

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 os.PathLike is accepted.

required
keep_cached bool

Leave the cached file in place; otherwise it is removed and a later download fetches it again. Default: False.

False
decompress bool

Write a compressed product decompressed. Default: False.

False

Returns:

Name Type Description
str str

Path written.

Raises:

Type Description
BraheError

If destination resolves inside the cache directory, which is checked before anything is downloaded, the download fails, the compressed data is invalid, or the file cannot be written.

Example
1
2
3
4
5
6
7
8
9
import tempfile

import brahe as bh

client = bh.IGSProductsClient("GARNER")
epoch = bh.Epoch(2024, 11, 10, 0, 0, 0.0, 0.0, time_system=bh.GPS)
product = client.list_products(epoch, center="COD", solution="FIN", content="ORB", format="SP3")[0]
with tempfile.TemporaryDirectory() as directory:
    path = client.save(product, directory)

IGSProductSource

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
1
2
3
4
5
import brahe as bh

source = bh.IGSProductSource.BKG
assert source.default_base_url == "https://igs.bkg.bund.de/root_ftp/IGS/products/"
assert str(source) == "BKG"

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.

Example
1
2
3
4
5
import brahe as bh

source = bh.IGSProductSource.BKG
assert source.default_base_url == "https://igs.bkg.bund.de/root_ftp/IGS/products/"
assert str(source) == "BKG"

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.

Example
1
2
3
4
5
import brahe as bh

source = bh.IGSProductSource.BKG
assert source.default_base_url == "https://igs.bkg.bund.de/root_ftp/IGS/products/"
assert str(source) == "BKG"

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.

Example
1
2
3
4
5
import brahe as bh

source = bh.IGSProductSource.BKG
assert source.default_base_url == "https://igs.bkg.bund.de/root_ftp/IGS/products/"
assert str(source) == "BKG"

default_base_url property

default_base_url: str

Base URL of the source's product directory, with a trailing slash.

Returns:

Name Type Description
str str

Directory URL that contains one subdirectory per GPS week.

IGSProduct

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
1
2
3
4
5
6
import brahe as bh

client = bh.IGSProductsClient(source=bh.IGSProductSource.GARNER)
epoch = bh.Epoch(2024, 11, 10, 0, 0, 0.0, 0.0, time_system=bh.GPS)
product = client.list_products(epoch, center="COD", solution="FIN", content="ORB")[0]
print(product.name, product.url, product.gps_week)

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.

name property

name: str

File name as published.

Returns:

Name Type Description
str str

File name.

size property

size: int | None

File size in bytes, when the listing gives it.

Returns:

Type Description
int | None

int | None: Size in bytes, or None when the listing has no sizes.

url property

url: str

URL the file is served from.

Returns:

Name Type Description
str str

File URL.

IGSProductFileName

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
import brahe as bh

name = bh.IGSProductFileName.parse("COD0OPSFIN_20243150000_01D_05M_ORB.SP3.gz")
assert name.center == bh.IGSAnalysisCenter.COD
assert name.solution == bh.IGSSolutionType.FINAL
assert name.content == bh.IGSContentType.ORBIT
assert name.gps_week == 2340
assert name.span == 86400.0
assert name.sampling == 300.0
assert name.is_sp3
assert str(name) == "COD0OPSFIN_20243150000_01D_05M_ORB.SP3.gz"

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

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

File format of the product.

Returns:

Name Type Description
IGSFileFormat IGSFileFormat

File format.

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

LONG or SHORT.

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
1
2
3
4
5
6
7
8
9
import brahe as bh

name = bh.IGSProductFileName.parse("IGS0OPSFIN_20243150000_01D_15M_ORB.SP3.gz")
assert name.center == bh.IGSAnalysisCenter.IGS
assert name.gps_week == 2340
assert name.is_sp3

short = bh.IGSProductFileName.parse("igs23400.sp3.Z")
assert short.name_style == bh.IGSNameStyle.SHORT

IGSSolutionType

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
1
2
3
4
5
import brahe as bh

assert bh.IGSSolutionType.parse("fin") == bh.IGSSolutionType.FINAL
assert bh.IGSSolutionType.ULTRA_RAPID.code == "ULT"
assert bh.IGSSolutionType.parse("abc").code == "ABC"

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.

Example
1
2
3
4
5
import brahe as bh

assert bh.IGSSolutionType.parse("fin") == bh.IGSSolutionType.FINAL
assert bh.IGSSolutionType.ULTRA_RAPID.code == "ULT"
assert bh.IGSSolutionType.parse("abc").code == "ABC"

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.

Example
1
2
3
4
5
import brahe as bh

assert bh.IGSSolutionType.parse("fin") == bh.IGSSolutionType.FINAL
assert bh.IGSSolutionType.ULTRA_RAPID.code == "ULT"
assert bh.IGSSolutionType.parse("abc").code == "ABC"

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.

Example
1
2
3
4
5
import brahe as bh

assert bh.IGSSolutionType.parse("fin") == bh.IGSSolutionType.FINAL
assert bh.IGSSolutionType.ULTRA_RAPID.code == "ULT"
assert bh.IGSSolutionType.parse("abc").code == "ABC"

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.

Example
1
2
3
4
5
import brahe as bh

assert bh.IGSSolutionType.parse("fin") == bh.IGSSolutionType.FINAL
assert bh.IGSSolutionType.ULTRA_RAPID.code == "ULT"
assert bh.IGSSolutionType.parse("abc").code == "ABC"

code property

code: str

Three-letter code as it appears in a long product file name.

Returns:

Name Type Description
str str

FIN, RAP, ULT, PRD or the uppercased unrecognized code.

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 "FIN".

required

Returns:

Name Type Description
IGSSolutionType IGSSolutionType

The parsed solution type.

Example
1
2
3
4
import brahe as bh

assert bh.IGSSolutionType.parse("fin") == bh.IGSSolutionType.FINAL
assert bh.IGSSolutionType.parse("xyz").code == "XYZ"

IGSContentType

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
1
2
3
4
import brahe as bh

assert bh.IGSContentType.parse("orb") == bh.IGSContentType.ORBIT
assert bh.IGSContentType.EARTH_ROTATION.code == "ERP"

Initialize instance.

ATTITUDE class-attribute

ATTITUDE: IGSContentType = IGSContentType.ATTITUDE

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
1
2
3
4
import brahe as bh

assert bh.IGSContentType.parse("orb") == bh.IGSContentType.ORBIT
assert bh.IGSContentType.EARTH_ROTATION.code == "ERP"

BIAS class-attribute

BIAS: IGSContentType = IGSContentType.BIAS

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
1
2
3
4
import brahe as bh

assert bh.IGSContentType.parse("orb") == bh.IGSContentType.ORBIT
assert bh.IGSContentType.EARTH_ROTATION.code == "ERP"

CLOCK class-attribute

CLOCK: IGSContentType = IGSContentType.CLOCK

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
1
2
3
4
import brahe as bh

assert bh.IGSContentType.parse("orb") == bh.IGSContentType.ORBIT
assert bh.IGSContentType.EARTH_ROTATION.code == "ERP"

EARTH_ROTATION class-attribute

EARTH_ROTATION: IGSContentType = IGSContentType.EARTH_ROTATION

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
1
2
3
4
import brahe as bh

assert bh.IGSContentType.parse("orb") == bh.IGSContentType.ORBIT
assert bh.IGSContentType.EARTH_ROTATION.code == "ERP"

IONOSPHERE class-attribute

IONOSPHERE: IGSContentType = IGSContentType.IONOSPHERE

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
1
2
3
4
import brahe as bh

assert bh.IGSContentType.parse("orb") == bh.IGSContentType.ORBIT
assert bh.IGSContentType.EARTH_ROTATION.code == "ERP"

ORBIT class-attribute

ORBIT: IGSContentType = IGSContentType.ORBIT

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
1
2
3
4
import brahe as bh

assert bh.IGSContentType.parse("orb") == bh.IGSContentType.ORBIT
assert bh.IGSContentType.EARTH_ROTATION.code == "ERP"

SOLUTION class-attribute

SOLUTION: IGSContentType = IGSContentType.SOLUTION

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
1
2
3
4
import brahe as bh

assert bh.IGSContentType.parse("orb") == bh.IGSContentType.ORBIT
assert bh.IGSContentType.EARTH_ROTATION.code == "ERP"

SUMMARY class-attribute

SUMMARY: IGSContentType = IGSContentType.SUMMARY

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
1
2
3
4
import brahe as bh

assert bh.IGSContentType.parse("orb") == bh.IGSContentType.ORBIT
assert bh.IGSContentType.EARTH_ROTATION.code == "ERP"

TROPOSPHERE class-attribute

TROPOSPHERE: IGSContentType = IGSContentType.TROPOSPHERE

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
1
2
3
4
import brahe as bh

assert bh.IGSContentType.parse("orb") == bh.IGSContentType.ORBIT
assert bh.IGSContentType.EARTH_ROTATION.code == "ERP"

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 "ORB".

required

Returns:

Name Type Description
IGSContentType IGSContentType

The parsed content type.

Example
1
2
3
import brahe as bh

assert bh.IGSContentType.parse("orb") == bh.IGSContentType.ORBIT

IGSFileFormat

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
1
2
3
4
import brahe as bh

assert bh.IGSFileFormat.parse("sp3") == bh.IGSFileFormat.SP3
assert bh.IGSFileFormat.SNX.code == "SNX"

Initialize instance.

BIA class-attribute

BIA: IGSFileFormat = IGSFileFormat.BIA

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
1
2
3
4
import brahe as bh

assert bh.IGSFileFormat.parse("sp3") == bh.IGSFileFormat.SP3
assert bh.IGSFileFormat.SNX.code == "SNX"

CLK class-attribute

CLK: IGSFileFormat = IGSFileFormat.CLK

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
1
2
3
4
import brahe as bh

assert bh.IGSFileFormat.parse("sp3") == bh.IGSFileFormat.SP3
assert bh.IGSFileFormat.SNX.code == "SNX"

ERP class-attribute

ERP: IGSFileFormat = IGSFileFormat.ERP

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
1
2
3
4
import brahe as bh

assert bh.IGSFileFormat.parse("sp3") == bh.IGSFileFormat.SP3
assert bh.IGSFileFormat.SNX.code == "SNX"

INX class-attribute

INX: IGSFileFormat = IGSFileFormat.INX

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
1
2
3
4
import brahe as bh

assert bh.IGSFileFormat.parse("sp3") == bh.IGSFileFormat.SP3
assert bh.IGSFileFormat.SNX.code == "SNX"

OBX class-attribute

OBX: IGSFileFormat = IGSFileFormat.OBX

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
1
2
3
4
import brahe as bh

assert bh.IGSFileFormat.parse("sp3") == bh.IGSFileFormat.SP3
assert bh.IGSFileFormat.SNX.code == "SNX"

SNX class-attribute

SNX: IGSFileFormat = IGSFileFormat.SNX

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
1
2
3
4
import brahe as bh

assert bh.IGSFileFormat.parse("sp3") == bh.IGSFileFormat.SP3
assert bh.IGSFileFormat.SNX.code == "SNX"

SP3 class-attribute

SP3: IGSFileFormat = IGSFileFormat.SP3

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
1
2
3
4
import brahe as bh

assert bh.IGSFileFormat.parse("sp3") == bh.IGSFileFormat.SP3
assert bh.IGSFileFormat.SNX.code == "SNX"

SUM class-attribute

SUM: IGSFileFormat = IGSFileFormat.SUM

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
1
2
3
4
import brahe as bh

assert bh.IGSFileFormat.parse("sp3") == bh.IGSFileFormat.SP3
assert bh.IGSFileFormat.SNX.code == "SNX"

TRO class-attribute

TRO: IGSFileFormat = IGSFileFormat.TRO

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
1
2
3
4
import brahe as bh

assert bh.IGSFileFormat.parse("sp3") == bh.IGSFileFormat.SP3
assert bh.IGSFileFormat.SNX.code == "SNX"

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 "SP3".

required

Returns:

Name Type Description
IGSFileFormat IGSFileFormat

The parsed file format.

Example
1
2
3
import brahe as bh

assert bh.IGSFileFormat.parse("sp3") == bh.IGSFileFormat.SP3

IGSCompression

IGSCompression

IGSCompression()

Compression applied to an IGS product file.

Example
1
2
3
4
import brahe as bh

name = bh.IGSProductFileName.parse("igs21000.sp3.Z")
assert name.compression == bh.IGSCompression.UNIX_COMPRESS

Initialize instance.

GZIP class-attribute

GZIP: IGSCompression = IGSCompression.GZIP

Compression applied to an IGS product file.

Example
1
2
3
4
import brahe as bh

name = bh.IGSProductFileName.parse("igs21000.sp3.Z")
assert name.compression == bh.IGSCompression.UNIX_COMPRESS

NONE class-attribute

NONE: IGSCompression = IGSCompression.NONE

Compression applied to an IGS product file.

Example
1
2
3
4
import brahe as bh

name = bh.IGSProductFileName.parse("igs21000.sp3.Z")
assert name.compression == bh.IGSCompression.UNIX_COMPRESS

UNIX_COMPRESS class-attribute

UNIX_COMPRESS: IGSCompression = IGSCompression.UNIX_COMPRESS

Compression applied to an IGS product file.

Example
1
2
3
4
import brahe as bh

name = bh.IGSProductFileName.parse("igs21000.sp3.Z")
assert name.compression == bh.IGSCompression.UNIX_COMPRESS

IGSNameStyle

IGSNameStyle

IGSNameStyle()

Which of the two IGS archive file-name conventions a name follows.

Example
1
2
3
4
import brahe as bh

name = bh.IGSProductFileName.parse("igs21000.sp3.Z")
assert name.name_style == bh.IGSNameStyle.SHORT

Initialize instance.

LONG class-attribute

LONG: IGSNameStyle = IGSNameStyle.LONG

Which of the two IGS archive file-name conventions a name follows.

Example
1
2
3
4
import brahe as bh

name = bh.IGSProductFileName.parse("igs21000.sp3.Z")
assert name.name_style == bh.IGSNameStyle.SHORT

SHORT class-attribute

SHORT: IGSNameStyle = IGSNameStyle.SHORT

Which of the two IGS archive file-name conventions a name follows.

Example
1
2
3
4
import brahe as bh

name = bh.IGSProductFileName.parse("igs21000.sp3.Z")
assert name.name_style == bh.IGSNameStyle.SHORT

IGSAnalysisCenter

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
1
2
3
4
5
6
import brahe as bh

assert bh.IGSAnalysisCenter.parse("cod") == bh.IGSAnalysisCenter.COD
assert bh.IGSAnalysisCenter.JPL.code == "JPL"
assert bh.IGSAnalysisCenter.JPL.name == "Jet Propulsion Laboratory"
assert bh.IGSAnalysisCenter.parse("igl").code == "IGL"

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.

Example
1
2
3
4
5
6
import brahe as bh

assert bh.IGSAnalysisCenter.parse("cod") == bh.IGSAnalysisCenter.COD
assert bh.IGSAnalysisCenter.JPL.code == "JPL"
assert bh.IGSAnalysisCenter.JPL.name == "Jet Propulsion Laboratory"
assert bh.IGSAnalysisCenter.parse("igl").code == "IGL"

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.

Example
1
2
3
4
5
6
import brahe as bh

assert bh.IGSAnalysisCenter.parse("cod") == bh.IGSAnalysisCenter.COD
assert bh.IGSAnalysisCenter.JPL.code == "JPL"
assert bh.IGSAnalysisCenter.JPL.name == "Jet Propulsion Laboratory"
assert bh.IGSAnalysisCenter.parse("igl").code == "IGL"

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.

Example
1
2
3
4
5
6
import brahe as bh

assert bh.IGSAnalysisCenter.parse("cod") == bh.IGSAnalysisCenter.COD
assert bh.IGSAnalysisCenter.JPL.code == "JPL"
assert bh.IGSAnalysisCenter.JPL.name == "Jet Propulsion Laboratory"
assert bh.IGSAnalysisCenter.parse("igl").code == "IGL"

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.

Example
1
2
3
4
5
6
import brahe as bh

assert bh.IGSAnalysisCenter.parse("cod") == bh.IGSAnalysisCenter.COD
assert bh.IGSAnalysisCenter.JPL.code == "JPL"
assert bh.IGSAnalysisCenter.JPL.name == "Jet Propulsion Laboratory"
assert bh.IGSAnalysisCenter.parse("igl").code == "IGL"

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.

Example
1
2
3
4
5
6
import brahe as bh

assert bh.IGSAnalysisCenter.parse("cod") == bh.IGSAnalysisCenter.COD
assert bh.IGSAnalysisCenter.JPL.code == "JPL"
assert bh.IGSAnalysisCenter.JPL.name == "Jet Propulsion Laboratory"
assert bh.IGSAnalysisCenter.parse("igl").code == "IGL"

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.

Example
1
2
3
4
5
6
import brahe as bh

assert bh.IGSAnalysisCenter.parse("cod") == bh.IGSAnalysisCenter.COD
assert bh.IGSAnalysisCenter.JPL.code == "JPL"
assert bh.IGSAnalysisCenter.JPL.name == "Jet Propulsion Laboratory"
assert bh.IGSAnalysisCenter.parse("igl").code == "IGL"

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.

Example
1
2
3
4
5
6
import brahe as bh

assert bh.IGSAnalysisCenter.parse("cod") == bh.IGSAnalysisCenter.COD
assert bh.IGSAnalysisCenter.JPL.code == "JPL"
assert bh.IGSAnalysisCenter.JPL.name == "Jet Propulsion Laboratory"
assert bh.IGSAnalysisCenter.parse("igl").code == "IGL"

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.

Example
1
2
3
4
5
6
import brahe as bh

assert bh.IGSAnalysisCenter.parse("cod") == bh.IGSAnalysisCenter.COD
assert bh.IGSAnalysisCenter.JPL.code == "JPL"
assert bh.IGSAnalysisCenter.JPL.name == "Jet Propulsion Laboratory"
assert bh.IGSAnalysisCenter.parse("igl").code == "IGL"

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.

Example
1
2
3
4
5
6
import brahe as bh

assert bh.IGSAnalysisCenter.parse("cod") == bh.IGSAnalysisCenter.COD
assert bh.IGSAnalysisCenter.JPL.code == "JPL"
assert bh.IGSAnalysisCenter.JPL.name == "Jet Propulsion Laboratory"
assert bh.IGSAnalysisCenter.parse("igl").code == "IGL"

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.

Example
1
2
3
4
5
6
import brahe as bh

assert bh.IGSAnalysisCenter.parse("cod") == bh.IGSAnalysisCenter.COD
assert bh.IGSAnalysisCenter.JPL.code == "JPL"
assert bh.IGSAnalysisCenter.JPL.name == "Jet Propulsion Laboratory"
assert bh.IGSAnalysisCenter.parse("igl").code == "IGL"

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.

Example
1
2
3
4
5
6
import brahe as bh

assert bh.IGSAnalysisCenter.parse("cod") == bh.IGSAnalysisCenter.COD
assert bh.IGSAnalysisCenter.JPL.code == "JPL"
assert bh.IGSAnalysisCenter.JPL.name == "Jet Propulsion Laboratory"
assert bh.IGSAnalysisCenter.parse("igl").code == "IGL"

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.

Example
1
2
3
4
5
6
import brahe as bh

assert bh.IGSAnalysisCenter.parse("cod") == bh.IGSAnalysisCenter.COD
assert bh.IGSAnalysisCenter.JPL.code == "JPL"
assert bh.IGSAnalysisCenter.JPL.name == "Jet Propulsion Laboratory"
assert bh.IGSAnalysisCenter.parse("igl").code == "IGL"

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.

Example
1
2
3
4
5
6
import brahe as bh

assert bh.IGSAnalysisCenter.parse("cod") == bh.IGSAnalysisCenter.COD
assert bh.IGSAnalysisCenter.JPL.code == "JPL"
assert bh.IGSAnalysisCenter.JPL.name == "Jet Propulsion Laboratory"
assert bh.IGSAnalysisCenter.parse("igl").code == "IGL"

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.

Example
1
2
3
4
5
6
import brahe as bh

assert bh.IGSAnalysisCenter.parse("cod") == bh.IGSAnalysisCenter.COD
assert bh.IGSAnalysisCenter.JPL.code == "JPL"
assert bh.IGSAnalysisCenter.JPL.name == "Jet Propulsion Laboratory"
assert bh.IGSAnalysisCenter.parse("igl").code == "IGL"

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 "COD".

required

Returns:

Name Type Description
IGSAnalysisCenter IGSAnalysisCenter

The parsed center.

Example
1
2
3
4
import brahe as bh

assert bh.IGSAnalysisCenter.parse("gfz") == bh.IGSAnalysisCenter.GFZ
assert bh.IGSAnalysisCenter.parse("xyz").code == "XYZ"

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.

Example
1
2
3
4
import brahe as bh

path = bh.get_igs_cache_dir()
print(f"IGS cache: {path}")
Note

The directory will be created on first access if it doesn't exist.


See Also