def _MIL2ASAE_fname(date, path, orbit): orbit = fN.orbit2str(orbit) path = fN.path2str(path) from constant import HEADER_MIL2ASAE_FILENAME dir_aerosol = header_file_aerosol + date file_aerosol = dir_aerosol + '/' + HEADER_MIL2ASAE_FILENAME + path + '_O' + orbit + '_F12_0022.hdf' return str(file_aerosol)
def mil2asae(date, path, orbit): from constant import HEADER_MIL2ASAE_FILENAME, HEADER_MIL2ASAE_URL orbit = fN.orbit2str(orbit) path = fN.path2str(path) dir_aerosol = '../../projects/aerosol/products/MIL2ASAE/' + date if not os.path.exists(dir_aerosol): os.makedirs(dir_aerosol) file_name = HEADER_MIL2ASAE_FILENAME + path + '_O' + orbit + '_F12_0022.hdf' local_file_name = dir_aerosol + '/' + file_name file_url = HEADER_MIL2ASAE_URL + date + '/' + file_name _fetch(file_url, local_file_name)
def mi1b2t(date, path, orbit, cam): from constant import HEADER_MI1B2T_FILENAME from constant import HEADER_MI1B2T_URL orbit = fN.orbit2str(orbit) path = fN.path2str(path) dir_radiance = '../../projects/aerosol/products/MI1B2T/' + date if not os.path.exists(dir_radiance): os.makedirs(dir_radiance) file_name = HEADER_MI1B2T_FILENAME + path + '_O' + orbit + '_' + cam + '_F03_0024.hdf' local_file_name = dir_radiance + '/' + file_name file_url = HEADER_MI1B2T_URL + date + '/' + file_name _fetch(file_url, local_file_name)
def _result_fname(date, path, orbit, block, r, Method): orbit = fN.orbit2str(orbit) path = fN.path2str(path) return str(header_result + date + '_P' + path + '_O' + orbit + '_B' + str(block) + '_R' + str(r) + '_' + Method + '.mat')
def _reg_mat_fname(date, path, orbit, block, r): orbit = fN.orbit2str(orbit) path = fN.path2str(path) return str(header_data + date + '_P' + path + '_O' + orbit + '_B' + str(block) + '_R' + str(r) + '.mat')