Changeset 10


Ignore:
Timestamp:
13/04/12 22:58:25 (8 years ago)
Author:
lalibert
Message:

Fixed the ncap2 bug with pot_temperature.sh

Location:
CDB/trunk
Files:
7 edited

Legend:

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

    r9 r10  
    224224 
    225225    #FIND POTENTIAL TEMPERATURES: 
    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\ 
    229                                                       ${CDB_TEMP_DIR}/${CDB_TEMP_FILE}.full.pt 
     226    cd $CDB_SCRIPT_DIR/moisture/moisture_nco 
     227    ncap2 -S out_both_theta_e_fusion.nco ${CDB_TEMP_DIR}/${CDB_TEMP_FILE}.full.pres_mod\ 
     228                                         ${CDB_TEMP_DIR}/${CDB_TEMP_FILE}.full.pt 
    230229    rm ${CDB_TEMP_DIR}/${CDB_TEMP_FILE}.full.pres_mod 
    231     rm ${CDB_TEMP_DIR}/${CDB_TEMP_FILE}.out_both_theta_e_fusion.nco 
    232230 
    233231done #MONTH 
  • CDB/trunk/scripts/moisture/moisture_nco/clausius_fusion.nco

    r1 r10  
    1010 
    1111//Find the liquid vapor pressure 
    12 #include "$CDB_SCRIPT_DIR/moisture/moisture_nco/clausius_l.nco" 
     12#include "clausius_l.nco" 
    1313//Find the ice vapor pressure 
    14 #include "$CDB_SCRIPT_DIR/moisture/moisture_nco/clausius_i.nco" 
     14#include "clausius_i.nco" 
    1515 
    1616*ES = ESL; 
  • CDB/trunk/scripts/moisture/moisture_nco/latent_heat.nco

    r1 r10  
    33 
    44//Clausius-Clapeyron 
    5 #include "$CDB_SCRIPT_DIR/moisture/moisture_nco/clausius.nco" 
     5#include "clausius.nco" 
    66T=T-1e-2; 
    77 
  • CDB/trunk/scripts/moisture/moisture_nco/latent_heat_fusion.nco

    r1 r10  
    99 
    1010//Clausius-Clapeyron 
    11 #include "$CDB_SCRIPT_DIR/moisture/moisture_nco/clausius_fusion.nco" 
     11#include "clausius_fusion.nco" 
    1212TEMP=TEMP-1e-2; 
    1313 
  • CDB/trunk/scripts/moisture/moisture_nco/out_both_theta_e.nco

    r1 r10  
    1111 
    1212//Moisture parameters 
    13 #include "$CDB_SCRIPT_DIR/moisture/moisture_nco/moist_params.nco" 
     13#include "moist_params.nco" 
    1414 
    1515//Clausius-Clapeyron 
    16 #include "$CDB_SCRIPT_DIR/moisture/moisture_nco/clausius.nco" 
     16#include "clausius.nco" 
    1717 
    1818//Latent Heat 
    19 #include "$CDB_SCRIPT_DIR/moisture/moisture_nco/latent_heat.nco" 
     19#include "latent_heat.nco" 
    2020 
    2121//Find the specific water vapor 
    22 #include "$CDB_SCRIPT_DIR/moisture/moisture_nco/specific_water_vapor.nco" 
     22#include "specific_water_vapor.nco" 
    2323 
    2424//Find the water vapor pressure and relative humidity 
    25 #include "$CDB_SCRIPT_DIR/moisture/moisture_nco/wv_pres_and_rh.nco" 
     25#include "wv_pres_and_rh.nco" 
    2626 
    2727//Find the specific liquid water 
    28 #include "$CDB_SCRIPT_DIR/moisture/moisture_nco/specific_liquid_water.nco" 
     28#include "specific_liquid_water.nco" 
    2929 
    3030//Compute the moist entropy 
    31 #include "$CDB_SCRIPT_DIR/moisture/moisture_nco/moist_entropy.nco" 
     31#include "moist_entropy.nco" 
    3232 
    3333//Compute the equivalent potential temperature 
    34 #include "$CDB_SCRIPT_DIR/moisture/moisture_nco/theta_e.nco" 
     34#include "theta_e.nco" 
    3535 
    3636//Compute the liquid entropy 
    37 #include "$CDB_SCRIPT_DIR/moisture/moisture_nco/liquid_entropy.nco" 
     37#include "liquid_entropy.nco" 
    3838 
    3939//Compute the liquid potential temperature 
    40 #include "$CDB_SCRIPT_DIR/moisture/moisture_nco/theta_l.nco" 
     40#include "theta_l.nco" 
    4141 
    4242//Output the entropy 
  • CDB/trunk/scripts/moisture/moisture_nco/out_both_theta_e_approx.nco

    r1 r10  
    55 
    66//Moisture parameters 
    7 #include "$CDB_SCRIPT_DIR/moisture/moisture_nco/moist_params.nco" 
     7#include "moist_params.nco" 
    88 
    99LPT=T/((PRES/PMS_P0)^PMS_KAPPA); 
  • CDB/trunk/scripts/moisture/moisture_nco/out_both_theta_e_fusion.nco

    r1 r10  
    1111 
    1212//Moisture parameters 
    13 #include "$CDB_SCRIPT_DIR/moisture/moisture_nco/moist_params.nco" 
     13#include "moist_params.nco" 
    1414 
    1515*TEMP=T; 
    1616 
    1717//Clausius-Clapeyron 
    18 #include "$CDB_SCRIPT_DIR/moisture/moisture_nco/clausius_fusion.nco" 
     18#include "clausius_fusion.nco" 
    1919 
    2020//Latent heat 
    21 #include "$CDB_SCRIPT_DIR/moisture/moisture_nco/latent_heat_fusion.nco" 
     21#include "latent_heat_fusion.nco" 
    2222 
    2323//Find the specific water vapor 
    24 #include "$CDB_SCRIPT_DIR/moisture/moisture_nco/specific_water_vapor.nco" 
     24#include "specific_water_vapor.nco" 
    2525//Find the water vapor pressure and relative humidity 
    26 #include "$CDB_SCRIPT_DIR/moisture/moisture_nco/wv_pres_and_rh.nco" 
     26#include "wv_pres_and_rh.nco" 
    2727 
    2828//Find the specific liquid water 
    29 #include "$CDB_SCRIPT_DIR/moisture/moisture_nco/specific_liquid_water.nco" 
     29#include "specific_liquid_water.nco" 
    3030 
    3131//Compute the entropy 
    32 #include "$CDB_SCRIPT_DIR/moisture/moisture_nco/moist_entropy.nco" 
     32#include "moist_entropy.nco" 
    3333 
    3434//Compute the equivalent potential temperature 
    35 #include "$CDB_SCRIPT_DIR/moisture/moisture_nco/theta_e.nco" 
     35#include "theta_e.nco" 
    3636 
    3737//Compute the liquid entropy 
    38 #include "$CDB_SCRIPT_DIR/moisture/moisture_nco/liquid_entropy.nco" 
     38#include "liquid_entropy.nco" 
    3939  
    4040//Compute the liquid potential temperature 
    41 #include "$CDB_SCRIPT_DIR/moisture/moisture_nco/theta_l.nco" 
     41#include "theta_l.nco" 
    4242 
    4343//Output the entropy 
Note: See TracChangeset for help on using the changeset viewer.