Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardize everything to be long/lat #28

Closed
ConnectedSystems opened this issue Sep 28, 2024 · 0 comments · Fixed by #32
Closed

Standardize everything to be long/lat #28

ConnectedSystems opened this issue Sep 28, 2024 · 0 comments · Fixed by #32

Comments

@ConnectedSystems
Copy link
Collaborator

Accidentally implemented at least one method that expects values to be in lat/long rather than long/lat.
Long/lat is preferred as it aligns with the usual methods when working with images (width/height).

"""
masked_nearest(rst::Raster, z::Int, x::Int, y::Int, tile_size::Tuple{Int,Int}, orig_rst_size::Tuple{Int,Int})::Matrix
Resample a raster using nearest neighbor interpolation when the tile includes area outside
where data exists (e.g., viewing the globe where the data may appear in a small corner of
the tile). This approach prioritising performance over accuracy.
# Arguments
- `rst`: The input raster to be resampled.
- `z`: Tile zoom level requested.
- `x`: x coordinate for requested tile.
- `y`: y coordinate for the requested tile.
- `tile_size`: The desired dimensions of the tile (lat, long).
# Returns
Matrix with the resampled data.
"""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant