Skip to content

Utilities

# SpaceLiDAR.angle!Method.

angle!(table)

Sets the angle column in table as returned from points. See angle for details.

source

# SpaceLiDAR.shiftMethod.

shift(longitude, latitude, angle, distance)

Shift longitude and latitude with distance in [m] in direction angle, where North is 0°. Returns a tuple of the shifted coordinates: (longitude, latitude). Useful for offsetting SpaceLiDAR points to the left or right of the track, in combination with angle.

source

# SpaceLiDAR.to_egm2008!Method.

to_egm2008!(table)

Converts ellipsoid heights to geoid heights using the EGM2008 geoid model. Assumes a table as generated from points with columns :latitude, :longitude, and :height. Will overwrite the :height column with the geoid height.

source

<a id='SpaceLiDAR.instantiate-Union{Tuple{T}, Tuple{Vector{T}, AbstractString}} where T<:SpaceLiDAR.Granule' href='#SpaceLiDAR.instantiate-Union{Tuple{T}, Tuple{Vector{T}, AbstractString}} where T<:SpaceLiDAR.Granule'># SpaceLiDAR.instantiateMethod.

instantiate(granules::Vector{::Granule}, folder::AbstractString)

For a given list of granules from find, match the granules to the local files and return a new list of granules with the local filepaths if they exist.

source

# SpaceLiDAR.isvalidMethod.

isvalid(g::Granule)

Checks if a granule is has a valid, local and non-corrupt .h5 file. Can be combined with rm(::Granule) to remove invalid granules.

source

# SpaceLiDAR.netrc!Method.

netrc!(username, password)

Writes/updates a .netrc file for ICESat-2 and GEDI downloads. A .netrc is a plaintext file containing your username and password for NASA EarthData and DAACs, and can be automatically used by Julia using Downloads and tools like wget, curl among others.

source