Navigation and Surveying PHP Package (NASPACK) focuses on functions useful for the geomatics and surveying community.

Navigation and Surveying PHP Package (NASPACK) se concentre sur les fonctions pouvant être utile aux sciences de la
géomatique et du géomètre.

DOWNLOAD THE NASPACK PHP SOURCE CODE HERE


Name
Function
   

asc2bin

Convert an input string into it's binary equivalent.

average

Compute the average value of a vector

tobase62

Convert numbers into Base62 format

frombase62

Convert numbers from Base62 format into base 10 format

bearing

Compute the bearing and distance between 2 points

bearing_to_rd

Return the positive angle value in radian, input is angle in radian, degree or gon

bearing_unit

Provide the angle value in radian having 3 angles expressed in all gon, radian and degree

bilateration

Compute a bilateration

bin2asc

convert a binary representation of a string back into it's original form.

check_time

Repair the over- and underflow of GPS time

chinv

Compute the Bessel latitude & longitude coordinates from the Swiss national grid system

ch032wgs

Direct approximated transformation from the Swiss national grid coordinates to WGS84 latitude, longitude coordinates

clear_files_type

Erase all the files in a folders from type X that were produced before a given time T

correction_distance_CH

Compute in the Swiss Grid System a compensated distance

cotegeoide

Computation of the cote of the geoid based on a file input

cote_wgs_ch03

Compute the difference between the WGS84 ellipsoïde and Bessel ellipsoïde

deg2dd_mm

Transforms angles in expressed in degree in dd.mm... format

dd_mm2deg

Transforms angles in expressed in dd.mm... in degree format

deg2sec

Transforms angles expressed in degree, in degree, minute, second

dircosine

Compute Direction Cosine Matrix. Input: matrix of satellite positions in user defined cartesian coordinates AND estimated user position in user defined cartesian coordinates

dops

Compute DOPs [Dilution's-of-Precision] indicators

DOPs_plot

Produce a plot of the DOPs (Dilution Of Precision) indicators that can be selected individually: XDOP, YDOP, ZDOP, HDOP, TDOP, GDOP

duration

Compute the duration of a process with readable output year-month-day-hour-min-sec from input in [sec]

ell2geo

Transformation from ellipsoidic lat-long coordinate to geocentric XYZ coordinates with possible datum selection

ephemeris

Given a GPS satellite PRN, returns the corresponding ephemeris

ever_positive

Return an angle in radian that is always positive

excentrique

Compute an excentric station

extent

Compute the extent of the area from the list of coordinates and returns their values

find_catel

Function that finds in which "pixel" or "catel" the position is in order to process the correct transformation from start map to end map. Function used to pass from a topographic map to an illustrative or panoramic map and vice versa

fineltra

Function computing a transformation from one coordinate system to another using finite element transformation

ftp_rinex

Download the latest Rinex *.zip files from an external FTP server [http://argis.ualr.edu/ ], unzip them and save them locally returning the name of the file

geo2ell

Transformation from geocentric XYZ coordinate to ellipsoidic coordinate with possible datum selection

GPS_time

Conversion of Julian Day number to GPS week and Seconds of Week. Considers that time is UTC time and apply appropriate leap_second parameter.

granit2wgs

Performs the conversion between Bessel and WGS84 ellipsoïd using the GRANIT parameters

haversine

Compute the distance between 2 points using the Haversine formula

helmert2D_parameters

Compute the parameters of a 2D Helmert transformation

helmert2D_transformation

Apply the parameters of a 2D Helmert transformation to some new points. You can select the different parameters you want to apply.

helmert3D_parameters

Compute the parameters of a 3D Helmert transformation

helmert3D_transformation

Apply the parameters of a 3D Helmert transformation to some new points. You can select the different parameters you want to apply.

hour_correction

Allows to enter the hour with minute sexagesimal. Necessary because depending on the time zone I'm changing GPS day

import_file_data_tab

Import data from a file, line by line, where each column is separated by a tabulation

intersection

Compute an intersection

inside_triangle

Function that computes if a point T is within a triangle T1, T2, T3

julian_day

Conversion of a Gregorian Calendar Date to a Julian Date

KML2GPX

Convert a Google Earth KML file into a GPX file

matrix_4x4_inversion

Inversion of a 4x4 Matrix using the Cramer's rule

matrix_product

Compute the multiplication between two matrices

matrix_transpose

Compute the transposed matrix of a given matrix

new_point

Compute a new point coordinates based on starting point, distance and bearing

nivellement_trigonometrique

Computation of a trigonometric levelling (nivellement trigonométrique)

nmea2kml

Convert NMEA GGA and RMC data into a KML file readable by Google Earth [http://earth.google.com/ ]

precision_bilateration

Compute the precision of a bilateration

precision_intersection

Compute the precision of an intersection

precision_nivellement

Compute the precision of a trigonometric levelling

precision_resection

Compute the precision of a resection

projch

Compute the Swiss East, North coordinates from Bessel latitutde & longitude coordinates

rabattement

Compute a "rabattement"

rd_2_cc

Return an angle value in cc, from an angle input in radian

rd_2_unit

Return the angle value given in radian in a chosen value (radian, degree or gon)

readGGA

Read GGA messages out of NMEA and/or other data and output it in degree

readRMC

Read RMC messages out of NMEA and/or other data and output data in degree (lat-long-heading) and m/s (speed)

readGPX

Read GPX format and output latitude, longitude and altitude vectors

reduction_au_centre

Compute the reduction to the center of the direction measured in an excentric

resection

Compute a resection

resizejpeg

Creates a resized image based on the max width specified as well as generates a thumbnail from a rectangle cut from the middle of the image.
Author: Kyle Florence (kyle dot florence at gmail dot com)

rinex_XXn

Read and interpret the RINEX navigation file and puts all values in a single matrix

satpos

Computation of the X,Y,Z coordinates of the GPS satellites at time t for given ephemeris eph

sat_visibility

Compute and test if a satellite is visible for a User XYZ given position, a mask angle above the horizon of M degree and a hrizon representation of the obstructions of the sky.

sec2deg

Transforms angles expressed in degree, minute, second in degree

sec2sex

Transforms angles in expressed in degree, min, sec in second sexagesimal

skyplot

Creates a plot of the sky for the visibility of the satellites above at a given place considering a mask angle and user-input obstructions.

std

Compute the standard deviation of a vector

surface_triangle

Function that computes the surfaces P of a triangle T1, T2, T3

wgs2ch03

Direct approximated transformation from the WGS84 latitude, longitude coordinates to the Swiss national grid coordinates. WGS Latitude and Longitude in sec. sexagesimal

wgs2ch_granit

Performs the conversion between WGS84 and Bessel ellipsoïd using the GRANIT parameters

wgs2enu

Convert from WGS-84 ECEF cartesian coordinates to rectangular local-level-tangent ('East'-'North'-Up) coordinates.

GPSlatlong2enu

Convert from WGS-84 Lat-Long coordinates in degree to rectangular local-level-tangent ('East'-'North'-'Up'-'Azimuth') information.



© [Ka:nt] Powered by NASPACK Privacy-Disclaimer