[ncl-talk] Problem with Roms_utils.ncl
leilane.passos at inpe.br
leilane.passos at inpe.br
Mon Oct 3 06:16:25 MDT 2016
Hi,
I'm plotting sea surface temperature from an output of the
ROMS, but a plot region is completely white. I checked the file and it
is correct, I can usually plot in other languages (matlab, for example),
the problem occurs after calling the script Roms_utils.ncl
(https://www.ncl.ucar.edu/Applications/Scripts/ROMS_utils.ncl).
I had
to make 2 modifications to be able to use this script:
1 - comment some
lines: 5-133 - I do not know why, but the script does not run if these
lines are uncommented.
2 - add another parameter to call function
roms_3d_interp: in my case the variable h (Final bathymetry at
RHO-points) and the variable that will be interpolated (temp:
time-averaged potential temperature) don't be in the same file. h is in
my GRID FILE and temp is in the OUTPUT MODEL FILE. So, I added a new
parameter when I calling the function - the file_grid:
137 function
roms_3d_interp( file_handle, FILE_GRID, var:string,
138 rec:integer,
z:numeric )
and I changed the lines 166-176 and 208: to call the file
that contains the variable h
166 if(typeof(file_grid).eq."file")
then
167 ISFILE = True
168 nc_grid = file_grid
169 else
if(typeof(file_grid).eq."list") then
170 ISFILE = False
171 nc_grid =
file_grid[0]
172 else
173 print("roms_interp_3d: error: the first
argument must be a file or a list of files opened with addfile or
addfiles")
174 return
175 end if
176 end if
...
208
if(isfilevar(NC_GRID,"h"))
After this function a region with constant
temperature is interpolated with missing values. The figures and the
scripts are attached. The files: nested_avg_19811216_LEILANE.nc and
mesh_donor_grd_004nested_
LEILANE.nc are in the FTP server. My NCL
version is 6.3.0.
I'm new in NCL and I'll appreciate any help.
Best
regards.
Leilane
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161003/6b0357fe/attachment.html
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ROMS_utils.ncl
Url: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161003/6b0357fe/attachment.pl
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: verifica_simulacao.ncl
Url: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161003/6b0357fe/attachment-0001.pl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TSM_198112verifica.png
Type: image/png
Size: 62694 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161003/6b0357fe/attachment.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: out1Missing.png
Type: image/png
Size: 19727 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161003/6b0357fe/attachment-0001.png
More information about the ncl-talk
mailing list