smrf.output package

Submodules

smrf.output.output_hru module

Functions to output the gridded data for a HRU

class smrf.output.output_hru.output_hru(variable_list, topo, date_time, config)[source]

Bases: object

Class output_hru() to output values to a HRU dataframe, then to a file

date_cols = ['year', 'month', 'day', 'hour', 'minute', 'second']
fmt = '%Y-%m-%d %H:%M:%S'
generate_prms_header()[source]

Generate the header for the PRMS output file

output(variable, data, date_time)[source]

Output a time step

Parameters
  • variable – variable name that will index into variable list

  • data – the variable data

  • date_time – the date time object for the time step

smrf.output.output_netcdf module

Functions to output as a netCDF

class smrf.output.output_netcdf.output_netcdf(variable_list, topo, time, outConfig)[source]

Bases: object

Class output_netcdf() to output values to a netCDF file

cs = (6, 10, 10)
fmt = '%Y-%m-%d %H:%M:%S'
output(variable, data, date_time)[source]

Output a time step

Parameters
  • variable – variable name that will index into variable list

  • data – the variable data

  • date_time – the date time object for the time step

type = 'netcdf'

Module contents