how to use hycom_profile command to search the diffusion of every point

128 views
Skip to first unread message

hao ming

unread,
May 6, 2024, 11:12:06 AMMay 6
to HYCOM.org Forum
Hi. I got a problem that after i change my diffusion in mxkprf.f file when i used the hycom_profile command to specify whether the diffusion has been change. The system inform me that the command not be found. Can you help me to solve this problem. I would appreciate it if you answer me.

Alan Wallcraft

unread,
May 6, 2024, 12:02:04 PMMay 6
to HYCOM.org Forum, hao ming
The arch*.txt files produced by running HYCOM are at the itest,jtest location.  These always include viscty, t-diff and s-diff.

The bin/hycom_profile_list program can produce profiles from an arch*.[ab] file

C  hycom_profile      - Usage:  hycom_profile archv.a ip jp [grid.a]
C  hycom_profile_uv   - Usage:  hycom_profile_uv   archv.a ip jp [grid.a]
C  hycom_profile_all  - Usage:  hycom_profile_all archv.a if il ii jf jl ji prof [g
rid.a]
C  hycom_profile_list - Usage:  hycom_profile_list archv.a n list.txt prof [grid.a]
C
C                 generates a text profile file at points (ip,jp)
C                 from a HYCOM archive file.
C
C   hycom_profile:      single point, output on stdout
C   hycom_profile_uv:   single point, output on stdout, actual u and v
C   hycom_profile_all:  each point where ip=if:il:ii and jp=jf:jl:ji
C   hycom_profile_list: the n points, one per line, in list.txt
C
C   Append "1" or "2" or "3" to the command name (e.g. hycom_profile3)
C    to include visc or visc,tdif or visc,tdif,sdif in the output.
C   Note that previous versions always included visc,tdif - so use
C    the "2" version to recover the old default behaviour.

For this to include diffusion, the arch*.[ab] file needs to include these fields, which it will do if blkdat diffout=1:

   0      'difout' = K-PROF:  output visc/diff coffs in archive (0=F,1=T)

There is a bug in bin/Make_all.csh that fails to create a softlink from the executable (in my case hycom_profile_list_LinuxAIF) to hycom_profile_list:

narwhal06 576> ll hycom_profile hycom_profile? hycom_profile_list*
lrwxrwxrwx 1 wallcraf 0375G018     18 Jun 15  2020 hycom_profile -> hycom_profile_list
lrwxrwxrwx 1 wallcraf 0375G018     18 Jun 15  2020 hycom_profile1 -> hycom_profile_list
lrwxrwxrwx 1 wallcraf 0375G018     18 Jun 15  2020 hycom_profile2 -> hycom_profile_list
lrwxrwxrwx 1 wallcraf 0375G018     18 Jun 15  2020 hycom_profile3 -> hycom_profile_list
lrwxrwxrwx 1 wallcraf 0375G018     18 Jun 15  2020 hycom_profile_list1 -> hycom_profile_list
lrwxrwxrwx 1 wallcraf 0375G018     18 Jun 15  2020 hycom_profile_list2 -> hycom_profile_list
lrwxrwxrwx 1 wallcraf 0375G018     18 Jun 15  2020 hycom_profile_list3 -> hycom_profile_list
-rw-r--r-- 1 wallcraf 0375G018  43073 Apr 21  2023 hycom_profile_list.F
-rwxr-xr-x 1 wallcraf 0375G018 937296 May  6 14:48 hycom_profile_list_LinuxAIF*

I have fixed this on GitHub, see add softlink to hycom_profile executables

narwhal06 610> ll hycom_profile_list
lrwxrwxrwx 1 wallcraf 0375G018 27 May  6 15:43 hycom_profile_list -> hycom_profile_list_LinuxAIF*

Alan.

hao ming

unread,
May 7, 2024, 8:06:55 AMMay 7
to HYCOM.org Forum, Alan Wallcraft, hao ming
MY present version is hycom_2.2.18_ALL.tar.

hao ming

unread,
May 7, 2024, 8:06:55 AMMay 7
to HYCOM.org Forum, Alan Wallcraft, hao ming
Thanks for your answer Alan! I found my hycom version is from the version of pdf  of Quick start’s Guide or HYCOM for Dummie so i can not use this command. So do you think whether i need to download the newest version? or if i need to download the newest version can you give me some guide just like the pdf of  Quick start’s Guide or HYCOM for Dummie. Thanks!

在2024年5月7日星期二 UTC+8 00:02:04<Alan Wallcraft> 写道:

Alan Wallcraft

unread,
May 7, 2024, 8:25:22 AMMay 7
to HYCOM.org Forum, hao ming, Alan Wallcraft
I suggest you switch to the latest version on GitHub (HYCOM-src).

You can continue to use your existing scripts, but the blkdat.input has some new lines.  See HYCOM-examples for blkdat.inpu files.

HYCOM-tools replaces hycom/ALL, and can be used with 2.2.18 archive files ot the latest archive files.

Alan.
Reply all
Reply to author
Forward
0 new messages