Changes between Version 170 and Version 171 of IPSLCM6/IPSL-CM6A-LR


Ignore:
Timestamp:
06/29/18 12:15:53 (6 years ago)
Author:
glipsl
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • IPSLCM6/IPSL-CM6A-LR

    v170 v171  
    291291for file in $(find $SIMULATION -type f -name "*.nc"); do 
    292292    if ncdump -h ${file} | grep -q "float nav_lat(y, x) ;" && ncdump -h ${file} | grep -q "float nav_lon(y, x) ;" && ncdump -h ${file} | grep -q "float area(y, x) ;"; then 
    293         echo "Process: ${file}" 
    294         ncatted -O -a coordinates,area,o,c,"nav_lon nav_lat" in.nc 
     293        if  ncdump -h ${file} | grep -v -q "area:coordinates = "; then 
     294            echo "Process: ${file}" 
     295            ncatted -O -a coordinates,area,o,c,"nav_lon nav_lat" in.nc 
     296        fi 
    295297    fi 
    296298done