-
Notifications
You must be signed in to change notification settings - Fork 4
InputHandler Package
The input handler takes data files from the user, parses them according to input specifications and saves standard netCDF files with the data. The input data needs to be linked to component Descriptor files. An example of the process can be found in runDataImport.py.
Figure 1 shows the general flow of the input handler.
The InputHandler package consists of 5 main operations:
-
A project needs to be initiated to establish the appropriate file structure through initiateProject.
-
Data gets loaded in its raw form depending on input formats specified mergeInputs.
-
Missing or bad data needs to get replaced with good data fixBadData. When possible data from another time period is used to replace bad data. If replacement data is not available new data is simulated.
-
The records need to be either up sampled or down sampled to the desired time step used in the Model package fixDataInterval.
-
Once the input dataframe is generated a netcdf file is required for each column of data dataframe2netcdf.