pywatershed.AdapterNetcdf#
- class pywatershed.AdapterNetcdf(fname, variable, control, load_n_time_batches=1)[source]#
Adapter subclass for a NetCDF file
This requires that the NetCDF file have a time dimension named “time” or “doy” (day of year) to be properly handled as a timeseries for input, etc.
- Parameters:
Methods
__init__(fname, variable, control[, ...])advance()Advance the adapter in time
close()Close the underlying NetCDF file.
Attributes
- property current#
Current time of the Adapter instance.
- property data: array#
Return the data for the current time.