status = NF90_INQ_DIMID(fidA,"time",dimID_TIME) call erreur(status,.TRUE.,"inq_dimID_TIME") status = NF90_INQ_DIMID(fidA,"y",dimID_LAT) call erreur(status,.TRUE.,"inq_dimID_LAT") status = NF90_INQ_DIMID(fidA,"x",dimID_LON) call erreur(status,.TRUE.,"inq_dimID_LON"...
获取维度大小:使用nf_inq_dimlen函数获取每个维度的大小。根据维度ID和变量ID,使用循环遍历每个维度,并使用nf_inq_dimlen获取其大小。 分配数组内存:根据获取的维度大小,使用allocate函数为数组分配内存。根据维度数量,可以使用一维、二维或多维数组。 读取数据:使用nf_get_var函数将Netcdf文件中的数据读取到分配的...
ierr=nf_inq_varid (ncid1, 'harvest.end', varid1) !open 'harvest.end',get ID number ierr...
/usr/local/lib/libnetcdff.a(fort-dim.o): In function `nf_def_dim_': fort-dim.c:(.text+0x6f): undefined reference to `nc_def_dim' /usr/local/lib/libnetcdff.a(fort-dim.o): In function `nf_inq_dimid_': fort-dim.c:(.text+0x193): undefined reference to `nc_in...
status=nf90_open(trim(filename),nf90_nowrite,ncid) write(*,*) status !检查文件是否打开,status返回值=0时,证明文件打开正确 !get the id of variables status=nf90_inq_varid(ncid,'lon',varid1) status=nf90_inq_varid(ncid,'lat',varid2) ...
ies-io.obj : error LNK2001: unresolved external symbol _NF_INQ_DIMID@16 ies-io.obj : error ...
Moved netCDF-4 F90 API tests to new subdirectory nf03_test4. Fixed bug which caused parallel I/O tests to not be run. See#155and#157. Fixed bug in the setting of file cache preemption for netCDF-4 files. See#146. Removed many near-duplicate tests files, now they are created at ...
Open netCDF file !::: CALL check(nf90_open(infile, nf90_nowrite, ncid)) !Get the values of the coordinates and put them in xpos ypos !::: CALL check(nf90_inquire_variable(ncid,1,vname,xtype,ndims,dimids)) CALL check(nf90_inq_varid(ncid,vname,varid)) CALL check(nf90_ge...
利用fortran创建、读取、写netCDF(.nc)的教程 Introduction to using the netCDF data format with Fortran 90 Michael Thorne (michael.thorne@utah.edu)Last Updated: July 20, 2010 I. Introduction NetCDF – Net work C ommon D ata F orm NetCDF is an array based data structure for storing ...
I am trying to compile netcdf-fortran-4.5.3 with AOCC 3.1.0 which is based on LLVM clang. I've successfully compiled hdf5-1.12.1, openmpi-4.1.1 and netcdf-c-4.8.1 with AOCC without any problem. AOCC location and all other dependencies (u...