download_runs¶
- rubin_sim.maf.run_comparison.download_runs(runs, dest_dir=None, runs_source=None, clobber=False)¶
Download opsim visit databases for specified runs to a local directory.
- Parameters:
- runs
pandas.DataFrame
or iterable [str
] If a
pandas.DataFrame
is provided, theOpsimRun
column will be used to get run names, and data will be read from the url specified in theurl
column. If a collection ofstr
is provided, these will be interpreted as run names supplied by data originating in the run metadata provided by theruns_source
parameter.- dest_dir
str
The local directory into which to write downloaded visit databases.
- runs_source
str
File name or URL for the json file from which to load the metadata. If it is set to
None
, the data is loaded from the URL specified by thearchive.RUNS_SOURCE
constant. This parameter is ignored if theruns
parameter is set to apandas.DataFrame
.- clobber
bool
If
False
, runs that would clobber an existing file will be skipped. IfTrue
, existing files will be overwritten.
- runs
- Returns:
- runs
pandas.DataFrame
Metadata on runs downloaded (in the same structure as the return of
archive.get_runs
).
- runs