nsidc_icesat2_dragann.py

  • Acquires the ATL03 geolocated photon height product and appends the ATL08 DRAGANN classifications from NSIDC.

  • The first time we run the script, it will copy the necessary dataset in the selected local directory.

  • If we already have all the data, and we run the script again: only files added or modified on the remote server will downloaded.

Source code

Calling Sequence

usage: nsidc_icesat2_dragann.py [-h] [--user USER] [--password PASSWORD]
                                [--netrc NETRC] [--directory DIRECTORY]
                                [--year YEAR [YEAR ...]]
                                [--subdirectory SUBDIRECTORY [SUBDIRECTORY ...]]
                                [--release RELEASE]
                                [--version VERSION [VERSION ...]]
                                [--granule REGION [REGION ...]]
                                [--cycle CYCLE [CYCLE ...]]
                                [--track RGT [RGT ...]] [--flatten]
                                [--timeout TIMEOUT] [--retry RETRY] [--log]
                                [--list] [--clobber] [--mode MODE]

Named Arguments

--user, -U

Username for NASA Earthdata Login

--password, -W

Password for NASA Earthdata Login

--netrc, -N

Path to .netrc file for authentication

--directory, -D

Working data directory

--year, -Y

Years to run

--subdirectory, -S

subdirectories of data to run

--release, -r

ICESat-2 Data Release

--version, -v

ICESat-2 Data Version

--granule, -g

Possible choices: 1–14

ICESat-2 Granule Region

--cycle, -c

ICESat-2 orbital cycles to sync

--track, -t

Possible choices: 1–1387

ICESat-2 Reference Ground Tracks (RGTs)

--flatten, -F

Do not create subdirectories

--timeout, -T

Timeout in seconds for blocking operations

--retry, -R

Connection retry attempts

--log, -l

Output log file

--list, -L

Only print files that could be transferred

--clobber, -C

Overwrite existing data

--mode, -M

Permissions mode of output files