Hello,
This forum was extremely helpful the last time I had a problem, so here we go again.
I am trying to get chlorophyll data for Lake Kivu in the African Great Lakes Region, following a procedure established in Horion et al (2010) for Lake Tanganyika.
http://perso.fundp.ac.be/~jpdescy/Horion%20et%20al%202010_RSE%20114%20781-7911.pdf.I found a script on this forum that processes from L1A to L2, so I used a modified version of that (below).
I ran my script last night for files in /mnt/hgfs/seadas_shared. For some of my original L1A files, I obtained the original .hdf, a GEO file, L1B, L1B.anc, L2, and text files. For others, it gave me the hdf, geo, geo.met, geo.pcf, l1b, l1b.anc, l2, text, and met files.
Question one: Why would this be different? Is this an error? What should I obtain? Note: I ran out of storage space, so some files weren't processed at all - not sure if this played a role.
I displayed a few images, and I get a colorful display when looking at products from the original L1A file and the L1B, but for L2, I'm getting -32767 as the raw data value (same for geophysical data value for chl) for everything in the spreadsheet, whether it is a chlorophyll product or nLw product.
Question two: What would cause this? Is there a general problem with using SeaDAS ocean color for Lake Kivu? Or was there a processing error or user error? Or could it just be clouds...? Note: I haven't yet figured out how to use and interpret the L2 Flags properly.
Lastly, because of storage capacity, my L1A files are stored in two directories on my host Windows OS, one on the external hard drive and one on an internal data drive. I re-ran the same script (and then just the first part of it) for /mnt/hgfs/seadas_shared-2/*. This time, I got the following error in the terminal (below).
Question three: what happened here?I haven't used linux or seadas before, and none of my colleagues have ever used seadas, so your help is greatly appreciated and truly indispensable to me completing this project.
Allyn
SCRIPTsource /home/ack/Desktop/seadas6.3/config/seadas.env
WEST=28.8
SOUTH=-2.8
EAST=29.8
NORTH=-1.6
#for FILE in /mnt/hgfs/seadas_shared/*.hdf
for FILE in /mnt/hgfs/seadas_shared-2/*.hdf
do
echo $FILE
#BASE= echo $FILE |awk -F. '{ print $1 }'
BASE=$FILE
GEOFILE=$BASE.GEO
L1ASUB=$BASE_sub.L1A_LAC
GEOSUB=$BASE_sub.GEO
L1BFILE=$BASE.L1B
L2FILE=$BASE.L2
echo "GENERATING NEW GEOFILE..."
/home/ack/Desktop/seadas6.3/run/scripts/modis_GEO.py $FILE -o $GEOFILE
#Rest of script was commented out...
done
TERMINALack@ubuntu:/mnt/hgfs/seadas_shared-2$ /home/ack/Desktop/script.sh
/mnt/hgfs/seadas_shared-2/MYD01.A2008123.1135.005.2012039111623.hdf
/home/ack/Desktop/script.sh: line 22: //: is a directory
GENERATING NEW GEOFILE...
Traceback (most recent call last):
File "/home/ack/Desktop/seadas6.3/run/scripts/modis_GEO.py", line 115, in <module>
modis_env(m)
File "/home/ack/Desktop/seadas6.3/run/scripts/modules/modis_utils.py", line 248, in modis_env
self.start, self.stop, self.sat_name = modis_timestamp(self.file)
File "/home/ack/Desktop/seadas6.3/run/scripts/modules/modis_utils.py", line 126, in modis_timestamp
meta = readMetadata(arg)
File "/home/ack/Desktop/seadas6.3/run/scripts/modules/MetaUtils.py", line 73, in readMetadata
if re.search('PRODUCT',text[0]):
IndexError: list index out of range
/home/ack/Desktop/script.sh: line 26: //: is a directory
/home/ack/Desktop/script.sh: line 30: //: is a directory
/home/ack/Desktop/script.sh: line 35: //: is a directory