Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect to server #125

Open
lorenzoFabbri opened this issue Mar 20, 2020 · 3 comments
Open

Cannot connect to server #125

lorenzoFabbri opened this issue Mar 20, 2020 · 3 comments

Comments

@lorenzoFabbri
Copy link

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.

@lucadelu
Copy link
Owner

lucadelu commented Nov 4, 2020

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

Thanks

@shadowdreamMQ
Copy link

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)`

@jutak0228
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants