Motivation: Implement async requests
This is a very simple performance comparison between approaches for running search queries via pystac-client:
| #------------------------------------------------------------------------------- | |
| # This assumes the following: | |
| # | |
| # 1. You have an Earthdata Login (EDL) account (https://urs.earthdata.nasa.gov/) | |
| # 2. You have supplied your EDL credentials in either a .netrc file or | |
| # via the environment variables EARTHDATA_USERNAME and EARTHDATA_PASSWORD or | |
| # an EDL token via the environment variable EARTHDATA_TOKEN. | |
| # 3. You have a Python virtual environment or conda environment with earthaccess | |
| # installed. | |
| #------------------------------------------------------------------------------- |
Motivation: Implement async requests
This is a very simple performance comparison between approaches for running search queries via pystac-client:
Write a new Lambda function using Node.js that validates the checksums of granule files based on the following guidelines:
In order to avoid causing a stack overflow during recursion, do the following:
thunk (in the case of co-recursive functions, decorate both). This exposes a trampoline function, which is used in the next step.trampoline to only the initial call to each decorated function. Conversely, do not append a call to trampoline to any recursive call to a thunk-decorated function.For example, suppose we have the following naive recursive implementation of the factorial function:
| yield | variety | year | site | |
|---|---|---|---|---|
| 27 | Manchuria | 1931 | University Farm | |
| 48.86667 | Manchuria | 1931 | Waseca | |
| 27.43334 | Manchuria | 1931 | Morris | |
| 39.93333 | Manchuria | 1931 | Crookston | |
| 32.96667 | Manchuria | 1931 | Grand Rapids | |
| 28.96667 | Manchuria | 1931 | Duluth | |
| 43.06666 | Glabron | 1931 | University Farm | |
| 55.2 | Glabron | 1931 | Waseca | |
| 28.76667 | Glabron | 1931 | Morris |
| 27 | Manchuria | 1931 | University Farm | |
|---|---|---|---|---|
| 48.86667 | Manchuria | 1931 | Waseca | |
| 27.43334 | Manchuria | 1931 | Morris | |
| 39.93333 | Manchuria | 1931 | Crookston | |
| 32.96667 | Manchuria | 1931 | Grand Rapids | |
| 28.96667 | Manchuria | 1931 | Duluth | |
| 43.06666 | Glabron | 1931 | University Farm | |
| 55.2 | Glabron | 1931 | Waseca | |
| 28.76667 | Glabron | 1931 | Morris |