NetCDF:
NetCDF
(network Common Data Form) is a file format for storing
multidimensional scientific data (variables) such as temperature,
humidity, pressure, wind speed, and direction. Each of these
variables can be displayed through a dimension (such as time) in
ArcGIS by making a layer or table view from the netCDF file.
It
provides Java and C/C++/Fortran code.
1.
First Download the netCDF latest version from below link
https://www.unidata.ucar.edu/downloads/netcdf/index.jsp
2.
suppose netCDF downloaded in Home Directory
3.
Go to Home, using below command
$cd
home
$cd
netCDF
4.
After enter into the netCDF, then run this below commands
$
./configure
it
will create an error, shown in below
Error:1
checking
for m4... no
configure:
error: Cannot find m4 utility. Install m4 and try again.
if
it occur then download the latest m4 file form the below website:
http://ftp.gnu.org/gnu/m4/
Then
run ./configure command once again.
or
else directly install m4 using below command
sudo
apt install m4
Error:2
checking
for library containing deflate... no
configure:
error: Can't find or link to the z library. Turn off netCDF-4 and
opendap with --disable-netcdf-4 --disable-dap, or see config.log for
errors.
To
rectify the above error use below command
sudo
./configure --disable-netcdf-4 --disable-dap
$
sudo make
$
sudo make install
This
the the output:
Congratulations!
You have successfully installed netCDF! |
|
|
|
You can use script "nc-config" to find out the relevant
|
|
compiler options to build your application. Enter |
|
|
|
nc-config --help |
|
|
|
for additional information. |
|
|
|
CAUTION: |
|
|
|
If you have not already run "make check", then we strongly
|
|
recommend you do so. It does not take very long. |
|
|
|
Before using netCDF to store important data, test your |
|
build with "make check".
|
|
|
|
NetCDF is tested nightly on many platforms at Unidata |
|
but your platform is probably different in some ways. |
|
|
|
If any tests fail, please see the netCDF web site: |
|
http://www.unidata.ucar.edu/software/netcdf/ |
|
|
|
NetCDF is developed and maintained at the Unidata Program |
|
Center. Unidata provides a broad array of data and software |
|
tools for use in geoscience education and research. |
|
http://www.unidata.ucar.edu
5.
This netCDF file is installed directly in /usr/local
6.
If you want to install in a particular path, please follow this
$
./configure --prefix= ( our path)
Example
: $ ./configure --prefix=/usr/local/bin
Reference:
https://www.unidata.ucar.edu/downloads/netcdf/index.jsp
Reference:
http://pro.arcgis.com/en/pro-app/help/data/multidimensional/what-is-netcdf-data.htm