Blocks Catalog
Below is a list of Blocks available for registration in
prefect-earthdata
.
To register blocks in this module to view and edit them on Prefect Cloud, first install the required packages, then
prefect block register -m prefect_earthdata
load
method on Blocks, you must already have a block document saved through code or saved through the UI.
Credentials Module
Block used to manage authentication with NASA Earthdata. To obtain an account, please refer to the Earthdata Login docs.
Authentication is handled via the earthaccess
module.
Refer to the earthaccess docs
for more info about the possible credential configurations.
To load the EarthdataCredentials:
from prefect import flow
from prefect_earthdata.credentials import EarthdataCredentials
@flow
def my_flow():
my_block = EarthdataCredentials.load("MY_BLOCK_NAME")
my_flow()