Recipe: Fortran program as OPeNDAP client: Difference between revisions

Pchakrab (talk | contribs)
No edit summary
Pchakrab (talk | contribs)
Line 13: Line 13:
== Program to read downloaded nc4 file ==
== Program to read downloaded nc4 file ==


To read a downloaded file in Fortran we need a NetCDF-4 library that has been configured with HDF5 support. Availability of HDF5 support can be checked using the <code>nc-config</code> tool included in the NetCDF-4 package.
Download the collection inst01hr_3d_T_Cv for 2006-Sep-18/0900z as described [[G5NR Data Access Guide#ftp (global data)|here]]. The downloaded file is <code>c1440_NR.inst01hr_3d_T_Cv.20060918_0900z.nc4</code>. The program to read this file is
<code>
> nc-config  --has-hdf5
</code>
should return the value <code>yes</code>.
 
For this example, we first download the collection inst01hr_3d_T_Cv for 2006-Sep-18/0900z as described [[G5NR Data Access Guide#ftp (global data)|here]]. The downloaded file is <code>c1440_NR.inst01hr_3d_T_Cv.20060918_0900z.nc4</code>. The program to read this file is


  <nowiki>
  <nowiki>