Utilities¶
#
SpaceLiDAR.angle! — Method.
Sets the angle column in table as returned from points. See angle for details.
#
SpaceLiDAR.shift — Method.
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.
#
SpaceLiDAR.to_egm2008! — Method.
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.
<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.instantiate — Method.
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.
#
SpaceLiDAR.isvalid — Method.
Checks if a granule is has a valid, local and non-corrupt .h5 file. Can be combined with rm(::Granule) to remove invalid granules.
#
SpaceLiDAR.netrc! — Method.
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.