Ocean Color Forum - Not logged in
I just installed Seadas 4.6 today on my RedHat 7.3 machine (the installation seemed to go fine). I'm trying to run my existing scripts that take the SeaWiFS L1A files and compute L2 products. I'm getting an error when the script gets to the call for msl12. The following is how I call msl12:
msl12, 0, ifile=outfileL1Agom, ofile1=outfileL2, l2prod1="chlor_a,ndvi,K_490,par,l2_flags", met1=metone, met2=mettwo, met3=metthree, ozone1=oz1, ozone2=oz2, ozone3=oz3
where outfileL1Agom = a L1A file that has been subset using the 'subscene' command (this seems to work fine still)
My error is:
Create MSL12 parameter file: msl12.par
UNIX cmd_final = /bin/csh -f -c "msl12 par=./msl12.par"
Invalid argument "vcal_opt= 0"
-E- msl12_input.c Line 261: Error reading input parameters.
-E- msl12: Error parsing input parameters.
No L2 file /mnt/eddy/ext1/seawifs/GOMprocess/L2/S2004183162757.L2_HNSG
Thus, the L2 file is not generated.
So ... it seems like the new code doesn't like the input value of 0 for vcal_opt. I checked msl12.par and this variable is set to 0 (as it should be?). I even tried including the variable in my call to msl12 but it made no difference.
I should stress that my scripts had been working up until I upgraded to 4.6, so I'm wondering if there has been some new syntax changes to msl12 that I'm not aware of?
Anybody have any ideas?
The vcal_opt parameter was removed from the code with the last release.
I think if you just remove that from your script, it will work fine.
I don't quite understand ... I don't use the vcal_opt parameter when I call msl12 so I can't remove it. As you can see from my first posting I call msl12 with just a list of products I want and the paths to the EPTOMS and NCEP files. I tried running msl12 from the GUI and it worked just fine ... there seems to be something different with how the program is called from the command line in Seadas 4.6 (at least within a script). I also noticed the the vcal_opt parameter is being listed in the msl12.par file ... should this be happening if the paramter has been removed?
Here is a copy of the first part of my msl12.par file:
Okay, this would appear to be some kind of installation problem. Do you
have any other installations of SeaDAS on the computer where you are
running this? The reason I ask is because a quick test on my Linux box
did not put any vcal_opt parameter in the msl12.par file, as it should be.
That's why I'm wondering whether perhaps you have another definition
of $SEADAS in your .cshrc that might be getting picked up when you
run this. If not, what operating system are you using?
OK - I re-downloaded and reinstalled SeaDAS from scratch and I am still getting the same error. I don't think there are any other versions of SeaDAS on my system ... none that I can find anyway (I deleted the prior version before installing). I'm running SeaDAS under Linux RedHat 7.3. There were no error messages during the installation and when I start SeaDAS it says it is version 4.6.
Maybe it would help if you could tell me where and why and how the msl12.par file is created - this seems to be the part of the code that is causing me trouble.
Do you have any references to SeaDAS in your .cshrc or .bashrc file?
Yes I do have some references to seadas in my .cshrc file:
set path=($PATH /bin /usr/bin /usr/sbin/ /etc \
/usr2/local/rsi /usr2/local/rsi/idl_6.0/bin \
/usr2/local/seadas /usr2/local/seadas/bin \
setenv LM_LICENSE_FILE /usr2/local/rsi/license/license.dat
Anything look out of place?
I've just tested a fresh install of the RedHat 7.3 tar file, and could not duplicate
your problem. I would suggest commenting out the line in your .cshrc that
sources the config file and re-do your install from the point where you first
run the shell_cfg_csh script.
I tried commenting out the sources lines in my .cshrc, but still no change ... still the same msl12 error. Any other suggestions? I tried a 'which msl12' and it points to the correct file in the new installation... maybe I'll try installing Seadas to a completely different directory and see if that helps.
OK I deleted the last installation and installed 4.6 into a different directory ... however I'm still gettting the exact error.
I just reinstalled the previous version (4.5) and it is working properly ... that doesn't really help me, but it may be a clue to what is going on.
How old is the workstation that you are running this on?
We bought the workstation in late 2000. It is a Dell PowerEdge 4400 Dual P3 Xeon 866 MHz with 1Gb SDRAM.
That's probably not the problem then. How about mailing me your
script and let me try it? Send it to firstname.lastname@example.org.
I get the same problem when I first runned the msl12 within SEADAS4.6,
I removed the line
from the msl12.par file, then it worked well! :D