Input and Output

This module has functions that operate as a backend for a GUI. The functions have been rewritten from the transform module using pandas.

Converting

geodepy.inputoutput.grid2geoio(fn, fn_out, easting, northing, utmzone, geotypeout)[source]

The CSV data must have headers.

Parameters:
  • fn – input file path

  • fn_out – file output path

  • easting – is the column name in the csv where the eastings are stored

  • northing – is the column name in the csv where the northings are stored

  • utmzone – is the column name in the csv where the UTM Zone is stored

  • geotypeout – format of latitude and longitude output e.g. DD or DMS

Returns:

Data is output to the fn_out location as a CSV.

geodepy.inputoutput.geo2gridio(fn, fn_out, latitude, longitude, geotypein)[source]

The CSV data must have headers.

Parameters:
  • fn – input file path

  • fn_out – file output path

  • latitude – is the column name in the csv where the latitudes are stored

  • longitude – is the column name in the csv where the longitudes are stored

  • geotypein – format of latitude and longitude e.g. DD or DMS

Returns:

Data is output to the fn_out location as a CSV.

Transformations

geodepy.inputoutput.gdatrans7(fn, fn_out, latitude, longitude, ellht, gdageotypein, direction)[source]

The CSV data must have headers.

Parameters:
  • fn – input file path

  • fn_out – file output path

  • latitude – is the column name in the csv where the latitudes are stored

  • longitude – is the column name in the csv where the longitudes are stored

  • ellht – is the column name in the csv where the ellipsoidal heights are stored

  • gdageotypein – format of latitude and longitude e.g. DD or DMS

  • direction – either “94to2020” or “2020to94”. Specifies the datum to transform from and to.

Returns:

Data is output to the fn_out location as a CSV.