wdmtoolbox.wdmtoolbox.describedsn

wdmtoolbox.wdmtoolbox.describedsn(wdmpath, dsn, attrs='default')

Print out attributes of a single DSN

Parameters:
  • wdmpath (str) – Path and WDM filename.

  • dsn (int) – The Data Set Number (DSN) for the time series in the WDM file. This number must be greater or equal to 1 and less than or equal to 32000. HSPF can only use for input or output DSNs of 1 to 9999, inclusive.

  • attrs (str) –

    [optional, default to “default”]

    Attributes to retrieve from the DSN.

    attrs

    Attributes Retrieved

    default

    DSN, TSSTEP, TCODE, TSFILL, IDLOCN, IDSCEN, IDCONS, TSBYR, STANAM, TSTYPE

    all

    All attributes set of the 450 total

    comma separated list of attribute names

    Specific attributes named in the list

  • tablefmt (str) –

    [optional, default is ‘csv’, output format]

    The table format. Can be one of ‘csv’, ‘tsv’, ‘plain’, ‘simple’, ‘grid’, ‘pipe’, ‘orgtbl’, ‘rst’, ‘mediawiki’, ‘latex’, ‘latex_raw’ and ‘latex_booktabs’.