dartobsgen.generate_obs_sequences#
- dartobsgen.generate_obs_sequences(config, source, max_workers=None)[source]#
Generate one DART obs_seq file per assimilation cycle.
Analysis times run from
config.first_analysisthroughconfig.endinclusive; each gets the window(T - freq/2, T + freq/2]and a file named forT, following DARTβs convention. Callssource.write_obs_seqfor each and returns the paths of every file that was written. Windows that contain no observations are silently skipped.Before running any window,
source.check_coverageis given the full list of windows so the source can report β or reject β a mismatch between the windows and the data it can actually serve. Most sources take the default no-op;PerfectModelSourceuses it to catch analysis times that do not line up with the model output times.- Parameters:
config (ObsGenConfig) β Run configuration (analysis times, bbox, obs types, window width, output path and naming settings).
source (DataSource) β Observation data source (e.g.
CrocLakeSource).max_workers (int or None) β Number of parallel worker processes.
Noneuses all available CPUs;1runs sequentially.
- Returns:
Paths of obs_seq files written to disk (empty windows omitted), in chronological order.
- Return type: