Missing the ncgm2www script in the ROMS plotting package

Discussion about analysis, visualization, and collaboration tools and techniques

Moderators: arango, robertson

Post Reply
Message
Author
manhnt181
Posts: 33
Joined: Wed Feb 03, 2021 5:07 pm
Location: Institute of Geophysics

Missing the ncgm2www script in the ROMS plotting package

#1 Unread post by manhnt181 »

Hi everyone,
I'm practicing plot the ROMS output by using the plt_html.sh script, however I don't find the ncgm2www script in src/bin.
Can anyone kindly give me this program?
Thanks all,
Bests,
manh,

User avatar
arango
Site Admin
Posts: 1347
Joined: Wed Feb 26, 2003 4:41 pm
Location: DMCS, Rutgers University
Contact:

Re: Missing the ncgm2www script in the ROMS plotting package

#2 Unread post by arango »

Notice that the subdirectory plot/src/Bin have other conversion scripts like ncgm2cgm.sh, ncgm2gif.sh, and ncgm2png.sh. The call to ncgmwww can be replaced with ncgm2git.sh. Anyway, I am attaching the old ncgm2www.sh script.
Attachments
ncgm2www.sh
(3.92 KiB) Downloaded 234 times

manhnt181
Posts: 33
Joined: Wed Feb 03, 2021 5:07 pm
Location: Institute of Geophysics

Re: Missing the ncgm2www script in the ROMS plotting package

#3 Unread post by manhnt181 »

Hi Arango,
Thank you for your help.
I tried using your program to plot ROMS output but I got the error like that:

Code: Select all

Fri May 21 14:59:21 +07 2021
At line 32 of file read_fname.f90 (unit = 5, file = 'stdin')
Fortran runtime error: End of file
if: Expression Syntax.
At line 32 of file read_fname.f90 (unit = 5, file = 'stdin')
Fortran runtime error: End of file
if: Expression Syntax.
At line 32 of file read_fname.f90 (unit = 5, file = 'stdin')
Fortran runtime error: End of file
if: Expression Syntax.
At line 32 of file read_fname.f90 (unit = 5, file = 'stdin')
Fortran runtime error: End of file
if: Expression Syntax.
At line 32 of file read_fname.f90 (unit = 5, file = 'stdin')
Fortran runtime error: End of file
if: Expression Syntax.
The detail of this error was described in the attachment.
The line 32 of file read_fname.f90 is "READ (unit,'(a)') text"
By the way, I also attach my controlling script.
Please help me to resolve this problem.
Thank you very much!
Attachments
plt_html1.sh
(25.26 KiB) Downloaded 242 times
html.log
(41.82 KiB) Downloaded 241 times

User avatar
robertson
Site Admin
Posts: 219
Joined: Wed Feb 26, 2003 3:12 pm
Location: IMCS, Rutgers University

Re: Missing the ncgm2www script in the ROMS plotting package

#4 Unread post by robertson »

It may be because you have not listed a coastline file after the grid file. I believe the coastline file is required even if your plotted area does not have any land.

manhnt181
Posts: 33
Joined: Wed Feb 03, 2021 5:07 pm
Location: Institute of Geophysics

Re: Missing the ncgm2www script in the ROMS plotting package

#5 Unread post by manhnt181 »

Hi Robertson,
Thank you for your answer.
After I added the coastline file to the script, the error didn't appear again.
Unfortunately, I got the another error is that:

Code: Select all

 GET_NC2DAT - error while reading variable: temp
NetCDF: Index exceeds dimension bound                                           

 Execution abnormally terminated in module: GET_NC2DAT
Can you kindly give me any suggestions?
Thank you very much!
Attachments
html.log
(101.48 KiB) Downloaded 228 times

User avatar
robertson
Site Admin
Posts: 219
Joined: Wed Feb 26, 2003 3:12 pm
Location: IMCS, Rutgers University

Re: Missing the ncgm2www script in the ROMS plotting package

#6 Unread post by robertson »

REC needs to start at 1 not 0

manhnt181
Posts: 33
Joined: Wed Feb 03, 2021 5:07 pm
Location: Institute of Geophysics

Re: Missing the ncgm2www script in the ROMS plotting package

#7 Unread post by manhnt181 »

HI Robertson,
Thank you for your reply.
I've changed REC=0 in the script
set DT=0 # plotting interval (plot all records
set REC=1 # Starting time record (minus 1) to process
however, this error still appeared.

Code: Select all

  Plottable Fields in Primary NetCDF File: 
  ---------------------------------------

          /work/users/cloud/user/manh/anaconda3/plot/src/ROMS_output/ocean_hist_255.nc

 [ID= 59] bathymetry at RHO-points
 [ID= 66] Coriolis parameter at RHO-points
 [ID= 57] curvilinear coordinate metric in XI
 [ID= 58] curvilinear coordinate metric in ETA
 [ID= 56] angle between XI-axis and EAST
 [ID= 21] free-surface
 [ID= 13] vertically integrated u-momentum component
 [ID= 14] vertically integrated v-momentum component
 [ID=  1] u-momentum component
 [ID=  2] v-momentum component
 [ID= 19] vertical momentum component
 [ID= 20] S-coordinate vertical momentum component
 [ID= 23] potential temperature
 [ID= 24] salinity
 [ID= 41] vertical viscosity coefficient
 [ID= 68] surface u-momentum stress
 [ID= 69] surface v-momentum stress
 [ID= 76] bottom u-momentum stress
 [ID= 77] bottom v-momentum stress

  Available Times: 
  ---------------

   58009.00       58009.25       58009.50       58009.75       58010.00    
   58010.25       58010.50       58010.75       58011.00       58011.25    
   58011.50       58011.75       58012.00    


  Parameters: 

      number of points (Lr,Mr,Nr) =  477 303  16
         basin dimensions (Lx,Le) =   8867.340  5625.918
      map coordinates (Rlon,Llon) =     92.000   166.500
                      (Blat,Tlat) =    -10.000    33.000
                   map projection = Mercator                                
  

 GET_NC2DAT - error while reading variable: temp
NetCDF: Index exceeds dimension bound                                           

 Execution abnormally terminated in module: GET_NC2DAT
Please help me to resolve this problem!
Thank you very much!

Post Reply