Ignore:
Timestamp:
Mar 30, 2010 2:04:38 PM (12 years ago)
Author:
heinze
Message:

Adjustment of the NCL scripts and palmplot to allow for the use of special characters in NetCDF variable names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/palmplot

    r513 r526  
    77    # Last changes
    88    # 16/03/10 - Rieke - initial revision
     9    # 30/03/10 - Rieke - substituting double quotes (") with a character
     10    #                    variable (dq) containing double quotes
    911
    1012
     
    101103    fi
    102104     
    103     # SETTING STRINGS IN QUOTATION MARKS - REQUIRED BY NCL
     105    # PROCESSING STRINGS
    104106    for a in $STRINGPARAMS
    105107    do
    106108      if [ "$key" = "$a" ]
    107109      then
     110         # SUBSTITUTING DOUBLE QUOTES - REQUIRED BY NCL
     111         value=`echo $value | sed 's/\"/\"+dq+\"/g'`
     112         # SETTING ENTIRE STRING IN DOUBLE QUOTES - REQUIRED BY NCL
    108113         value=\"$value\"
    109114         break
     
    117122 # EXECUTING THE PARTICULAR NCL SCRIPT
    118123 cd $PALM_BIN/NCL
    119  ncl $script $CMDLINE
     124 ncl 'dq=str_get_dq()' $script $CMDLINE
    120125
    121126
Note: See TracChangeset for help on using the changeset viewer.