earthaccess icon indicating copy to clipboard operation
earthaccess copied to clipboard

is there a detailed user manual?

Open lwk1542 opened this issue 1 year ago • 1 comments

such as:

  1. how to set the configuration content of .netrc file. EARTHDATA_USERNAME=[],EARTHDATA_PASSWORD=[]
  2. What are the optional parameters for variables? I want to search MOD021KM, how to set the short_name or sensor?
  3. ...

lwk1542 avatar May 11 '23 03:05 lwk1542

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:

  1. 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

  2. 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

jroebuck932 avatar May 11 '23 21:05 jroebuck932