[ncl-talk] esmf regrid
Buzan, Jonathan R
jbuzan at purdue.edu
Thu Sep 21 13:28:11 MDT 2017
Hello NCL-Talk,
I tried to do the reverse (high -> low), and received the same error. It seems that the high resolution grid is too large.
ncendef: ncid 196608: NetCDF: One or more variable sizes violate format constraints
-Jonathan
> On Sep 21, 2017, at 2:32 PM, Buzan, Jonathan R <jbuzan at purdue.edu> wrote:
>
> Hello NCL-Talk,
>
> I am attempting to regrid 0.5x0.5 (360x720) to 0.5’x0.5’ (17400x43200) resolution. I am not sure what I am doing wrong.
>
>
> Error:
>
> (0) get_src_grid_info: source lat dims = (360)
> (0) get_src_grid_info: source lon dims = (720)
> (0) get_src_grid_info: source grid type is 'rectilinear'
> (0) curvilinear_to_SCRIP: calculating grid corners...
> (0) curvilinear_to_SCRIP: no lat values are at the poles, so
> (0) calculating grid corners using
> (0) calc_SCRIP_corners_noboundaries...
> (0) calc_SCRIP_corners_noboundaries
> (0) min/max original lat: -89.75/89.75
> (0) min/max original lon: -179.75/179.75
> (0) calc_SCRIP_corners_noboundaries
> (0) min/max Extlat2d: -90.25/90.25
> (0) min/max Extlon2d: -180.25/180.25
> (0) calc_SCRIP_corners_noboundaries
> (0) min/max ExtGridCenter_lat: -90/90
> (0) min/max ExtGridCenter_lon: -180/180
> (0) =====> CPU Elapsed Time: rectilinear_to_SCRIP: 0.182972 seconds <=====
> (0) get_dst_grid_info: destination lat dims = (17400)
> (0) get_dst_grid_info: destination lon dims = (43200)
> ncendef: ncid 196608: NetCDF: One or more variable sizes violate format constraints
> fatal:NetCDF: Operation not allowed in define mode: error attempting to write variable (grid_dims) to file (destination_grid_file.nc)
>
> relevant code:
>
> Opt = True
> Opt at InterpMethod = "bilinear";"conser"
> ; Opt at InterpMethod = "neareststod";"conser"
> ; Opt at InterpMethod = "bilinear";"conser"
> Opt at WgtFileName = wgt_FILE_NAME
> print("madeit1")
> Opt at SrcLargeFile = "True"
> print("madeit2")
> Opt at DstLargeFile = "True"
> print("madeit3")
> Opt at SrcGridLat = latyi
> Opt at SrcGridLon = lonxi
> Opt at SrcRegional = False
> Opt at ForceOverwrite = True
> Opt at Debug = True
> Opt at PrintTimings = True
>
> ;********* Desired lat lon **************
>
> Opt at DstGridLat = latyo
> Opt at DstGridLon = long
>
> cntrycodes = ESMF_regrid(PRECTmms_targetfile,Opt)
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://secure-web.cisco.com/1FLS8b8UMPOWwIOkergtuI_KOBEkyXwmI43UYByWOMUCRi_FoeP7iXGCWihw3psqm9Xgv9JNKCEViWINSw6_HbSqheQ9NNt7_bgHfSypetnqi3yh_yaqVT6HZpQBWw2KfGzzoH0yFOTyppUUmlPFZmxQ8sWnFmHLG9g8Ob36cfqCnb1xwBSRRdwRI7KaMXje-DGIAmqOiFV5LM89Eqgn9qGycJa6J1YboPRdCnguH1tTSXMJwnmEMvQh8gCQzgFZkhzAA_-hfX_0zFQjIhgsvCHu1K9qyS_41myMQ1DBkH-R7YoNx40SmdHou6d0ucZn9wfH3t6YUnAwoOznYtT_-2It98e-GF41pnexxpUbIn-A/http%3A%2F%2Fmailman.ucar.edu%2Fmailman%2Flistinfo%2Fncl-talk
More information about the ncl-talk
mailing list