def test_mission(self, download_eofs): download.main(mission="S1A", date="20200101") download_eofs.assert_called_once_with( missions=["S1A"], orbit_dts=["20200101"], sentinel_file=None, save_dir=",", )
def cli(date, path, mission): """Download Sentinel precise orbit files. Saves files to current directory, regardless of what --path is given to search. Download EOFs for specific date, or searches for Sentinel files in --path. With no arguments, searches current directory for Sentinel 1 products """ download.main(path, mission, date)
def cli(search_path, save_dir, sentinel_file, date, mission): """Download Sentinel precise orbit files. Saves files to `save-dir` (default = current directory) Download EOFs for specific date, or searches for Sentinel files in --path. Will find both ".SAFE" and ".zip" files matching Sentinel-1 naming convention. With no arguments, searches current directory for Sentinel 1 products """ log._set_logger_handler() download.main( search_path=search_path, save_dir=save_dir, sentinel_file=sentinel_file, mission=mission, date=date, )
def test_main_nothing_found(self): # Test "no sentinel products found" self.assertEqual(download.main(search_path="/notreal"), 0)