!!! open one h8-file for geolocation extraction geoh8="useful.h8/NC_H08_20150704_0820_FLDK.RealNC.nc"!!非常普通的一个H8文件而已 iopen=nf_open(trim(adjustl(geoh8)),nf_nowrite,ncid) !打开netcdf文件,获取文件的ID号(ncid) if (iopen .ne. 0) then print*,"H8-Geolocation extraction: invalid H8 file, open failure!" stop endif ioquire=nf_inq_varid (ncid, 'latitude', latid) ioquire=ioquire+nf_inq_varid (ncid, 'longitude', lonid) if (ioquire .ne. 0) then print*,"H8-Geolocation extraction: variable not found in H8 file!" stop endif iovar=nf_get_var_real(ncid,latid,latitude) iovar=iovar+nf_get_var_real(ncid,lonid,longitude) if (iovar .ne. 0) then print*,"H8-Geolocation extraction: variable extract failed!" stop endif iopen=nf_close(ncid) end