pyModis icon indicating copy to clipboard operation
pyModis copied to clipboard

Cannot connect to server

Open lorenzoFabbri opened this issue 4 years ago • 3 comments

I am trying to use PyModis to download MODIS AOD data programmatically. I created a new Conda environment with Python 3.6.10 (MacOS), installed the dependencies with Conda and then installed, without any problem, PyModis with pip. When I try to run the Jupiter notebook downloaded from the website of the package, I keep receiving an error when trying to connect to the server (withmodisDown.connect()):

~/miniconda3/envs/pymodis/lib/python3.6/site-packages/pymodis/downmodis.py in connect(self, ncon)
    383             self._connectHTTP(ncon)
    384         if len(self.dirData) == 0:
--> 385             raise Exception("There are some troubles with the server. "
    386                             "The directory seems to be empty")
    387 

Exception: There are some troubles with the server. The directory seems to be empty

I followed the inscriptions to setup username and password, so I don't think that's the problem.

lorenzoFabbri avatar Mar 20 '20 07:03 lorenzoFabbri

Sorry for the delay, could you please share your code (or command line)

Thanks

lucadelu avatar Nov 04 '20 10:11 lucadelu

Have you solved this problem? I have the same doubts. Could you please teach me about the solution to this problem?

This is my program: `from glob import glob from pymodis.downmodis import downModis

tiles = ['h22v04','h23v04']

down_modis = downModis( destinationFolder='.....', password='......', user='.....', url='https://search.earthdata.nasa.gov', tiles=tiles, path='MOLA', product='.....', today='......', enddate='....')

down_modis.connect()

down_modis.downloadsAllDay()

modis_files = glob('D:\py_work\311\modis_download' + '*.hdf') print(modis_files)`

shadowdreamMQ avatar Aug 24 '23 02:08 shadowdreamMQ

I'm not sure this might help you. I had the same issue, but finally, I found that the target folder and file name differed from what I had expected. I think you can search on the data archive directly and then try it again. MODIS Data Archive: https://ladsweb.modaps.eosdis.nasa.gov/archive

jutak0228 avatar Apr 09 '24 15:04 jutak0228