13,284 questions
-3
votes
0
answers
31
views
How can I handle climate model evaluation between CMIP6 and CHIRPS, ERA5 in python colab [closed]
I initially exported CHIRPS and CMIP6 rainfall from Google Earth Engine as CSV for downstream analysis in Python/Colab. However, I am observing inconsistencies likely related to calendar handling, ...
-2
votes
0
answers
10
views
LaTeX: How to set different geometry margins for different pages based on PDF background images? [migrated]
I'm creating example papers in LaTeX with different PDF backgrounds for different pages, and demo PDFs are given as follows:
First page: example-image-a.pdf
Odd pages (except first): example-image-b....
Advice
1
vote
2
replies
41
views
For a given list of normal vectors, I need a triangulation of the unit sphere such that its triangles' normals are the input normals
Is it even guaranteed that such a triangulation even exists for all expected list of normals? (It's easy to think of edge cases where it doesn't, in my case the normals will be composed of a long list ...
Advice
3
votes
5
replies
143
views
Computing line intersection points on trapezoid-type grid
I need to compute ~2 million coordinates (64-bit float tuples)
They're the intersection points of lines that form a trapezoid-shaped grid (see visual below)
The shape of the trapezoid is different ...
Advice
1
vote
3
replies
61
views
Finding a point on a line, a given length from one end
I need to find the x and y axis points of an arbitrary line, knowing the start point, the end point, and the length of the line from the start point.
To do this I have been using the equation of a ...
Advice
0
votes
5
replies
189
views
Drawing geometric diagrams in R, ggplot
To illustrate the ideas behind discriminant analysis, I created the image below containing a scatterplot with two groups and a plot of the densities of the scores, LD1 on the discriminant function.
...
2
votes
1
answer
107
views
Is there a way to Quad Mesh a 2D Polygon in Python?
Is it possible to quad mesh a 2D polygon in Python? I only manage to tri mesh using compas_CGAL / triangle.triangulate but I am unable to find a quad mesh solution in Python. Thanks in advance. I have ...
-3
votes
1
answer
106
views
How to compute an optimal enclosing segment of a circle from a 2D point set?
I am looking for some advice on how to fit a circular segment to a set of 2D points. My dataset looks like this: 2d data to fit segment to
For clarity, my definition of an "optimal" segment ...
Advice
0
votes
6
replies
123
views
Polygon centroid calculation - centroid outside the polygon
I have 2 polygons which are very simmular but one has is centroid inside and the other outside.
Polygon 1 (inside) with
"X: 2590431 Y: 5823888"
"X: 2590433 Y: 5823881"
"X: ...
2
votes
1
answer
134
views
Calculating a light volume that comes in through a window
I have a room that is a box. There is a single rectangular window on one of the walls of the room. A directional light source is shining into the room through the window. The light source has a ...
1
vote
0
answers
67
views
GeoGebra Classic 5 — Can I save and run a batch of Input Bar commands from a plain text file?
I remember (from around 10 years ago) that in GeoGebra I could save the commands I would normally type into the Input Bar into a textual file, and then open/load/run them all at once, without having ...
1
vote
1
answer
155
views
Turn a convexhull defined by a list of 3D point coordinates into a 0-1 binary mask
I have a convexHull given by a list of 3d point coordinate generated by scipy.spatial.ConvexHull. Now the question is, I want to turn this convexhull defined by the list of vertices into a 0-1 binary ...
0
votes
1
answer
91
views
Issue when rotating around multiple axes
I am trying to replicate how the Hadamard gate works. I have a system consisting of a sphere with a cylinder attached, and I would like to rotate the whole system by 90 degrees around X and then by ...
3
votes
0
answers
79
views
Efficient function to check if there is a convex k-gon in given n points in 2D?
Suppose I am given n points in the plane, (x_1, y_1), ... , (x_n, y_n). I want to check if there is a subset of k points from these n that make a convex k-gon.
For instance, say I am given 25 points ...
0
votes
1
answer
63
views
How to partially reconstruct a mesh from another mesh surface while preserving the initial topology
I'm trying to reconstruct a part of a triangulated mesh from a surface I'm acquiring from a higher precision method. The initial mesh is triangulated and watertight, the patch surface is also a ...