-
Notifications
You must be signed in to change notification settings - Fork 24
Description
#https://github.com/sourcery-ai review or https://github.com/sourcery-ai summary
https://github.com/sourcery-ai plan
https://github.com/sourcery-ai develop
This script https://github.com/geodesymiami/rsmas_insar/blob/master/minsar/utils/correct_geolocation.py currently reads and write an HDF5EOS file. Modify the scripts so that it accepts a *csv file as positional argument. Example code where the csv file is read is at this read_from_csv_file function: https://github.com/geodesymiami/test_insarmaps_scripts/blob/8ea2dd142a7a2209bc371d92bbe6278ca2a6121f/test_hdfeos5_2json_mbtiles.py#L397
But I don't want to use this external function. It should be local in the correct_geolocation.py script. Use the dem_error variable for the geolocation correction. Currently it is read from the DEM_ERROR_FILE which is an *.h5 file.
The geolocation correction should produce two additional columns X_geocorr and Y_geocorr. They should be inserted prior to point_id.
The script should accept the --outfile option. For correct_geolocation.py North_20162023.csv --outfile North_20162023_geocorr.csv it will create a new file. For correct_geolocation.py North_20162023.csv it will insert the 2 columns into the existing file (North_20162023.csv). There is no need for the --reverse option to work. Make clear in the --help message and example message that --reverse only works when working with HDF5 files. Make sure that for --help it is messaged that two new lines are created. Also make sure that it says that the *csv files are in SARvey format produced for example by ogr2ogr -f CSV -lco GEOMETRY=AS_XY -t_srs EPSG:4326 p2_coh80.csv outputs/shp/p2_coh80_ts.shp