Vprm Mod
#!/bin/bash -x
wd=`echo $PWD`
cd $wd

# cdo splitsel,1,6072,6074  VPRM_ECMWF_2007.nc vprm_

cdo seltimestep,6072,6073,6074,6075,6076,6077,6078,6079,6080,6081,6082,6083,6084,6085,6086,6087,6088,6089,6090,6091,6092,6093,6094,6095 VPRM_ECMWF_2007.nc sept10.nc

ncrename -v NEE,CO2_B_E sept10.nc
cdo splitsel,1 sept10.nc vprm20070910
echo "`ls vprm*`" | while read file; 
    do
    target=`echo "$file" | sed -r -e 's/0000//g'`;
    echo "Renaming '$file' to '$target'";
    mv "$file" "$target";
    done;
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License