SeaDAS 8.1.0 -- MODIS GEO file
SeaDAS 8.1.0 -- MODIS GEO file
Hello,
I installed Seadas 8.1.0 and OCCSW on my Mac. I am trying to get MODIS GEO file via GUI but get the attached error (my .netrc file is OK and has worked before).
I'd appreciate your advice.
Thanks.
Amita
I installed Seadas 8.1.0 and OCCSW on my Mac. I am trying to get MODIS GEO file via GUI but get the attached error (my .netrc file is OK and has worked before).
I'd appreciate your advice.
Thanks.
Amita
- Attachments
-
- MODIS-GEO 2021-07-07 at 4.33.37 PM.png (245.25 KiB) Not viewed yet
Last edited by avmehta on Mon Jul 12, 2021 4:23 pm America/New_York, edited 2 times in total.
Filters:
Re: MODIS GEO file
Other macOS users have had problems using the "system" python3. As for linux, it is recommended that you not make changes to the "system" python3,
but use either a different python distribution (there are many, including anacoda, python.org, macports, homebrew, ...). The download authentication error points to the Python requests module, so you should try installing a current requests module in a way that does not affect the system python.
but use either a different python distribution (there are many, including anacoda, python.org, macports, homebrew, ...). The download authentication error points to the Python requests module, so you should try installing a current requests module in a way that does not affect the system python.
Re: MODIS GEO file
Hello,
Thank you for your help with this issue. I find it surprising that I was able to process VIIRS (GEO file, L1B, and L2) and OLI (L1 to L2) images without any problems! It is just MODIS! I will have to get some help with python and hopefully it will work!
By the way my Mac has Anaconda python.
Thanks again.
Amita
Thank you for your help with this issue. I find it surprising that I was able to process VIIRS (GEO file, L1B, and L2) and OLI (L1 to L2) images without any problems! It is just MODIS! I will have to get some help with python and hopefully it will work!
By the way my Mac has Anaconda python.
Thanks again.
Amita
-
- Posts: 1519
- Joined: Wed Sep 18, 2019 6:15 pm America/New_York
- Been thanked: 9 times
Re: MODIS GEO file
The MODIS geolocation processing requires that the attitude and ephemeris data be retrieved from the OB.DAAC servers, the VIIRS geolocation processing does not.
The authentication error indicates exactly that... an error authenticating. It is only reported when the server returns an HTTP error code 401. The most common reason for that is incorrect or lack of credentials passed in. The code uses the requests module and provides the credentials from the .netrc file. If you are certain those are correct, you may want to verify that your version of the requests module meets the requirements (https://seadas.gsfc.nasa.gov/requirements/)
Sean
The authentication error indicates exactly that... an error authenticating. It is only reported when the server returns an HTTP error code 401. The most common reason for that is incorrect or lack of credentials passed in. The code uses the requests module and provides the credentials from the .netrc file. If you are certain those are correct, you may want to verify that your version of the requests module meets the requirements (https://seadas.gsfc.nasa.gov/requirements/)
Sean
Re: MODIS GEO file
Hello Sean,
I have requests in my anaconda python library:
Requirement already satisfied: requests in /Users/avmehta/anaconda3/lib/python3.7/site-packages (2.21.0)
Should I just update this?
I have always been able to download data from Earthdata sites -- I also checked by .netrc file and looks fine.
Thanks much for your help.
Amita
I have requests in my anaconda python library:
Requirement already satisfied: requests in /Users/avmehta/anaconda3/lib/python3.7/site-packages (2.21.0)
Should I just update this?
I have always been able to download data from Earthdata sites -- I also checked by .netrc file and looks fine.
Thanks much for your help.
Amita
-
- Posts: 1519
- Joined: Wed Sep 18, 2019 6:15 pm America/New_York
- Been thanked: 9 times
Re: MODIS GEO file
On a Mac, SeaDAS tends to prefer the system installed python, which is fine, as long as it has the requests module (and it's 2.18 or newer). What is the requests library version for that?
Sean
Sean
Re: MODIS GEO file
On my Mac reinstalling requests helped I think! I was able to process an image from 2019.
But multiple images from 2021 give the error: Geolocation processing failed (please see the attached).
Thanks.
Amita
But multiple images from 2021 give the error: Geolocation processing failed (please see the attached).
Thanks.
Amita
- Attachments
-
- GEO-error.pdf
- (472.39 KiB) Downloaded 1335 times
Re: SeaDAS 8.1.0 -- MODIS GEO file
Posting screen captures should be avoided. If you copy and paste text into forum posts then the text is searchable and also make it easier for someone to use quotes from the text in a response.
You should mention the input file used. Does "modis_GEO" fail on all files or just one file? You can get more information by running "modis_GEO --verbose --log ..." (in a terminal). If this information doesn't explain the problem, you can attach the log files to a post (sometimes the log files have the same message repeated my times, resulting a very large file with low information value -- in that case you may want to paste one message line into a forum post).
Code: Select all
% modis_GEO -h
usage: modis_GEO [-h] [--version] [-p PARFILE] [-o GEOFILE] [--att1 ATT1] [--att2 ATT2] [--att3 ATT3] [--eph1 EPH1]
[--eph2 EPH2] [--eph3 EPH3] [--ancdb ANCDB] [--ancdir ANCDIR] [-c] [-r] [-f] [--disable-download]
[--timeout TIMEOUT] [--threshold THRESHOLD] [-d] [-v] [--log]
[L1AFILE]
positional arguments:
L1AFILE Input L1A file
optional arguments:
-h, --help show this help message and exit
[...]
-v, --verbose print status messages
--log Save processing log file(s)
Re: SeaDAS 8.1.0 -- MODIS GEO file
Hello,
Thank you for the reply to my message.
I am using GUI for now and every image I tried for 2021 has this problem.
I randomly tried 2018 and 2019 images -- they work but I do find that in GUI
also is ' unstable' -- loading files in GEO, L1B and L2 processing does not always work! Not sure if it is my Mac or the new software!
Thanks.
Amita
Thank you for the reply to my message.
I am using GUI for now and every image I tried for 2021 has this problem.
I randomly tried 2018 and 2019 images -- they work but I do find that in GUI
also is ' unstable' -- loading files in GEO, L1B and L2 processing does not always work! Not sure if it is my Mac or the new software!
Thanks.
Amita
Re: SeaDAS 8.1.0 -- MODIS GEO file
As Sean mentioned, macOS defaults to the system python. Can you try running the SeaDAS GUI from a terminal with "Anacoda python" (see "https://docs.anaconda.com/anaconda/inst ... y-install/")?