modis_GEO.py failed for some images

Please enter here to ask a question about any NASA Science related topics!
Post Reply
machl
Posts: 7
Joined: Mon Jun 15, 2020 9:58 am America/New_York

modis_GEO.py failed for some images

by machl » Tue Nov 17, 2020 8:20 am America/New_York

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!

Tags:

OB.DAAC - SeanBailey
User Services
User Services
Posts: 1125
Joined: Wed Sep 18, 2019 6:15 pm America/New_York

modis_GEO.py failed for some images

by OB.DAAC - SeanBailey » Tue Nov 17, 2020 8:31 am America/New_York

The error indicates a permission problem:


...
  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

gnwiii
Posts: 575
Joined: Fri Jan 29, 2021 5:51 pm America/New_York
Answers: 1

modis_GEO.py failed for some images

by gnwiii » Tue Nov 17, 2020 10:48 am America/New_York

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

machl
Posts: 7
Joined: Mon Jun 15, 2020 9:58 am America/New_York

modis_GEO.py failed for some images

by machl » Wed Nov 18, 2020 3:50 am America/New_York

Thank you, Sean.I added write permissions to the /opt/seadas-7.5/ocssw/var/anc/ and it worked:grin:

Thunder

machl
Posts: 7
Joined: Mon Jun 15, 2020 9:58 am America/New_York

modis_GEO.py failed for some images

by machl » Wed Nov 18, 2020 3:51 am America/New_York

Thank you~ This solution also worked:grin:

Thunder

Post Reply