modis_GEO.py failed for some images
modis_GEO.py failed for some images
Hi,
Everyone. I recently used SeaDAS-7.5 to process MODIS-Aqua L1A images in batch. When generating GEO files with command line, almost all the images from 2002 to 2018 can generate GEO files successfully, but some images in 2019 and all images in 2020 cannot generate GEO files. When I re-run the code, the images in 2019 successfully generated GEO files except A2019276045000.L1A_LAC, A2019276062500.L1A_LAC, A2019276063000.L1A_LAC, A2019277053000.L1A_LAC, A2019277053500.L1A_LAC, A2019278061500.L1A_LAC and A2019279052000.L1A_LAC, but the images in 2020 still couldn’t. The GUI also didn't work. At this time, I re-tested the previous images. For example, for images in 2002, GEO files can still be generated successfully.
The error message is as follows:
"$modis_GEO.py A2020272062500.L1A_LAC
Traceback (most recent call last):
File "/opt/seadas-7.5/ocssw/scripts/modis_GEO.py", line 194, in <module>
sys.exit(main())
File "/opt/seadas-7.5/ocssw/scripts/modis_GEO.py", line 185, in main
m.atteph()
File "/opt/seadas-7.5/ocssw/scripts/modules/modis_GEO_utils.py", line 240, in atteph
get.locate()
File "/opt/seadas-7.5/ocssw/scripts/modules/anc_utils.py", line 616, in locate
verbose=self.verbose)
File "/opt/seadas-7.5/ocssw/scripts/modules/ProcUtils.py", line 84, in httpdl
os.makedirs(localpath, mode=0o2775)
File "/opt/software/anaconda2/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied:'/opt/seadas-7.5/ocssw/var/anc/2020/271' "
I downloaded the image again, but still, cannot generate GEO file. Can someone help and give me some suggestions, thanks!
Everyone. I recently used SeaDAS-7.5 to process MODIS-Aqua L1A images in batch. When generating GEO files with command line, almost all the images from 2002 to 2018 can generate GEO files successfully, but some images in 2019 and all images in 2020 cannot generate GEO files. When I re-run the code, the images in 2019 successfully generated GEO files except A2019276045000.L1A_LAC, A2019276062500.L1A_LAC, A2019276063000.L1A_LAC, A2019277053000.L1A_LAC, A2019277053500.L1A_LAC, A2019278061500.L1A_LAC and A2019279052000.L1A_LAC, but the images in 2020 still couldn’t. The GUI also didn't work. At this time, I re-tested the previous images. For example, for images in 2002, GEO files can still be generated successfully.
The error message is as follows:
"$modis_GEO.py A2020272062500.L1A_LAC
Traceback (most recent call last):
File "/opt/seadas-7.5/ocssw/scripts/modis_GEO.py", line 194, in <module>
sys.exit(main())
File "/opt/seadas-7.5/ocssw/scripts/modis_GEO.py", line 185, in main
m.atteph()
File "/opt/seadas-7.5/ocssw/scripts/modules/modis_GEO_utils.py", line 240, in atteph
get.locate()
File "/opt/seadas-7.5/ocssw/scripts/modules/anc_utils.py", line 616, in locate
verbose=self.verbose)
File "/opt/seadas-7.5/ocssw/scripts/modules/ProcUtils.py", line 84, in httpdl
os.makedirs(localpath, mode=0o2775)
File "/opt/software/anaconda2/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied:'/opt/seadas-7.5/ocssw/var/anc/2020/271' "
I downloaded the image again, but still, cannot generate GEO file. Can someone help and give me some suggestions, thanks!
Filters:
-
- Posts: 1519
- Joined: Wed Sep 18, 2019 6:15 pm America/New_York
- Been thanked: 9 times
modis_GEO.py failed for some images
The error indicates a permission problem:
The ancillary retrieval process creates directories to store the files necessary for processing, but in this case it seems it is unable to create the required directory. Does the user account under which you are running the process have write permissions to the
Sean
...
File "/opt/seadas-7.5/ocssw/scripts/modules/ProcUtils.py", line 84, in httpdl
os.makedirs(localpath, mode=0o2775)
File "/opt/software/anaconda2/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied:'/opt/seadas-7.5/ocssw/var/anc/2020/271' "
The ancillary retrieval process creates directories to store the files necessary for processing, but in this case it seems it is unable to create the required directory. Does the user account under which you are running the process have write permissions to the
/opt/seadas-7.5/ocssw/var/anc/
tree?Sean
modis_GEO.py failed for some images
Just in case it applies to your situation -- "Permission denied" errors like: "
OSError: [Errno 13] Permission denied:'/opt/seadas-7.5/ocssw/var/anc/2020/271'
" are often the result of inappropriate but "recommended by the internet" use of `sudo`.modis_GEO.py failed for some images
Thank you, Sean.I added write permissions to the /opt/seadas-7.5/ocssw/var/anc/ and it worked:grin:
Thunder
Thunder