gavo.stc.syslib module

Arnold Rots’ “library” of standard systems.

There’s a dictionary of STC-S definitions of the systems that are compiled and memoized on demand. Thus, use the getLibrarySystem function below exclusively to access this content.

If and when there are additional library systems, you need to amend sysdefs.

gavo.stc.syslib.getLibrarySystem(sysId)[source]

returns a dm.CoordSys instance for sysId.

sysId may be the full IVOID or just the fragment. Unknown sysIds result in NotFoundErrors. Results are memoized, so make sure you do not mess with what you are returned.

gavo.stc.syslib.stripIVOID(sysId)[source]

returns sysId with the STC IVOID root removed.

If sysId does not start with the STC IVOID, it is returned unchanged.