利用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 ...
利用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 ...
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_get...
CHARACTER(len=20)::var_name res = nf90_inquire(fid, nVariables=nvars) PRINT *,"所有变量:" DO varid=1, nVars res= nf90_inquire_variable(fid,varid,name=var_name) print *, varid,". ",var_name END DO END SUBROUTINE 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2...