pywatershed.AdapterNetcdf#
- class pywatershed.AdapterNetcdf(fname, variable, dim_sizes, type, 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, dim_sizes, type, ...)advance
()Advance the adapter in time
Attributes
Current time of the Adapter instance.
Return the data for the current time.
- property current#
Current time of the Adapter instance.
- property data: array#
Return the data for the current time.