Package: sentineleof
Sentinel EOFTool to download Sentinel 1 precise/restituted orbit files (.EOF files) for processing SLCs(Update 2023-10-31) Changes to Sentinel-1 orbit files sourceTheCopernicus Scihub client has discontinued servicein favor ofthe new Copernicus Data Space Ecosystem. The new service no longer allows anonymous public downloads (using thegnssuser), which means you must register for either a Dataspace account (to use the CDSE data) or a NASA Earthdata account (to use the orbits provided by ASF).Changes required by you to continue using this tool:Option 1: Register for CDSERegister for an account with Copernicus Data Space account athttps://dataspace.copernicus.eu/(using the Loging button, which will have the option for a "Register" page)After creating the username and confirming your email, store your username/password in a~/.netrcfile with the hostnamedataspace.copernicus.eu:machine dataspace.copernicus.eu
  login MYUSERNAME
  password MYPASSWORDOption 2: Register for NASA EarthdataRegister for an account with NASA Earthdata athttps://urs.earthdata.nasa.gov/users/newAfter creating the username and confirming your email, store your username/password in a~/.netrcfile with the hostnameurs.earthdata.nasa.gov:machine urs.earthdata.nasa.gov
  login MYUSERNAME
  password MYPASSWORDSetup and installationpipinstallsentineleofor through conda:condainstall-cconda-forgesentineleofThis will put the executableeofon your pathAfter setting up your~/.netrc(see above), if you have a bunch of Sentinel 1 zip files (or unzipped SAFE folders), you can simply runeofand download either the precise orbit files, or, if the POEORB files have not been released, the restituted RESORB files.Runningeof--search-path/path/to/safe_files/--save-dir./orbits/will search/path/to/safe_files/for Sentinel-1 scenes, and save the.EOFfiles to./orbits/(creating it if it does not exist)Command Line Interface ReferenceThe command line tool incli.pywas made using theclicklibrary.$ eof --help
Usage: eof [OPTIONS]

  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

Options:
  -p, --search-path DIRECTORY  Path of interest for finding Sentinel products.
                               [default: .]

  --save-dir DIRECTORY         Directory to save output .EOF files into
                               [default: .]

  --sentinel-file PATH         Specify path to download only 1 .EOF for a
                               Sentinel-1 file/folder

  -d, --date TEXT              Validity date for EOF to download
  -m, --mission [S1A|S1B]      Optionally specify Sentinel satellite to
                               download (default: gets both S1A and S1B)

  --help                       Show this message and exit.To use the function from python, you can pass a list of dates:fromeof.downloadimportdownload_eofsdownload_eofs([datetime.datetime(2018,5,3,0,0,0)])download_eofs(['20180503','20180507'],['S1A','S1B'])