Recipe: Fortran program as OPeNDAP client: Difference between revisions

Pchakrab (talk | contribs)
Pchakrab (talk | contribs)
Line 196: Line 196:
The three (3) differences are
The three (3) differences are
# <code>T_file</code>: instead of reading a downloaded NetCDF-4 file, we read an OPeNDAP URL.
# <code>T_file</code>: instead of reading a downloaded NetCDF-4 file, we read an OPeNDAP URL.
# <code>start</code>:  
# <code>start</code>: via the OPeNDAP URL, we can now access all time levels. The hourly <code>inst</code> files are available starting at 2005/15/15:2200z. Our desired time, 2006/09/18:0900z is then the 11772<sup>th</sup> file.
Via the OPeNDAP URL, we can now access all time levels. The hourly <code>inst</code> files are available starting at 2005/15/15:2200z. Our desired time, 2006/09/18:0900z is then the 11772th file.
# <code>nf90_inq_varid</code>
# <code>nf90_inq_varid</code>


==== Compile and run ====
==== Compile and run ====