Skip to content

ESMF regrid problem #1125

Closed
Closed
@durack1

Description

@durack1

From: , Mark
Date: Wednesday, March 4, 2015 at 11:40 AM
To: "Doutriaux, Charles", "Paul J. Durack"
Subject: CDAT regridder issue

Hi Charles and Paul,

Have you guys ever encountered the following issue?

If I regrid using
SWCRE_grd=SWCRE.regrid(horiz_grid,regridTool="regrid2”), everything looks okay (see attached top right figure).

But when I regrid using
SWCRE_grd=SWCRE.regrid(horiz_grid,regridTool="esmf",regridMethod = "linear”), things get messed up, but only in the NH. Note how things look okay in the SH. (See attached bottom right figure.)

My grids seem to be fine:
Original longitudes:

SWCRE.getLongitude()[:]
Out[39]:
array([ 135.5, 136.5, 137.5, 138.5, 139.5, 140.5, 141.5, 142.5,
143.5, 144.5, 145.5, 146.5, 147.5, 148.5, 149.5, 150.5,
151.5, 152.5, 153.5, 154.5, 155.5, 156.5, 157.5, 158.5,
159.5, 160.5, 161.5, 162.5, 163.5, 164.5, 165.5, 166.5,
167.5, 168.5, 169.5, 170.5, 171.5, 172.5, 173.5, 174.5,
175.5, 176.5, 177.5, 178.5, 179.5, 180.5, 181.5, 182.5,
183.5, 184.5, 185.5, 186.5, 187.5, 188.5, 189.5, 190.5,
191.5, 192.5, 193.5, 194.5, 195.5, 196.5, 197.5, 198.5,
199.5, 200.5, 201.5, 202.5, 203.5, 204.5, 205.5, 206.5,
207.5, 208.5, 209.5, 210.5, 211.5, 212.5, 213.5, 214.5,
215.5, 216.5, 217.5, 218.5, 219.5, 220.5, 221.5, 222.5,
223.5, 224.5, 225.5, 226.5, 227.5, 228.5, 229.5, 230.5,
231.5, 232.5, 233.5, 234.5], dtype=float32)

Destination longitudes:

horiz_grid.getLongitude()[:]
Out[38]:
array([ 135., 137., 139., 141., 143., 145., 147., 149., 151.,
153., 155., 157., 159., 161., 163., 165., 167., 169.,
171., 173., 175., 177., 179., 181., 183., 185., 187.,
189., 191., 193., 195., 197., 199., 201., 203., 205.,
207., 209., 211., 213., 215., 217., 219., 221., 223.,
225., 227., 229., 231., 233., 235.])

Any ideas?

Mark
swcre_regrid_2options

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions