You will need to set some environment variables prior to installing NWCSAF-GEO
To do this you will need to edit your .bashrc file in your home directory
This will set environment variables including the path of your newly created safnwc directory ($SAFNWC).
cd
vim .bashrc
Next paste the following at the bottom of the file and save and exit.
export TZ=UTC
export SAFNWC=/path/to/home/directory/safnwc
export BUFR_TABLES=$SAFNWC/COTS/bufrtables/
export CC=gcc
export FC=gfortran
export CFLAGS="-O3 <openmp>"
export FFLAGS="-O3 <openmp>"
export ARCH=linux
export HDF5_PLUGIN_PATH=$SAFNWC/COTS/hdf5/lib/plugin/
export PATH=$SAFNWC/bin:$SAFNWC/COTS/bin:$PATH
export LD_LIBRARY_PATH=$SAFNWC/COTS/lib:$LD_LIBRARY_PATH
Once you have done this source your new config.
source .bashrc
For this tutorial all the files you need are those that you downloaded into your new safnwc directory earlier. This can now be accessed by referencing the SAFNWC environment variable set in your .bashrc file
cd $SAFNWC
As mentioned earlier the files you will require are:
COTS
NWC-CDOP3-GEO-AEMET-SW-CODE-COTS_v2018_15DEC18.tgz ( This contains a suite of tools used to build the main application this is the first stage of the install )
NWCSAF/GEO v2018
NWC-CDOP3-GEO-AEMET-SW-CODE-SYSTEM_v2018_15DEC18.tgz ( This is the main GEO application which is built using the tools above )
Satellite-specific auxiliary data
NWC-CDOP3-GEO-AEMET-SW-DATA-MSGx_+000.0_v2018_15DEC18.tgz ( MSG series for 0.0 deg longitude service; other auxiliary datasets are available for other satellites)
NWCGEO Setup Shell script
nwcgeo_v2018 ( This is a small executable shell script that will uncompress and install all the elements of GEO )
Make sure you are in your safnwc directory and then make sure that the run the setup script is executable. Once doing this run the script .
cd $SAFNWC
chmod +x nwcgeo_v2018
./nwcgeo_v2018 install
This will then display the a welcome message and prompt you to press and key to continue.
Next the install script will carry out some checks to make sure all the files you need are present and that you have the required packages installed.
Please note, some of the file checks will be flagged as failed. This is because the check is looking for all the auxiliary files for all the satellites. We are only using MSG 0 data so the other satellites files will fail.
You should see something similar to this.
Checking for installation packages ...
NWC-CDOP3-GEO-AEMET-SW-CODE-COTS_v2018_15DEC18.tgz ... OK
NWC-CDOP3-GEO-AEMET-SW-CODE-SYSTEM_v2018_15DEC18.tgz ... OK
NWC-CDOP3-GEO-AEMET-SW-DATA-MSGx_+000.0_v2018_15DEC18.tgz ... OK
NWC-CDOP3-GEO-AEMET-SW-DATA-MSGx_+009.5_v2018_15DEC18.tgz ... FAILED
NWC-CDOP3-GEO-AEMET-SW-DATA-MSG1_+041.5_v2018_15DEC18.tgz ... FAILED
NWC-CDOP3-GEO-AEMET-SW-DATA-GOES13_-075.0_v2018_15DEC18.tgz ... FAILED
NWC-CDOP3-GEO-AEMET-SW-DATA-GOES14_-105.0_v2018_15DEC18.tgz ... FAILED
NWC-CDOP3-GEO-AEMET-SW-DATA-GOES15_-128.0_v2018_15DEC18.tgz ... FAILED
NWC-CDOP3-GEO-AEMET-SW-DATA-HIMA08_+140.7_v2018_15DEC18.tgz ... FAILED
Select y to continue
It will now prompt you to specify an installation path. This by default is our current pwd so just hit return
You will now be asked whether you wish to enable parallelization.
Select y to parallelization.
The script will now give you an overview of your environment variables and prepare for the Installation of COTS.
Press any key to start the process of installing COTS. This can take a while ~10 minutes as there many packages and libraries that are needed to compile the main application. When this has completed installing, you will see a new directory has been created in the safnwc folder called COTS. This is where all the required packages and libraries for COTS are compiled and installed.
Once the compile has completed you should see
Successful installation of COTS for NWC/GEO v2018
Installation of NCW/GEO
The install script will now prepare for installing the main code package and use the programs in the COTS directory to do this.
Just press a key to carry on with the install process. This is much quicker and should only take a couple of minutes. if you watch the screen you will see the various PGEs being setup as the compile takes place.
Selecting a Satellite to use with NWC/GEO
You will now be asked what satellite you are going to be using. We will be using MSG satellite data for this tutorial.
1) MSG Primary Service......HRIT...Near Real Time.......(+000.0 deg)
2) MSG Primary Service......HRIT...Reprocessing.........(+000.0 deg)
3) MSG Rapid Scan Service...HRIT...Near Real Time.......(+009.5 deg)
4) MSG1 IODC................HRIT...Near Real Time.......(+041.5 deg)
5) GOES13....CONUS..........FSD....Reprocessing.........(-075.0 deg)
6) GOES13....NH.............FSD....Reprocessing.........(-075.0 deg)
7) GOES14....CONUS..........FSD....Near Real Time.......(-105.0 deg)
8) GOES14....NH.............FSD....Near Real Time.......(-105.0 deg)
9) GOES15....CONUS..........FSD....Near Real Time.......(-128.0 deg)
10) GOES15....NH.............FSD....Near Real Time.......(-128.0 deg)
11) Himawari-08..............HSD....Near Real Time.......(+140.7 deg)
12) Himawari-08..............HSD....Reprocessing.........(+140.7 deg)
13) Himawari-08..............FSD....Reprocessing.........(+140.7 deg)
Select number 1
Installation of the Auxiliary data
The install script will now ask if you want to install the Auxiliary satellite data. Double check that this is HRIT...Near Real Time.......(+000.0 deg)
Select y to continue
This part takes quite a while as it is uncompressing all the aux data.
You will now be asked to enter the name, URL and email address of your institution
Next you will be asked if you want to
> Enable LAT/LON containers in output products ([y]/n) y
> Enable the production of Auxiliary Data Products (y/[n]) y
> Include the production of Sun data as Auxiliary Data Products (y/[n]) y
Select y for all of these options.
you should now see the following message
The NWC/GEO v2018 has been properly installed and configured in your system
Well done the you have successfully install the GEO package and it should now be ready to launch!