[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20000911: ldm-mcidas png2area decoder



>From: Michael Voss <address@hidden>
>Organization: SJSU
>Keywords: 200009112351.e8BNpwb26866 ldm-mcidas

Mike,

>I was trying to get the png2area decoder working and I'm having some trouble. 

OK.

>Basically, in pqact.conf, I replaced:
>
>#MCIDAS ^(LWTOA3 .*)
>#       PIPE
>#       -close /usr/local/ldm/ldm-mcidas/ldm-mcidas-7.6.1/bin/lwtoa3 -d /data3
> /mcidas
>#       -l /usr/local/ldm/logs/mcidas.log -xv
>
>with:
>
>MCIDAS  ^pnga2area Q. (..) (....) (.*) (.*) (.*) (........) (....)
>        PIPE    -close  /usr/local/ldm/ldm-mcidas/ldm-mcidas-7.6.4/bin/png2are
> a
>        -d /data3/mcidas -r \1,\2
>

This looks correct IF you have McIDAS-X installed under /home/mcidas.  If
you don't, you have to tell pnga2area where to find two supporting files
that it needs: SATANNOT and SATBAND.  These files can be found in the
~mcidas/data directory for McIDAS-X users and the etc directory of the
ldm-mcidas distribution for non-McIDAS users.

>Here is the start of my ldmd.log file:
>
>vortex:~/logs>more ldmd.log
>Sep 11 23:28:14 vortex rpc.ldmd[23965]: Starting Up (built: Jan  4 2000 08:58:
> 52)
>Sep 11 23:28:14 vortex pqexpire[23966]: Starting Up
 ...
>Sep 11 23:31:38 vortex pqact[23970]: pbuf_flush (12) write: Broken pipe
>Sep 11 23:31:38 vortex pqact[23970]: pipe_dbufput: -close/usr/local/ldm/ldm-mc
> idas/ldm-mcidas-7.6.4/
>bin/png2area-d/data3/mcidas-rCB,1
>Sep 11 23:31:38 vortex pqact[23970]: pipe_prodput: trying again
>Sep 11 23:31:38 vortex pqact[23970]: pbuf_flush (12) write: Broken pipe
>Sep 11 23:31:38 vortex pqact[23970]: pipe_dbufput: -close/usr/local/ldm/ldm-mc
> idas/ldm-mcidas-7.6.4/
>bin/png2area-d/data3/mcidas-rCB,1
>Sep 11 23:31:38 vortex pqact[23970]: child 24068 exited with status 127
>Sep 11 23:31:38 vortex pqact[23970]: child 24066 exited with status 127
 ...

All this is telling us is that the pnga2area invocation (if that is really
what this output relates to) is exiting before the LDM has passed it a
complete product.

>So, before I go any further, I thought I would ask if I'm missing something
>obvious?

No, unless your ~mcidas is not /home/mcidas.  For instance, if ~mcidas
is /usr/local/mcidas, your pqact.conf entry would look like:

MCIDAS  ^pnga2area Q. (..) (....) (.*) (.*) (.*) (........) (....)
        PIPE    -close  /usr/local/ldm/ldm-mcidas/ldm-mcidas-7.6.4/bin/png2area
        -a /usr/local/mcidas/data/SATANNOT -b /usr/local/mcidas/data/SATBAND
        -d /data3/mcidas -r \1,\2

Better yet:

MCIDAS  ^pnga2area Q. (..) (....) (.*) (.*) (.*) (........) (....)
        PIPE    -close
        /usr/local/ldm/ldm-mcidas/ldm-mcidas-7.6.4/bin/png2area
        -a /usr/local/mcidas/data/SATANNOT -b /usr/local/mcidas/data/SATBAND
        -d /data3/mcidas -r \1,\2

Or even better yet,

o create a ~ldm/decoders directory
o put this directory into the PATH of 'ldm'; for C shell users this would be
  done in .cshrc:

  setenv PATH ~ldm/decoders:$PATH

o copy the ldm-mcidas decoders you use into ~ldm/decoders
o source .cshrc
o make sure that the ldm-mcidas decoders are executable:

  which pnga2area
  cd ~ldm/decoders
  ldd pnga2area

o stop and restart your LDM (after sourcing .cshrc!!!!!)

o then use:

MCIDAS  ^pnga2area Q. (..) (....) (.*) (.*) (.*) (........) (....)
        PIPE    -close
        png2area
        -a /usr/local/mcidas/data/SATANNOT -b /usr/local/mcidas/data/SATBAND
        -d /data3/mcidas -r \1,\2

o if you have done away with your McIDAS-X installation, then copy the
  versions of SATANNOT and SATBAND from the etc directory of the ldm-mcidas
  distribution to the ~ldm/etc directory and use:


MCIDAS  ^pnga2area Q. (..) (....) (.*) (.*) (.*) (........) (....)
        PIPE    -close
        png2area
        -a /usr/local/ldm/etc/SATANNOT -b /usr/local/ldm/etc/SATBAND
        -d /data3/mcidas -r \1,\2


>Thanks!

Let me know if none of the above works.

Tom