[ncl-talk] NARR regridded plots
Dennis Shea
shea at ucar.edu
Sun Sep 30 18:40:24 MDT 2018
Two issues:
[1] NARR data (nominally) span -180 to 180. The specified rectilinear
destination grid spanned all positive values
nlat = 337
nlon = 831
lat = fspan(1.0, 85.0 ,nlat)
lon = fspan( *150.0,358.5* ,nlon) ; all > 0
;----FIX: adjust the NARR longitudes to be all positive
lat2d = sfile->lat ; (:,:)
lon2d = sfile->lon ; (:,:)
lon2d = *where*(lon2d.lt.0, lon2d+360, lon2d) ; nominally: 0-360
[2] These netCDF NARR data files have 2 different attributes to specify
missing/Fill values
uwnd:missing_value = -9.96921e+36f ;
uwnd:_FillValue = 9.96921e+36f ;
;---print missing/fill information
nmiss = *num*(var.eq.var at missing_value)
nfill = *num*(*ismissing*(var))
print("nmiss="+nmiss+" nfill="+nfill)
;---Fix conflicting missing_value and _FillValue
var = *where*(var.eq.var at missing_value, var at _FillValue, var)
nmiss = *num*(var.eq.var at missing_value)
nfill = *num(ismissing*(var))
print("nmiss="+nmiss+" nfill="+nfill)
print("---")
D
On Sat, Sep 29, 2018 at 12:31 AM Samar Minallah <minallah at umich.edu> wrote:
> Hello,
>
> I am battling with NARR regridding and creating comparison plots. I have
> regridded the NARR data using available scripts (have attached my scripts
> to produce weight files and the regridded netcdf+comparison plots).
>
> I am unable to plot the original and regridded variables correctly and
> cannot seem to identify where it is going wrong (I have attached the output
> image).
>
> Can anyone please assist with this issue.
>
> Thank you
> [image: ESMF_wgts_test.png]
>
>
>
> --
> Samar
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180930/9eea252e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ESMF_wgts_test.png
Type: image/png
Size: 182566 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180930/9eea252e/attachment.png>
More information about the ncl-talk
mailing list