USGSCSM
U.S. flag

An official website of the United States government

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

io.isis_serial_number — Generate ISIS3 Compliant Serial Numbers

The io.isis_serial_number, using translation tables loaded using the io.io_db module supports generation of ISIS3 compliant serial numbers. These are necessary when creating ISIS3 compliant control networks.

New in version 0.1.0.

plio.io.isis_serial_number.generate_serial_number(label)[source]

Generate an ISIS compatible serial number using the ISIS team’s translation files

Parameters:

label (dict or str) – A PVLModule object (dict) or string PATH to a file containing a PVL header

Returns:

The ISIS compatible serial number

Return type:

str

plio.io.isis_serial_number.get_isis_translation(label)[source]

Compute the ISIS serial number for a given image using the input cube or the label extracted from the cube.

Parameters:

label (dict or str) – A PVL dict object or file name to extract the PVL object from

Returns:

translation – A PVLModule object containing the extracted translation file

Return type:

dict

class plio.io.io_db.StringToMission(key, value)[source]

Table mapping for the ISIS mission name cleaner table

class plio.io.io_db.Translations(mission, instrument, translation)[source]

Table mapping for the ISIS Translation file table

plio.io.io_db.setup_db_session(db)[source]

Add a database session object to the root namespace

Parameters:

db (str) – Database name

Returns:

A SQLAlchemy session object

Return type:

object