[ncl-talk] plotting two very similar datasets with very different outcomes

Adam Herrington adam.herrington at stonybrook.edu
Mon Jul 20 20:43:20 MDT 2020


I've a 2D field ("bar") that has dimensions (ilat,ilon) which is on a
regional curvilinear grid [30S,30N],[30E,30W]. I created this field through
using ESMF remapping from a global grid to the regional rectilinear grid.
Attached are two plots in which the only difference is the method of
remapping "bilinear" v. "conservative":

When I plot using the default cnFillMode = "AreaFill" it gives me the
correct field for bilin, but nothing for conservative remapping.

[image: temp_contours.areafill.png]

When I plot using cnFillMode = "CellFill" and supply the vertices from the
SCRIP file:

     res at sfXCellBounds = vf->grid_corner_lon
     res at sfYCellBounds = vf->grid_corner_lat

it gives me a weird red strip through the central meridian of the conserve
case.

[image: temp_contours.cellfill.png]

When I sift through the data, there are no extreme values that pertain to
that red mark. There are no missing values! I've tried translating the
reference grid away from the prime-meridian and it still is there at the
center of the composite. Here's the PDF of values for sanity:

[image: temp_pdf.png]

I'm including the two netcdf files here in case someone is interested in
helping me track down this odd behavior. I'm also including the ncl script
I'm using to plot these two datasets.

Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200720/dfcf7b54/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: temp_contours.areafill.png
Type: image/png
Size: 432245 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200720/dfcf7b54/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: temp_contours.cellfill.png
Type: image/png
Size: 353431 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200720/dfcf7b54/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: temp_pdf.png
Type: image/png
Size: 424075 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200720/dfcf7b54/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: composite.ne30pg3.ge.45N.PRECT.JULY.cnsrv.bugfix.nc.pdf.nc
Type: application/octet-stream
Size: 6828 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200720/dfcf7b54/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: composite.ne30pg3.ge.45N.PRECT.JULY.bilin.bugfix.nc.pdf.nc
Type: application/octet-stream
Size: 6828 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200720/dfcf7b54/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plot_contours.ncl
Type: application/octet-stream
Size: 5245 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200720/dfcf7b54/attachment-0005.obj>


More information about the ncl-talk mailing list