• Daniel Scheffler's avatar
    First prototype of algorithms for geometrical and spectral resolution working... · 9142f468
    Daniel Scheffler authored
    First prototype of algorithms for geometrical and spectral resolution working in map-reduce context (L2A, L2B).
    GEOP:
        - renamed GEOPROCESSING_BD.py to GEOPROCESSING.py
        - moved get_prjLonLat(), get_proj4info(), corner_coord_to_minmax() to GEOP
        - added docstrings to DN2Rad(), DN2TOARef(), TOARad2Kelvin_fastforward(), DN2DegreesCelsius_fastforward()
    L1A_P:
        - L1A_object.fill_arr_from_disk(): further silencing of console outputs
    L1B_P:
        - moved get_DESHIFTER_configs() and class DESHIFTER() to L2A_P
        - adjusted initial values for COREG attributes related to reference image (not None anymore in order to make L2A_P work if shift calculation failed)
        - increased database statement timeouts for queries within get_reference_image_params() to 25sek
        - L1B_object():
            - added attribute "deshift_results"
            - removed deprecated code
            - added join_deshift_results()
            - revised apply_deshift_results()
    L2A_P:
        -  added get_DESHIFTER_configs() and class DESHIFTER() from L1B_P
        - fixed two bugs in DESHIFTER.correct_shifts() where DESHIFTER.band2process was not respected and whole image cube was read instead of only one band
        - added class L2A_object()
    L2B_P:
        - added class L2B_object()
        - L2B_object():
            - added interpolate_cube_linear()
            - added spectral_homogenization()
    META:
        - renamed METADATA_BD.py to METADATA.py
    INP_R:
        - added quiet mode to read_ENVIfile()
    OUT_W:
        - added enviHdr_keyOrder using list from reorder_envi_header()
        - fixed a bug in reorder_ENVI_header() that caused repetitions of header keys
        - adjusted print_dict within mask_to_ENVI_Classification() in order to also support L2A and L2B
    HLP_F:
        - added parent objects for L2A and L2B in parentObjDict
        - added type hints to cut_GMS_obj_into_blocks() and merge_GMS_tiles_to_GMS_obj()
    GITIGNORE:
        - updated .gitignore file
    CFG:
        - added virtual_sensor_id, datasetid_spectral_ref, target_CWL, target_FWHM to usecase class by querying the database
    PC:
        - added type hints to mapper functions
        - revised L2A_map_2()
        - added L2B_map_1()
        - revised/added L2A algorithm calls (only Flink mode is supported so far)
        - added L2B algorithm calls (only Flink mode is supported so far)
    pgDB:
        - added Sentinel-2A virtual sensors to virtual_sensors table (different spatial resolutions)
        - added wavelengths positions and band widths to virtual_sensors table
    9142f468
GEOPROCESSING.py 199 KB