Questions tagged [gridding]

Gridding is the process of mapping scattered dataset onto a structured grid via some type of interpolation.

16 questions
2
votes
1 answer

2D interpolation problem with scattered data

I have a function F which allows me to calculate 'y' based on x and z values. i.e. y = F(x,z). This function is very computationally intensive; it takes around 10 mins per single evaluation. What I really need is to find a value of "z" given a pair…
Kent
  • 143
  • 6
1
vote
1 answer

Convert (latitude, longitude, variable) scattered dataset to gridded data

I have a pandas data frame (90720 rows) consisting of longitude, latitude, and variable columns. The data represent points on a 1.3 km resolution grid but are not in any particular order within the data frame. An example of the dataset looks…
VAL
  • 39
  • 3
1
vote
0 answers

How to aggregate high resolution array to a coarse array based on row and column mapping keys arrays faster in python?

I'm having a problem to come with an efficient way to aggregate a high resolution numpy array to a coarse array based on row and column mapping keys that shows the corresponding row and column numbers in the coarse resolution for each cell in the…
newbieee
  • 11
  • 1
1
vote
0 answers

To make value interpolation on cylindrical surface

I have a issue to interpolate my values "c" on cylindrical surface. The problem is that possibly I dont understand how to indicate surface for gridding with gridddata function.. >import numpy as np import matplotlib.pyplot as plt from…
1
vote
1 answer

python - how do I fix interpolate grid origin issues in matplotlib?

I have a data set with a small sample size of data. For example: My code looks something like this: import numpy as np import pandas as pd import matplotlib.pyplot as plt from scipy.interpolate import…
signvm
  • 13
  • 5
1
vote
1 answer

Why is hexbin grid distorted in polar stereo projection

I am trying to understand why a hexbin plot in a north or south polar stereo projection shows squashed hexagons, even though the area of the grid is square and the projection is approximately equal area. I've tried both north and south polar stereo…
Alan
  • 13
  • 2
0
votes
0 answers

Trouble visualizing gridded Copernicus Marine data on a map after transforming it to a GeoDataFrame

I'm working with copernicus marine data for the school and I have a problem: I took my inspiration from this code. We have copernicus marine service data in netcdf4 format, these data have as variables environmental data, depth, time, latitude and…
Angel
  • 1
0
votes
0 answers

Upscaling a 3D array in python

I have a 3D array of float64, called A, with shape [396,380,1016]. 380 and 1016 are latitude (latmin=30.1875, latmax=45.9792) and longitude (lonmin=-6, lonmax=36.2917), respectively, representing a grid with resolution of ca. 0.041 degree. 396 is…
0
votes
0 answers

Gridding in geospatial coordinates

I have a aerial camera's view on the ground that is defined by 4 corners in Lat/Long coordinates. In Python, what is the best way to generate a grid, say 100X100, inside this trapezoid defined by the 4 corners? Context: I am trying to get a fast…
0
votes
1 answer

Efficient way to to get evenly-spaced data / pandas DataFrame.reindex

In order to be able to compare different data sets I need a way to put these on a common time basis. What is the most efficient way to achieve this? I've tried a few ways and the most easy should - to my understanding - be with pandas…
planetmaker
  • 5,884
  • 3
  • 28
  • 37
0
votes
1 answer

Converting time series data to gridded 3D array in python

I have a dataframe with the timeseries data for many years and includes values of variable at different lat lon locations every day. For a given day, the variable is recorded at different locations. Following is a snippet of the dataframe which I am…
0
votes
0 answers

Removing grid lines in a map and smoothing in maps

I am trying to remove the grids on my map. I used several commands for example: plt.grid(), plt.rcParams["axes.grid"] = False but nothing happens, the map produced as is with the grids. Is there any possible way to remove the grids? Another thing…
0
votes
0 answers

Is there a way to convert an image to gridded raster data?

I've been doing some research exploring different types of mapping data analysis. I've hand drawn a map of some areas using GIMP, which simply divides an area into regions on a blank, geographic map. Then I figured it would be nice to have some kind…
0
votes
1 answer

Gridding/binning data

I have a dataset with three columns: lat, lon, and wind speed. My goal is to have a 2-dimensional lat/lon gridded array that sums the wind speed observations that fall within each gridbox. It seems like that should be possible with groupby or cut in…
0
votes
0 answers

I want to compare images that I reconstructed using gridding algorithm. How do I do that with MATLAB?

I am currently working on a project related to motion artifacts in MR images. I have some MR images and i'm extracting data from those images using different trajectories (e.g. Spiral, Radial etc) and reconstructing them using gridding algorithm.…
shaurov2253
  • 183
  • 1
  • 12
1
2