<jupyter_start><jupyter_text>Create a ModapsClient object.<jupyter_code>a = modapsclient.ModapsClient()<jupyter_output><empty_output><jupyter_text>Some examples List satellite instruments<jupyter_code>sats = a.listSatelliteInstruments()
sats
a.getMaxSearchResults()<jupyter_output><empty_output><jupyter_text>Find products, as full list, or grouped by Groups or Instruments.<jupyter_code>a.listProductsByInstrument('NPP')
a.listProductGroups('NPP')
a.listProductGroups('PM1M')
a.listProductsByInstrument('NPP', group='NL1_A')
a.listProductsByInstrument('PM1M', group='L1_D')<jupyter_output><empty_output><jupyter_text>LAADS stores files in Collections, which correspond sometimes to algorithm versions.<jupyter_code>a.getCollections('MYD021KM')<jupyter_output><empty_output><jupyter_text>Example how to search files, find their URLs and inspect a browse image (if available)<jupyter_code>a.searchForFiles('MYD021KM', '2018-03-10', '2018-03-11', 65.5, 65.5, -147.7, -147.7, collection=6)<jupyter_output><empty_output><jupyter_text>We can also limit by time.<jupyter_code>a.searchForFiles('MYD021KM', '2018-03-11 12:00', '2018-03-11 23:59', 65.5, 65.5, -147.7, -147.7, collection=6)
a.getFileProperties('3095418117')
a.getFileUrls('3095418117')
a.getFileOnlineStatuses('3095418117')
a.getBrowse('3095418117')
browseurl = a.getFileUrls('3095675990')
browseurl
from IPython.display import Image
from IPython.core.display import HTML 
Image(url=browseurl[0], width=500)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13453815261044177, 'fraction_numerical': 0.09170013386880857, 'mean_word_length': 9.912408759124087, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '6', 'dir': 'jupyter-structured-clean-dedup', 'id': '499432', 'license': 'MIT', 'n_tokens_mistral': 654, 'n_tokens_neox': 550, 'n_words': 90, 'path': 'ipynb/modapsclient_basic_usage.ipynb', 'repo_name': 'leifdenby/modapsclient', 'size': '1494'}