ASFSMD(1)

πŸŽ€ NAME πŸŽ€

asfsmd β€” the ASF Sentinel-1 Metadata Download tool πŸ’… (yes bestie, that's literally the whole name, we love a concise queen)


✨ DESCRIPTION ✨

okay so, here's the vibe. The usage is giving:

usage: asfsmd [-h] [--version]
       [--loglevel {DEBUG,INFO,WARNING,ERROR,CRITICAL}] [-q] [-v] [-d]
       [-f] [--urls] [-o OUTDIR] [-u USERNAME] [-p PASSWORD]
       [--block-size BLOCK_SIZE] [-b
       {s1,s2,s3,s4,s5,s6,iw1,iw2,iw3,ew1,ew2,ew3,ew4,ew5,wv1,wv2}]
       [--pol {vv,vh,hv,hh}] [-c] [-n] [-r] [--data] [--noprogress]
       INPUT [INPUT ...]

So asfsmd is this small Python tool that lets you download XML files holding Sentinel-1 product metadata straight from the ASF archive. Here's the tea tho: Sentinel-1 products live in the ASF archive as ZIP files, and those ZIPs are huge because they're carrying BOTH the product annotations AND the binary image data. πŸ™ˆ

But wait β€” the asfsmd tool is built different. It can pull only the relatively small annotation files (in XML format) without dragging the entire ZIP archive down with it. No cap, that's the whole point. πŸ‘‘


🫢 positional arguments: 🫢

  • INPUT β€” the Sentinel-1 product name(s), bestie. And listen, this one's a shape-shifter depending on your flags: if the '-f' flag is set then the argument gets interpreted as the filename containing the list of products. If the '--urls' flag is set then the arguments get interpreted as URLs pointing to a product on the ASF server. Wanna know more? Go peek at the '--filelist' and the '--urls' options, they spill all the details. πŸ’–

🌸 options: 🌸

  • -h, --help β€” show this help message and exit. classic. the "help me" button. πŸ†˜
  • --version β€” show program's version number and exit. ✨
  • --loglevel {DEBUG,INFO,WARNING,ERROR,CRITICAL} β€” the logging level (default: WARNING). pick your chaos level.
  • -q, --quiet β€” suppress standard output messages, only errors are printed to screen. shhh era.
  • -v, --verbose β€” print verbose output messages. she's chatty now πŸ’¬
  • -d, --debug β€” print debug messages. full detective mode πŸ”
  • -f, --file-list β€” read the list of products from a file. And ooh, the file can be a JSON file (with '.json' extension) or a text file. The text file is expected to contain one product name per line. The json file can contain a list of products, OR a dictionary containing a list of products for each key. In that case the key is used as subfolder name to store the corresponding products. Example: <OUTDIR>/<KEY>/<PRODUCT> β€” cute, organized, main character energy. πŸ—‚οΈ
  • --urls β€” Indicate the inputs are a list of URLs from ASF. 🌐
  • -o OUTDIR, --outdir OUTDIR β€” path of the output directory (default='.'). where the goodies land πŸ“¦
  • -u USERNAME, --username USERNAME β€” username for ASF authentication. If you don't provide it, the tool attempts to retrieve the authentication parameters for the user's '.netrc' file looking for the host 'urs.earthdata.nasa.gov'. πŸ”
  • -p PASSWORD, --password PASSWORD β€” password for ASF authentication. Same deal: if not provided, the tool attempts to retrieve the authentication parameters for the user's '.netrc' file looking for the host 'urs.earthdata.nasa.gov'. 🀫
  • --block-size BLOCK_SIZE β€” httpio block size in MB (default: 16). 🧱
  • -b {s1,s2,s3,s4,s5,s6,iw1,iw2,iw3,ew1,ew2,ew3,ew4,ew5,wv1,wv2}, --beam {s1,s2,s3,s4,s5,s6,iw1,iw2,iw3,ew1,ew2,ew3,ew4,ew5,wv1,wv2} β€” Choose only one beam to download. If not provided, all beams are downloaded. pick a lane, babe 🎯
  • --pol {vv,vh,hv,hh} β€” Choose only one polarization to download. If not provided, both polarizations are downloaded. πŸ’«
  • -c, --cal β€” Download calibration files. πŸ“
  • -n, --noise β€” Download noise calibration files. πŸ“‘
  • -r, --rfi β€” Download RFI files. πŸ›°οΈ
  • --data β€” Download measurement files. πŸ“Š
  • --noprogress β€” Disable the progress bar. for the girlies who like a surprise πŸ™ˆ

ngl bestie, that's the whole page. every flag, every default, every file path β€” nothing skipped, nothing invented, we keep the facts and just serve them cute. πŸ’–

and that's a wrap on asfsmd v1.4.1, brought to you by February 2024 β€” slay, goodbye, drink water πŸ¦‹

πŸ“¦ where this page comes from