ARWpost is very tricky to get to work. Since it is no longer support (as far as I know) you have to manually change stuff to get it to work.Hey
I am facing certain errors while compiling WRF ARWpost. I have successfully configured the same but while compiling I have issues.
Sharing compile.log file for reference.
Yes, i am. i am well versed in pyhton but using windows operator.ARWpost is very tricky to get to work. Since it is no longer support (as far as I know) you have to manually change stuff to get it to work.
@Prachi Are you familiar with python at all?
There is no sed command in the makefile in src folder.@Prachi
Good morning
I would encourage you to explore wrf-python as well as it is where NCAR is heading for post/pre processing of WRF.
However this is the steps to fix ARWpost.
1. Navigate to the ARWpost folder where you extracted the files from the tar file.
Bash:cd /path/to/ARWpost
2. run a clean command to remove all pre configured settings
Bash:./clean -a
3. you sed command to change these strings in the Makefile for ARWpost
Bash:sed -i -e 's/-lnetcdf/-lnetcdff -lnetcdf/g' /path/to/your/ARWpost/src/Makefile
4. Make sure you export the NETCDF Director where netcdf files are installed. Not NETCDF-C and NETCDF-Fortran need to be in the same folder
Bash:export NETCDF=/path/to/netcdf/folder/
5. run the configure command for ARWpost
Bash:./configure
6. If you are using GNU (gcc/gfortran/g++) version greater than 10.0.0 then you need the following sed statement
Bash:sed -i '32s/-ffree-form -O -fno-second-underscore -fconvert=big-endian -frecord-marker=4/-ffree-form -O -fno-second-underscore -fconvert=big-endian -frecord-marker=4 ${fallow_argument} /g' /path/to/ARWpost/configure.arwp
7. Change the order of flags in ARWpost configure file
Bash:sed -i -e 's/-C -P -traditional/-P -traditional/g' $WRF_FOLDER/ARWpost/configure.arwp
8. Run the compile command
Bash:./compile
9. Export the ARWpost.exe to $PATH
Bash:export PATH=$WRF_FOLDER/ARWpost/ARWpost.exe:$PATH
That should help you.
@PrachiThere is no sed command in the makefile in src folder.
Can you help me locate the same.
Otherwise you have to search the whole file to manually edit them.@Prachi
sed command is a terminal command, that you use so you don't have to manually change the files.
sorry that would be /path/to/ARWpostIn 7th point, what does WRF_Folder refers to
yes, i did try but it is not working ..same errorsorry that would be /path/to/ARWpost
that would be the path to the folder where arwpost is being built.sorry that would be /path/to/ARWpost
so it would be something like this on my machineyes, i did try but it is not working ..same error
its the absolute file path for your system. Since I don't know what your system setup is the convention for writing it out would be /path/to/your/files/example.file.shso it would be something like this on my machine
/path/to/ARWpost ----> /home/workhorse/Build_WRF/ARWpost
I made a mistake.Yes, understood. followed the command lines but same error persists, rank mismatch and makefile error
sed -i '32s/-ffree-form -O -fno-second-underscore -fconvert=big-endian -frecord-marker=4/-ffree-form -O -fno-second-underscore -fconvert=big-endian -frecord-marker=4 -fallow-argument-mismatch /g' /path/to/ARWpost/configure.arwp
do you mean makefile.sh and configure.arwp.shits the absolute file path for your system. Since I don't know what your system setup is the convention for writing it out would be /path/to/your/files/example.file.sh
@Prachi I apologize I copied the code directly from my install code, so I forgot that I have exports preset in my bashrc file.I made a mistake.
I put an argument into # 6.
it should be this
Bash:sed -i '32s/-ffree-form -O -fno-second-underscore -fconvert=big-endian -frecord-marker=4/-ffree-form -O -fno-second-underscore -fconvert=big-endian -frecord-marker=4 -fallow-argument-mismatch /g' /path/to/ARWpost/configure.arwp
do i need to use.sh or try with revised code once@Prachi I apologize I copied the code directly from my install code, so I forgot that I have exports preset in my bashrc file.
'/home/workhorse/WRF_Intel/ARWpost/configure.arwp'do you mean makefile.sh and configure.arwp.sh