From b7e585ca9350d214cdf5cd7349a1254f2732e9b6 Mon Sep 17 00:00:00 2001 From: Philippe WAUTELET <philippe.wautelet@aero.obs-mip.fr> Date: Thu, 24 Nov 2016 13:02:28 +0100 Subject: [PATCH] Philippe 24/11/2016: lfi2cdf: nc4 files have again a .nc4 extension to be consistent with MESONH and the scripts --- LIBTOOLS/tools/lfi2cdf/src/mode_util.f90 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/LIBTOOLS/tools/lfi2cdf/src/mode_util.f90 b/LIBTOOLS/tools/lfi2cdf/src/mode_util.f90 index af0423a5a..46c92ce5b 100644 --- a/LIBTOOLS/tools/lfi2cdf/src/mode_util.f90 +++ b/LIBTOOLS/tools/lfi2cdf/src/mode_util.f90 @@ -1194,7 +1194,7 @@ END DO outfiles%files(idx)%format = NETCDF_FORMAT outfiles%files(idx)%status = WRITING IF (options(OPTCDF4)%set) THEN - status = NF90_CREATE(TRIM(houtfile)//'.nc', IOR(NF90_CLOBBER,NF90_NETCDF4), outfiles%files(idx)%lun_id) + status = NF90_CREATE(TRIM(houtfile)//'.nc4', IOR(NF90_CLOBBER,NF90_NETCDF4), outfiles%files(idx)%lun_id) ELSE status = NF90_CREATE(TRIM(houtfile)//'.nc', IOR(NF90_CLOBBER,NF90_64BIT_OFFSET), outfiles%files(idx)%lun_id) END IF @@ -1345,13 +1345,12 @@ END DO outfiles%files(idx)%var_id = ji IF (options(OPTCDF4)%set) THEN - filename = trim(houtfile)//'.'//trim(tpreclist(ji)%name)//'.nc' + filename = trim(houtfile)//'.'//trim(tpreclist(ji)%name)//'.nc4' status = NF90_CREATE(trim(filename), IOR(NF90_CLOBBER,NF90_NETCDF4), outfiles%files(idx)%lun_id) ELSE filename = trim(houtfile)//'.'//trim(tpreclist(ji)%name)//'.nc' status = NF90_CREATE(trim(filename), IOR(NF90_CLOBBER,NF90_64BIT_OFFSET), outfiles%files(idx)%lun_id) END IF - IF (status /= NF90_NOERR) CALL HANDLE_ERR(status,__LINE__) status = NF90_SET_FILL(outfiles%files(idx)%lun_id,NF90_NOFILL,omode) -- GitLab