Skip to content

about : coordinate projection #88

Answered by santisoler
prince-Ha asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @prince-Ha!

As you can see in the screenshot you posted not every point in the UTM projected grid is nan. Having nans in projected grid is expected: the vd.project_grid is basically doing two things:

  1. Projects the coordinates of each one of the grid points.
  2. Defines a set of regularly spaced projected easting and northing coordinates and interpolates the projected values of the grid into this new regular grid.

Since projections "deform" the geometry, when projecting a regular grid in longitude and latitude we don't get a regular grid in the projected coordinates. That's why we apply the second step. During this interpolation, some points of the projected grid will be set to nans, parti…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@prince-Ha
Comment options

Answer selected by leouieda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants