icepyx icon indicating copy to clipboard operation
icepyx copied to clipboard

AssertionError: Your search returned no results; try different search parameters

Open gzixiao opened this issue 9 months ago • 1 comments

Hi, I keep getting an error using the example given, I query my own scope and still get the same error:

AttributeError Traceback (most recent call last) File D:\ProgramData\miniconda3\envs\icepyxenv\Lib\site-packages\icepyx\core\query.py:933, in Query.avail_granules(self, ids, cycles, tracks, cloud) 932 try: --> 933 self.granules.avail 934 except AttributeError:

AttributeError: 'Granules' object has no attribute 'avail'

During handling of the above exception, another exception occurred:

AssertionError Traceback (most recent call last) Cell In[5], line 1 ----> 1 gran_ids = reg.avail_granules(ids=True, cloud=True) 2 gran_ids

File D:\ProgramData\miniconda3\envs\icepyxenv\Lib\site-packages\icepyx\core\query.py:935, in Query.avail_granules(self, ids, cycles, tracks, cloud) 933 self.granules.avail 934 except AttributeError: --> 935 self.granules.get_avail(self.CMRparams, self.reqparams) 937 if ids or cycles or tracks or cloud: 938 # list of outputs in order of ids, cycles, tracks, cloud 939 return granules.gran_IDs( 940 self.granules.avail, 941 ids=ids, (...) 944 cloud=cloud, 945 )

File D:\ProgramData\miniconda3\envs\icepyxenv\Lib\site-packages\icepyx\core\granules.py:256, in Granules.get_avail(self, CMRparams, reqparams, cloud) 252 # Collect results 253 self.avail.extend(results["feed"]["entry"]) 255 assert ( --> 256 len(self.avail) > 0 257 ), "Your search returned no results; try different search parameters"

AssertionError: Your search returned no results; try different search parameters

gzixiao avatar Apr 10 '25 07:04 gzixiao

Hello @guo-zixiao, and thanks for your patience. Can you please provide the code that you are using and version of icepyx (ipx.__version__)? The error message indicates that no results are available for the time and spatial extent you are searching; have you tried broadening your input parameters? To our knowledge all of our examples return granules, so if one of our examples is failing please share the input parameter code and where you obtained the example so we can update it!

JessicaS11 avatar Sep 12 '25 16:09 JessicaS11