NumPy generate a 2d linear array from a min and max number

4 days ago 14
ARTICLE AD BOX

So I'm trying to generate a map for a personal project using opensimplex noise, multiple layers etc.

My problem is that I want to recreate the equator to combine with a temperature map to obviously make it colder at the poles and warmer in the middle, the issue is that I'm new to NumPy so I don't know how to do this.

This is what I want the dataset to look like when it's returned

[[-1, -1, -1, -1, -1, -1], [ -0.9, -0.9, -0.9, -0.9, -0.9], [ -0.8, -0.8, -0.8, -0.8, -0.8], ... ]

So, each nested array would be filled with the same value, the reason I need this to recur like this is since I need to combine it with a noise map to make the middle warmer and the top and bottom colder.

There is also the second issue that I'm not aware on how to solve of creating multiple "keypoints" of sorts, where the range would be, for example: -1, 1, -1, not just the range being from -1 to 1

Read Entire Article