fieldproc & hycomproc

141 views
Skip to first unread message

Maziar Gholami

unread,
Jul 21, 2014, 12:18:45 PM7/21/14
to fo...@hycom.org

Hi
I have problem with fieldproc and hycomproc
when I write this commands, they are not found.
what should I do.
I whould be appreciate if help me.
Thank you very much.

[root@localhost plot]# fieldproc < depth.IN
bash: fieldproc: command not found

[root@localhost plot]# fp < depth.IN
bash: fp: command not found

alan.wa...@hycom.org

unread,
Jul 21, 2014, 1:37:14 PM7/21/14
to fo...@hycom.org
Building fieldproc and hycomproc require NCAR Graphics, and this is made harder by the fact that recent versions of NCAR graphics have been merged with another NCAR package and typically requires a large number of extra packages be available and linked in.  In any case, from hycom/ALL/plot/src/README.ALL.plot.src:

The same configuration file is used for all pre and post-processing
programs, but here the Makefile uses ncargf90 in place of $(LD) in order
to link in the NCAR graphics package.  Make sure this is in your path
and consistent with $(LDFLAGS) as defined in ../../config/$(ARCH)_setup.

When you built the ALL commands, most likely the plot commands failed because ncargf90 was either missing or for the wrong compiler or NCARG version.  Look at ALL/plot/src/Make_hycomproc for a detailed log of what happened.


Alan.

mo so

unread,
Nov 2, 2022, 4:15:48 PM11/2/22
to HYCOM.org Forum, alan.wa...@hycom.org
Dear Alan,

I tried to install the HYCOM model and now I want to test plot, but for fieldproc and hycomproc I get an error:
fieldproc: command not found
I added the ALL/plot/src directory to the path but it didn't solve the problem. I checked the Make_hycomproc file and it had many errors for fortran. Do the installation steps need to be done again?
thank you so much.

Kind regards,
Solgi



gfortran -DIA32 -DREAL4 -fPIC -fno-second-underscore -fconvert=big-endian -O -c mod_plot.F
gfortran -DIA32 -DREAL4 -fPIC -fno-second-underscore -fconvert=big-endian -O -c mod_xc.F
gfortran -DIA32 -DREAL4 -fPIC -fno-second-underscore -fconvert=big-endian -O -c mod_za.F
gfortran -DIA32 -DREAL4 -fPIC -fno-second-underscore -fconvert=big-endian -O -c wtime.F
gfortran             -fPIC -fno-second-underscore -fconvert=big-endian -O -c hycomproc.f
hycomproc.f:508:72:

  508 |         do 23 i=1,ii1
      |                                                                        1
Warning: Fortran 2018 deleted feature: Shared DO termination label 23 at (1)
hycomproc.f:509:72:

  509 |  23     depth1(i,j)=depths(i,j)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 23 at (1)
hycomproc.f:527:72:

  527 |       do 3 j=1,jj
      |                                                                        1
Warning: Fortran 2018 deleted feature: Shared DO termination label 3 at (1)
hycomproc.f:528:72:

  528 |       do 3 i=1,ii
      |                                                                        1
.
.
.
.
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 20 at (1)
gfortran -DIA32 -DREAL4 -fPIC -fno-second-underscore -fconvert=big-endian -O -c zh.F
gfortran             -fPIC -fno-second-underscore -fconvert=big-endian -O -c opngks_psp.f
ncargf90 -fPIC -fno-second-underscore -fconvert=big-endian -O  -o hycomproc  hycomproc.o mod_plot.o mod_xc.o mod_za.o wtime.o arrow1.o bigrid.o bigrd1.o blkin.o bord.o colbar.o colors.o conrec.o contur.o extrct.o extrot.o filtr1.o fram.o fordate.o getdat.o getdtm.o getdepth.o grdtrns.o horplt.o indxi.o  indxj.o legend1.o pakk.o   poisnd.o prtmsk.o psmoo.o sbmerg.o xsecij.o ssort.o  zebra.o tracks.o zh.o opngks_psp.o
/usr/bin/sh: 1: ncargf90: not found
make: *** [Makefile:106: hycomproc] Error 127

Alan Wallcraft

unread,
Nov 3, 2022, 1:59:15 PM11/3/22
to HYCOM.org Forum, mo so, Alan Wallcraft
The warnings are probably harmless.

The issue is:

/usr/bin/sh: 1: ncargf90: not found

I assume you have installed NCAR graphics and are trying to make HYCOM-tools/plot/src.

The original Make_all.csh from Github has:

setenv NCARG_ROOT ~/pkgs/ncarg/gnu/5.2.1

set path=($NCARG_ROOT/bin $path)

which ncargf90

Replace NCARG_ROOT with the location of NCAR graphics on your system and confirm that ncargf90 is in your path.

Then rerun Make_all.csh.  There is no need to delete the existing  .o and .mod files.

Alan.

mo so

unread,
Nov 13, 2022, 9:16:25 AM11/13/22
to HYCOM.org Forum, alan.wa...@hycom.org, mo so
Dear Alan,

Thank you for your guidance. I checked the paths and installed the necessary libraries. ncargf90 is also on the path.
root@mostafa-G41D3C:~# which ncargf90
/usr/bin/ncargf90

Make_all was run again and everything worked. But again, I get an error while running the hycomproc command. I tried to add these files, but the problem was not solved . Is there a special file or change required?

With regards,
Solgi


ncargf90 -fPIC -m64 -fno-second-underscore -fconvert=big-endian -O  -o hycomproc  hycomproc.o mod_plot.o mod_xc.o mod_za.o wtime.o arrow1.o bigrid.o bigrd1.o blkin.o bord.o colbar.o colors.o conrec.o contur.o extrct.o extrot.o filtr1.o fram.o fordate.o getdat.o getdtm.o getdepth.o grdtrns.o horplt.o indxi.o  indxj.o legend1.o pakk.o   poisnd.o prtmsk.o psmoo.o sbmerg.o xsecij.o ssort.o  zebra.o tracks.o zh.o opngks_psp.o
f77 -fPIC -g -O2 -fdebug-prefix-map=/build/ncl-ncarg=. -fstack-protector-strong -fno-second-underscore -fno-range-check -fPIE -Wl,-z,relro -Wl,-z,now -Wl,-z,relro -Wl,-z,now -L../../../.././shared -fPIC -m64 -fno-second-underscore -fconvert=big-endian -O -o hycomproc hycomproc.o mod_plot.o mod_xc.o mod_za.o wtime.o arrow1.o bigrid.o bigrd1.o blkin.o bord.o colbar.o colors.o conrec.o contur.o extrct.o extrot.o filtr1.o fram.o fordate.o getdat.o getdtm.o getdepth.o grdtrns.o horplt.o indxi.o indxj.o legend1.o pakk.o poisnd.o prtmsk.o psmoo.o sbmerg.o xsecij.o ssort.o zebra.o tracks.o zh.o opngks_psp.o -L/usr/lib/x86_64-linux-gnu/ncarg -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lXrender -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lbz2
/usr/bin/ld: cannot find -lcairo
/usr/bin/ld: cannot find -lbz2
collect2: error: ld returned 1 exit status

make: *** [Makefile:106: hycomproc] Error 1

Alan Wallcraft

unread,
Nov 15, 2022, 2:06:19 PM11/15/22
to HYCOM.org Forum, mo so, Alan Wallcraft
ncargf90 is a script so you can look at it with less (say)

less /usr/bin/ncargf90

I'm not sure this is the right version of ncargf90 because it should use gfortran internally, rather than the f77 which you are getting from ncargf90.  Also, it is usual for cairo to be a command line option that is off by default.  For example:

gfortran -DIA32 -DREAL4 -fPIC -m64 -fno-second-underscore -fconvert=big-endian -O -c zh.F
gfortran             -fPIC -m64 -fno-second-underscore -fconvert=big-endian -O -c opngks_psp.f
ncargf90 -fPIC -m64 -fno-second-underscore -fconvert=big-endian -O  -o hycomproc  hycomproc.o mod_plot.o mod_xc.o mod_za.o wtime.o arrow1.o bigrid.o bigrd1.o blkin.o bord.o colbar.o colors.o conrec.o contur.o extrct.o filtr1.o fram.o fordate.o getdat.o          getdepth.o grdtrns.o horplt.o indxi.o  indxj.o legend1.o poisnd.o prtmsk.o psmoo.o sbmerg.o xsecij.o ssort.o  zebra.o tracks.o zh.o opngks_psp.o
gfortran -fPIC -fno-second-underscore -fno-range-check -O0 -fPIC -m64 -fno-second-underscore -fconvert=big-endian -O -o hycomproc hycomproc.o mod_plot.o mod_xc.o mod_za.o wtime.o arrow1.o bigrid.o bigrd1.o blkin.o bord.o colbar.o colors.o conrec.o contur.o extrct.o filtr1.o fram.o fordate.o getdat.o getdepth.o grdtrns.o horplt.o indxi.o indxj.o legend1.o poisnd.o prtmsk.o psmoo.o sbmerg.o xsecij.o ssort.o zebra.o tracks.o zh.o opngks_psp.o -L/p/home/wallcraf/pkgs/ncarg/gnu/5.2.1/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lXext

Note that ncargf90 is invoking gfortran without cairo libraries.

Alan.
Reply all
Reply to author
Forward
0 new messages