Example #1
0
 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=",",
     )
Example #2
0
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)
Example #3
0
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,
    )
Example #4
0
 def test_main_nothing_found(self):
     # Test "no sentinel products found"
     self.assertEqual(download.main(search_path="/notreal"), 0)