Skip to content
Snippets Groups Projects
Commit b7e585ca authored by WAUTELET Philippe's avatar WAUTELET Philippe
Browse files

Philippe 24/11/2016: lfi2cdf: nc4 files have again a .nc4 extension to be...

Philippe 24/11/2016: lfi2cdf: nc4 files have again a .nc4 extension to be consistent with MESONH and the scripts
parent 6cf09f89
No related branches found
No related tags found
No related merge requests found
...@@ -1194,7 +1194,7 @@ END DO ...@@ -1194,7 +1194,7 @@ END DO
outfiles%files(idx)%format = NETCDF_FORMAT outfiles%files(idx)%format = NETCDF_FORMAT
outfiles%files(idx)%status = WRITING outfiles%files(idx)%status = WRITING
IF (options(OPTCDF4)%set) THEN 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 ELSE
status = NF90_CREATE(TRIM(houtfile)//'.nc', IOR(NF90_CLOBBER,NF90_64BIT_OFFSET), outfiles%files(idx)%lun_id) status = NF90_CREATE(TRIM(houtfile)//'.nc', IOR(NF90_CLOBBER,NF90_64BIT_OFFSET), outfiles%files(idx)%lun_id)
END IF END IF
...@@ -1345,13 +1345,12 @@ END DO ...@@ -1345,13 +1345,12 @@ END DO
outfiles%files(idx)%var_id = ji outfiles%files(idx)%var_id = ji
IF (options(OPTCDF4)%set) THEN 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) status = NF90_CREATE(trim(filename), IOR(NF90_CLOBBER,NF90_NETCDF4), outfiles%files(idx)%lun_id)
ELSE ELSE
filename = trim(houtfile)//'.'//trim(tpreclist(ji)%name)//'.nc' filename = trim(houtfile)//'.'//trim(tpreclist(ji)%name)//'.nc'
status = NF90_CREATE(trim(filename), IOR(NF90_CLOBBER,NF90_64BIT_OFFSET), outfiles%files(idx)%lun_id) status = NF90_CREATE(trim(filename), IOR(NF90_CLOBBER,NF90_64BIT_OFFSET), outfiles%files(idx)%lun_id)
END IF END IF
IF (status /= NF90_NOERR) CALL HANDLE_ERR(status,__LINE__) IF (status /= NF90_NOERR) CALL HANDLE_ERR(status,__LINE__)
status = NF90_SET_FILL(outfiles%files(idx)%lun_id,NF90_NOFILL,omode) status = NF90_SET_FILL(outfiles%files(idx)%lun_id,NF90_NOFILL,omode)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment