Index of /examples/code/h5cf/netcdf

[ICO]NameLast modifiedSizeDescription

[DIR]Parent Directory  -
[DIR]c/02-Jun-2017 10:49 -
[DIR]fortran/02-Jun-2017 10:49 -


                netcdf4
    Uses version netcdf-4.1.2 or later


netcdf_ex1.c: 
    Uses netcdf4 to create a file with 3 variables: lat, lon, temp. Lat represents 
    latitude as a 1-D array of 180 floating-point numbers from -90 to 90. It contains 
    the CF attributes: units, long_name. Lon is a variable that 
    represents longitude as a 1-D array of 360 floating-point numbers from -180 - 180.  
    It contains the same CF attributes as the latitude variable. 
    Temp is a variable that represents temperature as a 2-D array of floating-point 
    numbers. It contains the CF attributes: units, long_name, _FillValue, coordinates.
    Data is written to netcdf_ex1.nc.

netcdf_ex1.f90:
    Same as netcdf_ex1.c, but written in FORTRAN90


                COMPILING INSTRUCTIONS

make netcdf-c: compiles netcdf_ex1.c into the executable netcdf-c

make netcdf-f: compiles netcdf_ex1.f90 into the executable netcdf-f

make all: compiles both netcdf_ex1.c and netcdf_ex1.f90

make clean: removes netcdf-f and netcdf-c