read_ATM1b_QFIT_binary.py

Reads Level-1b Airborne Topographic Mapper (ATM) QFIT binary data products

Source code

General Methods

ATM1b_QFIT.read_ATM1b_QFIT_binary(full_filename, SUBSETTER=None)[source]

Reads an ATM Level-1b binary file

Parameters
full_filename: str

Path to ATM QFIT file

SUBSETTER: list or NoneType, default None

Subset dataset to specific indices

ATM1b_QFIT.read_ATM1b_QFIT_binary.ATM1b_QFIT_shape(full_filename)[source]

Get the number of records within an ATM Level-1b binary file

Parameters
full_filename: str

Path to ATM QFIT file

ATM1b_QFIT.read_ATM1b_QFIT_binary.get_record_length(fid)[source]

Get the record length and endianness of the QFIT file

Parameters
fid: obj

Open file object for ATM QFIT file

ATM1b_QFIT.read_ATM1b_QFIT_binary.read_ATM1b_QFIT_header(fid, n_blocks, dtype)[source]

Read the ATM QFIT file headers

Parameters
fid: obj

Open file object for ATM QFIT file

n_blocks: int

record length

dtype: str or ob

Endianness of QFIT file

ATM1b_QFIT.read_ATM1b_QFIT_binary.read_ATM1b_QFIT_records(fid, n_blocks, n_records, dtype, date, SUBSETTER=None)[source]

Read ATM L1b variables from a QFIT binary file

Parameters
fid: obj

Open file object for ATM QFIT file

n_blocks: int

Record length

n_records: int

Number of records in the QFIT file

dtype: str or obj

Endianness of QFIT file

date: tuple or list

Calendar date in year,month,day format

SUBSETTER: list or NoneType, default None

Subset dataset to specific indices

ATM1b_QFIT.read_ATM1b_QFIT_binary.calc_julian_day(YEAR, MONTH, DAY, HOUR, MINUTE, SECOND)[source]

Calculates the Julian day from calendar date

Parameters
YEAR: float or int

Year

MONTH: float or int

Month of the year

DAY: float or int

Day of the month

HOUR: float or int

Hour of the day

MINUTE: float or int

minute of the hour

SECOND: float or int

second of the minute

ATM1b_QFIT.read_ATM1b_QFIT_binary.calc_GPS_to_UTC(YEAR, MONTH, DAY, HOUR, MINUTE, SECOND)[source]

Gets the number of leaps seconds for a calendar date in GPS time

Parameters
YEAR: float or int

Year (GPS)

MONTH: float or int

Month of the year (GPS)

DAY: float or int

Day of the month (GPS)

HOUR: float or int

Hour of the day (GPS)

MINUTE: float or int

minute of the hour (GPS)

SECOND: float or int

second of the minute (GPS)