[Thread Prev][Thread Next][Index]

Namelist record problems on IBM RS/6000



Hi,

please excuse me if this topic is already known to the
ferret community, but I'm quite new and don't know what
has happend in this group before.

I have just copied FERRET Version 4.12 for IBM RS/6000,
all files are from abyss.pmel.noaa.gov:/pub/ibm_aix

Installation was very easy, but during the tutorial
( GO tutorial ) there were problems with the description
files:

ME> source /usr/local/lib/ferret_paths 
appending ferret path
ME> ferret
        NOAA/PMEL TMAP
        Program FERRET (no GUI)
        Version 4.12 - 01/03/96
        16-Feb-96 13:16   

yes? SET DATA etopo120.des
 **TMAP ERR: Error in namelist record
             Didn't find: FORMAT_RECORD; or file not descriptor file
             Data set: /usr/local/ferret/fer_dsets/descr/etopo120.des
yes? 
 

The problem remains for all fer_dsets/descr/*.des. 

The solution was to change all description files (fer_dsets/descr/*.des)
to Fortran-90 NAMELIST standard, i.e. records begin with
&RECORD_NAME   (instead of $RECORD_NAME)
and end with
/              (instead of $END)



The following small script should do the changes:

#!/bin/sh
for filename in `ls *.des`
do
  if [ -f $filename.1 ]
     then
     echo "$filename.1 exists ! Overwrite ? (y/n)"
     read answer
     if [ "$answer" = "y" -o "$answer" = "Y" ]
        then
        /bin/mv -i $filename $filename.orig
        sed -e 's/\$END/\//g' $filename.orig > $filename.1
        sed -e 's/\$/\&/g' $filename.1 > $filename
        /bin/rm $filename.1
        echo "$filename changed"
        else
        echo "Skipping $filename"
     fi
     else
     /bin/mv -i $filename $filename.orig
     sed -e 's/\$END/\//g' $filename.orig > $filename.1
     sed -e 's/\$/\&/g' $filename.1 > $filename
     /bin/rm $filename.1
     echo "$filename changed"
  fi
done



Andreas.


-- 
*****************************************************************************
* Dr. Andreas Manschke              | E-Mail: anma@palmod.uni-bremen.de     *
* Universitaet Bremen               | http://www.palmod.uni-bremen.de/~anma *
* Fachbereich 5 - Geowissenschaften | Tel: +49 (0)421 218 7190              *
* Postfach 33 04 40                 | Fax: +49 (0)421 218 7040              *
* D-28334 Bremen                    |                                       *
* Germany                           |                                       *
*****************************************************************************



[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / ERL / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement