# Resize global temperature data

**URL:** <https://forum.opencv.org/t/resize-global-temperature-data/12272>\
**Category:** Uncategorized\
**Created:** [March 8, 2023, 8:20am UTC](https://forum.opencv.org/t/resize-global-temperature-data/12272 "2023-03-08T08:20:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lightningchaser](https://avatars.discourse-cdn.com/v4/letter/l/e47c2d/32.png) [@lightningchaser](https://forum.opencv.org/u/lightningchaser)\
**Post date:** [March 8, 2023, 8:20am UTC](https://forum.opencv.org/t/resize-global-temperature-data/12272/1 "2023-03-08T08:20:11Z")

</div>

I have a global 2D dataset of air temperature at a 0.125x0.125 degree resolution, shape=(1441, 2880) and I want to resize to a 0.1x0.1 degree grid which would result in a shape=(1801, 3600).

 ![world.PNG](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/9/9e94ed8d47ed2115f5a01d37e96ab45b1e9db5d6.jpeg)

Is there a way to make resize aware of the wrapping of the data around the world so there is a correct transition at the east and west boundaries?

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [March 8, 2023, 9:16am UTC](https://forum.opencv.org/t/resize-global-temperature-data/12272/2 "2023-03-08T09:16:06Z")

</div>

> [@lightningchaser](#):
>
> Is there a way to make resize aware of the wrapping of the data

No.

you can construct a source band across the seam, resize that, and apply half the result to each edge.
