pyiem.nws.products.scp module#

Parsing NESDIS Satellite Cloud Product (SCP).

class pyiem.nws.products.scp.SCP(station, valid, mid, high, cldtop1, cldtop2, eca)#

Bases: tuple

cldtop1#

Alias for field number 4

cldtop2#

Alias for field number 5

eca#

Alias for field number 6

high#

Alias for field number 3

mid#

Alias for field number 2

station#

Alias for field number 0

valid#

Alias for field number 1

class pyiem.nws.products.scp.SCPProduct(text, utcnow=None, ugc_provider=None, nwsli_provider=None)[source]#

Bases: TextProduct

Class representing a SCP Product

sql(txn)[source]#

Do the necessary database work

Parameters:

(psycopg.transaction) – a database transaction

pyiem.nws.products.scp.parser(text, utcnow=None, ugc_provider=None, nwsli_provider=None)[source]#

parser of raw SCP Text.

Parameters:
  • text (str) – the raw text to parse

  • utcnow (datetime) – the current datetime with timezone set!

Returns:

SCPProduct instance