getanc problems?

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
bruce
Posts: 85
Joined: Thu Mar 17, 2005 4:36 pm America/New_York

getanc problems?

by bruce » Thu Jan 24, 2019 10:07 am America/New_York

Why does the first fail while the second works?  They should, as I understand it, do the same thing.

bcb@modis:/v/bruce/grabber/rr1202$ mkdir ancdata
bcb@modis:/v/bruce/grabber/rr1202$ getanc.py --ancdir=/v/bruce/grabber/rr1202/ancdata --start=2012084131500 --mission=aqua
Traceback (most recent call last):
  File "/seadas/seadas-7.5/ocssw/scripts/getanc.py", line 183, in <module>
    g.findweb()
  File "/seadas/seadas-7.5/ocssw/scripts/modules/anc_utils.py", line 480, in findweb
    ancdatabase.create_db()
  File "/seadas/seadas-7.5/ocssw/scripts/modules/ancDB.py", line 52, in create_db
    attephstat INTEGER)''')
sqlite3.OperationalError: database is locked
bcb@modis:/v/bruce/grabber/rr1202$ getanc.py --ancdir=/v/bruce/grabber/rr1202/ancdata A2012084131500.L1A_LAC
Aqua
icefile=/v/bruce/grabber/rr1202/ancdata/2012/084/N201208400_SEAICE_NSIDC_24h.hdf
met1=/v/bruce/grabber/rr1202/ancdata/2012/084/N201208412_MET_NCEPR2_6h.hdf
met2=/v/bruce/grabber/rr1202/ancdata/2012/084/N201208418_MET_NCEPR2_6h.hdf
met3=/v/bruce/grabber/rr1202/ancdata/2012/084/N201208418_MET_NCEPR2_6h.hdf
ozone1=/v/bruce/grabber/rr1202/ancdata/2012/084/N201208400_O3_AURAOMI_24h.hdf
ozone2=/v/bruce/grabber/rr1202/ancdata/2012/085/N201208500_O3_AURAOMI_24h.hdf
ozone3=/v/bruce/grabber/rr1202/ancdata/2012/085/N201208500_O3_AURAOMI_24h.hdf
sstfile=/v/bruce/grabber/rr1202/ancdata/2012/084/N2012084_SST_OIV2AV_24h.nc
bcb@modis:/v/bruce/grabber/rr1202$

Ubuntu 16.04, seadas 7.5

Tags:

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

getanc problems?

by gnwiii » Thu Jan 24, 2019 4:05 pm America/New_York

Your first example works for me on macos -- maybe there was an update to the OCSSW scripts.  I do have Ubuntu, but no time to check at present (dogs to feed, trash/recycling to move to the curb).  I'll try to reproduce your error when I get the chance.

$ getanc.py --ancdir=/tmp --start=2012084131500 --mission=aqua                  icefile=/tmp/2012/084/N201208400_SEAICE_NSIDC_24h.hdf
met1=/tmp/2012/084/N201208412_MET_NCEPR2_6h.hdf
met2=/tmp/2012/084/N201208418_MET_NCEPR2_6h.hdf
met3=/tmp/2012/084/N201208418_MET_NCEPR2_6h.hdf
ozone1=/tmp/2012/084/N201208400_O3_AURAOMI_24h.hdf
ozone2=/tmp/2012/085/N201208500_O3_AURAOMI_24h.hdf
ozone3=/tmp/2012/085/N201208500_O3_AURAOMI_24h.hdf
sstfile=/tmp/2012/084/N2012084_SST_OIV2AV_24h.nc
$ getanc.py --version
getanc.py 2.1

bruce
Posts: 85
Joined: Thu Mar 17, 2005 4:36 pm America/New_York

getanc problems?

by bruce » Thu Jan 24, 2019 4:24 pm America/New_York

FWIW, getanc.py on my system also reports itself as v2.1

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

getanc problems?

by gnwiii » Thu Jan 24, 2019 6:48 pm America/New_York

I can't reproduce the problem on Ubuntu 16.04.   One reason for sqlite3.OperationalError: database is locked errors is another process using the database.

Post Reply