gsflow.prms.prms_data Module

class gsflow.prms.prms_data.PrmsData(data_df, name='Data', model_dir='', header='PRMS datafile')[source]

PrmsData is a class to load/edit/write PrmsData files

Parameters
data_dfpd.Dataframe
namestr

DataFile file name to write

model_dirstr

model directory to write file to

headerstr

prms data header

Examples

>>> import gsflow
>>> data = gsflow.prms.PrmsData.load_from_file("mydatafile")
Attributes
file_name

Returns the data file path

Methods

load_from_file(data_file)

Method to load a data file into a PrmsData object

write(self[, name])

Method to write PrmsData input to a PRMS Data file

property file_name

Returns the data file path

static load_from_file(data_file)[source]

Method to load a data file into a PrmsData object

Parameters
data_filestr

data file path and name

Returns
PrmsData object
write(self, name=None)[source]

Method to write PrmsData input to a PRMS Data file

Parameters
namestr

Data file file name, if none it uses the class stored name