Skip to content
Snippets Groups Projects
Commit 9e3c559f authored by Gaelle Tanguy's avatar Gaelle Tanguy Committed by WAUTELET Philippe
Browse files

Gaelle 25/3/2015 : bug lecture netcdf

parent 019958a0
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,8 @@ if (status/=NF_NOERR) CALL HANDLE_ERR_CDF(status,HACTION)
! &'has a length of',NVARDIMLEN(NDIMS)
!
HACTION='get attributs'
status=nf_inq_natts(KCDF_ID,NGATTS)
!status=nf_inq_natts(KCDF_ID,NGATTS)
status=nf_inq_varnatts(KCDF_ID,IDVAR,NGATTS)
if (status/=NF_NOERR) CALL HANDLE_ERR_CDF(status,HACTION)
!write(0,*) 'number of attributes = ',NGATTS
allocate(hname(1:NGATTS))
......@@ -168,7 +169,8 @@ status=nf_inq_vardimid(KCDF_ID,IDVAR,NVARDIMID)
if (status/=NF_NOERR) CALL HANDLE_ERR_CDF(status,HACTION)
!
HACTION='get attributs'
status=nf_inq_natts(KCDF_ID,NGATTS)
!status=nf_inq_natts(KCDF_ID,NGATTS)
status=nf_inq_varnatts(KCDF_ID,IDVAR,NGATTS)
if (status/=NF_NOERR) CALL HANDLE_ERR_CDF(status,HACTION)
!write(0,*) 'number of attributes = ',NGATTS
allocate(hname(1:NGATTS))
......@@ -439,11 +441,9 @@ include 'netcdf.inc'
IF (LHOOK) CALL DR_HOOK('MODE_READ_CDF:READ_DIM_CDF',0,ZHOOK_HANDLE)
HACTION='open netcdf'
status=NF_OPEN(HFILENAME,nf_nowrite,kcdf_id)
!write(0,*) 'identifiant de ',HFILENAME,'=',kcdf_id
if (status/=NF_NOERR) then
CALL HANDLE_ERR_CDF(status,HACTION)
!else
! write(0,*) 'netcdf file opened: ',HFILENAME
endif
!
!-----------
......
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