Ocean Color Forum - Not logged in
Forum Ocean Color Home Help Search Login
Previous Next Up Topic SeaDAS / SeaDAS 6.x - General Questions / Location of the LUTS (locked) (1352 hits)
By ndungu Date 2012-04-28 13:00
Am trying to run an idl script but am encoutering a problem with the location of the LUTS. I wanted to use the 02-standard_chl. lut but the program indicates that the file is not found. Has anyone encountered a similar problem? If so give me the link to the solution.

Idl script is:

  load, 'final_smi.hdf'
  display, smin=0.00, smax=32.0, stype='LOG'
  loadpal, '$HOME/seadas/seadas/config/color_luts/standard/02-standard_chl.lut'
  loadgp, color=1, red=61, green=43, blue=25
  loadgp, color=2, red=137, green=114, blue=48
  landmask, color=1
  coast,color=3,/rivers  &  coast,color=2,/coasts  &  grid,grdcol=7
  tvlct,r,g,b,/get
  r[195]=0  &  g[195]=0  &  b[195]=0
  tvlct,r,g,b
  out, 'final_smi.png', /cbar

Error is:

seadas@seadas-vm:~/looping/binning2$ seadas -b idl_smi_batch.txt
IDL Version 7.0 (linux x86 m32). (c) 2007, ITT Visual Information Solutions

% Embedded IDL: NASA GSFC SeaDAS Development, SeaDAS.
% Embedded IDL: NASA GSFC SeaDAS Development, SeaDAS.
SeaDAS Version 6.3 (pid = 28627)
Detected MODIS ftype.
SDP_FB_INIT : Scale minimum must be GE 0.0 for log scaling. Changed to 0.01
READPAL_IDL:
Color name "$HOME/seadas/seadas/config/color_luts/standard/02-standard_chl.lut" not found in file /disk01/seadas/seadas/idl_rt/resource/colors/colors1.tbl.
LOADPAL: Error loading color palette.
SDS_PAUTOVEC:  WARNING:  INCR greater than data range.
    Increment:  2.00000      Data Range: 0.477552
    Setting output vector to data range.
SDS_PAUTOVEC:  WARNING:  INCR greater than data range.
    Increment:  2.00000      Data Range: 0.361000
    Setting output vector to data range.
% Array dimensions must be greater than 0.
[MAIN]: Error executing the command: out, 'final_smi.png', /cbar
MAIN: Error executing command in batch file
seadas@seadas-vm:~/looping/binning2$

Please help
By @sean Date 2012-04-28 18:13
Have you checked to see if the path to the lut is correct?  $HOME/seadas/seadas/config/color_luts/standard/02-standard_chl.lut seems suspicious.
You may try $SEADAS/config/color_luts/standard/02-standard_chl.lut

Sean
By ndungu Date 2012-04-29 00:41 Edited 2012-04-29 15:27
Dear Sean,
Thanks so much for your reply.

I tried replacing it with your suggestion but I still get the same error..

Color name "$SEADAS/config/color_luts/standard/standard/02-standard_chl.lut" not found in file /disk01/seadas/seadas/idl_rt/resource/colors/colors1.tbl.

should it be in idl_rt/reource/colors/colors1.tbl too?

Please help
By @sean Date 2012-04-29 18:12
The color palettes distributed with SeaDAS are located under the SeaDAS root directory
(the environment variable $SEADAS points to this directory) in the config/color_luts
subdirectory.  If loadpal does not find the file specified, it tries to find it under the idl
resources tree.  So, the path is still not correct.  

what does the following (entered on a command line) return?
ls $SEADAS/config/color_luts/standard/

BTW, it might be as simple as entering only 1 'standard' subdirectory.  The line suggests you have 2:
$SEADAS/config/color_luts/standard/standard/02-standard_chl.lut

Sean
By ndungu Date 2012-05-02 08:54
Dear Sean,

Thanks so much Sean. The file can now be located but I get an error in the increment range. when I check the default setting I see that the default is 1 but my scripts shows 2. where can I change these setting?

DL Version 7.0 (linux x86 m32). (c) 2007, ITT Visual Information Solutions

% Embedded IDL: NASA GSFC SeaDAS Development, SeaDAS.
% Embedded IDL: NASA GSFC SeaDAS Development, SeaDAS.
SeaDAS Version 6.3 (pid = 28072)
Detected MODIS ftype.
SDS_PAUTOVEC:  WARNING:  INCR greater than data range.
    Increment:  2.00000      Data Range: 0.477552
    Setting output vector to data range.
SDS_PAUTOVEC:  WARNING:  INCR greater than data range.
    Increment:  2.00000      Data Range: 0.361000
    Setting output vector to data range.
% Array dimensions must be greater than 0.
[MAIN]: Error executing the command: out, 'final_smi.png', /cbar
MAIN: Error executing command in batch file
seadas@seadas-vm:~/looping/binning2$

Jane
By @sean Date 2012-05-02 15:36
Jane,

I *think* the issue may be with the colorbar.
Try adding an explicit color bar setting prior to the out command, where you define the increment.

Sean
Previous Next Up Topic SeaDAS / SeaDAS 6.x - General Questions / Location of the LUTS (locked) (1352 hits)



Responsible NASA Official: Gene C. Feldman
Curator: OceanColor Webmaster
Authorized by: Gene C. Feldman
Updated: 27 November 2007
Privacy Policy and Important Notices NASA logo