Changeset 9


Ignore:
Timestamp:
13/04/12 21:50:28 (8 years ago)
Author:
lalibert
Message:

Fixed a bug with BASH variables in includes filenames for ncap2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CDB/trunk/diags/pot_temperature.sh

    r1 r9  
    224224 
    225225    #FIND POTENTIAL TEMPERATURES: 
    226     ncap2 -S $CDB_SCRIPT_DIR/moisture/moisture_nco/out_both_theta_e_fusion.nco ${CDB_TEMP_DIR}/${CDB_TEMP_FILE}.full.pres_mod\ 
     226    #The .nco files contain variable path names. ncap2 does not yet handle these. First convert these bash variables to hard values: 
     227    sed -e "s|\$CDB_SCRIPT_DIR|"$CDB_SCRIPT_DIR"|g" $CDB_SCRIPT_DIR/moisture/moisture_nco/out_both_theta_e_fusion.nco > ${CDB_TEMP_DIR}/${CDB_TEMP_FILE}.out_both_theta_e_fusion.nco 
     228    ncap2 -S ${CDB_TEMP_DIR}/${CDB_TEMP_FILE}.out_both_theta_e_fusion.nco $CDB_SCRIPT_DIR/moisture/moisture_nco/out_both_theta_e_fusion.nco ${CDB_TEMP_DIR}/${CDB_TEMP_FILE}.full.pres_mod\ 
    227229                                                      ${CDB_TEMP_DIR}/${CDB_TEMP_FILE}.full.pt 
    228230    rm ${CDB_TEMP_DIR}/${CDB_TEMP_FILE}.full.pres_mod 
     231    rm ${CDB_TEMP_DIR}/${CDB_TEMP_FILE}.out_both_theta_e_fusion.nco 
    229232 
    230233done #MONTH 
Note: See TracChangeset for help on using the changeset viewer.