• Daniel Scheffler's avatar
    second (not completely working) version of wrapper for atmospheric correction · d06523f9
    Daniel Scheffler authored
    algorithms.GEOPROCESSING:
    - revised imports
    algorithms.gms_object:
    - gms_object:
        - revised imports
        - added property 'dem': gms_object can now directly provide a corresponding SRTM DEM
        - arr: bandnames of property 'arr' are now in the form [B01, .., B8A,] and correspond to LayerBandsAssignment
        - added property 'ac_options': getter or options dictionary needed for atmospheric correction
        - from_disk(): added time zone to 'acquisition_date' datetime object
    - added class failed_GMS_object (based on earlier version from helper functions)
    algorithms.L1A_P.L1A_object:
    - revised imports
    - calc_TOARadRefTemp(): bugfix for wrong nodata value in out returned array in case of Sentinel-2
    - update_spec_vals_according_to_dtype: bugfix for not updating L1A_object.arr.nodata
    algorithms.L1B_P:
    - revised imports
    algorithms.L1C_P:
    - L1C_object:
        - get_lonlat_coord_array(): changed handling of return values
        - calc_acquisition_illumination_geometry(): changed handling of return values
    - AtmCorr:
        -  added attribute 'ac_input' containing input args/kwargs of atmospheric correction
        - data: now uses L1C_obj.arr.bandnames for lopping over bands
        - added property 'nodata'
        - added property 'tile_name'
        - added property 'band_spatial_sampling'
        - added property 'nodata'
        - added property 'nodata'
        - revised property 'metadata'
        - added _meta_get_spatial_samplings()
        - added _meta_get_solar_irradiance()
        - added _meta_get_viewing_zenith()
        - added _meta_get_viewing_azimuth()
        - added _meta_get_relative_viewing_azimuth()
        - revised run_atmospheric_correction()
        - revised join_results_to_inObjs()
    algorithms.METADATA
    - revised imports
    - added 'ScaleFactor' to meta_odict
    io.Input_reader:
    - fixed some bad type hints
    - SRF_reader(): moved path generator functionality to path_generator
    - added open_specific_file_within_archive() (moved)
    - added get_dem_by_extent(): new function for reading SRTM DEM data and warping to a given pixel grid
    io.Output_writer:
    - revised imports
    - fixed some bad type hints
    - added 'ScaleFactor' to enviHdr_keyOrder
    misc.__init__:
    - added __all__
    misc.database_tools:
    - fixed some bad type hints
    - get_overlapping_scenes_from_postgreSQLdb(): bugfix for wrong indexing
    misc.definition_dicts:
    - new module, consisting of earlier functions from helper_functions
    misc.exception_handler:
    - new module, consisting of earlier functions from helper_functions
    misc.helper_functions:
    - moved trace_unhandled_exceptions(), log_uncaught_exceptions() to misc.exception_handler
    - moved failed_GMS_object to gms_object
    - moved get_job_summary to process_controller
    - fixed some bad type hints
    - moved get_GMS_sensorcode(), get_mask_classdefinition(), get_outFillZeroSaturated(), get_mask_colormap() to misc.definition_dicts
    - moved open_specific_file_within_archive() to Input_reader
    misc.path_generator:
    - path_generator:
        - revised get_path_rawdata()
        - revised get_local_archive_path_baseN(): 'image_type' is not used anymore; removed deprecated warning
        - get_path_cloud_class_obj(): added cloud classificator files for Sentinel-2
        - added get_path_srf_file()
        - added get_path_snr_model()
        - added get_path_ac_options()
        - added get_path_ac_table()
    processing.multiproc:
    - revised MAP(): added new keyword 'flatten_ouput'
    processing.pipeline:
    - updated imports
    - revised L1C_map(): input represents one OR multiple L1B_objects belonging to the same scene_ID (atmospheric correction has to be applied to ALL subsystems of a scene at once)
    processing.process_controller:
    - changed some map calls due to new keyword  'flatten_ouput' of processing.multiproc.MAP
    - revised L1C_processing(): added grouping of L1B_objects by scene_ID
    - revised create_job_summary(): bugfix for emtpy input list of get_job_summary()
    - added get_job_summary(): moved from helper_functions
    config.Job:
    - added new attributes 'path_ac_options', 'path_ac_tables', 'path_SNR_models', 'path_dem_proc_srtm_90m', 'path_ECMWF_db'
    pgSGL_db table 'config':
    - added keys 'path_SNR_models', 'path_ac_options', 'path_dem_proc_srtm_90m', 'path_ECMWF_db',  'path_ac_tables'
    Fileserver:
    - added input datasets for atmospheric correction
    - updated __version__
    d06523f9
L1A_P.py 51.1 KB