earthaccess
earthaccess copied to clipboard
is there a detailed user manual?
such as:
- how to set the configuration content of .netrc file. EARTHDATA_USERNAME=[],EARTHDATA_PASSWORD=[]
- What are the optional parameters for variables? I want to search MOD021KM, how to set the short_name or sensor?
- ...
Hi, thank you for your question. We are currently working on detailed user documentation and we can let you know as soon as that is available. In the meantime, I can try to answer your two questions:
-
For details on how to configure the netrc with your earthdata login details, please see Step 1 at the top of this help article: https://nsidc.org/data/user-resources/help-center/programmatic-data-access-guide
-
To search for MOD021KM, you could use the search_data method:
results = earthaccess.search_data(
short_name = 'MOD021KM',
cloud_hosted = False,
bounding_box = (-180,-90,180,90)
temporal = ('2022-01-01,2022-01-31)
count = 100
)
where cloud_hosted = False will search for data that are not in the cloud bounding_box is a spatial filter by specifying the latitude and longitude in the order of W,S,E,N temporal is a temporal filter by specifying a start and end date in the format YYYY-MM-DD count sets the maximum number of granules that will be returned in the search
I hope this helps