DB_list = [DB] * len(vars_metadata) Dataset_Name_list = [Dataset_Name] * len(vars_metadata) short_name_list = list(vars_metadata['var_short_name']) long_name_list = list(vars_metadata['var_long_name']) unit_list = list(ip.NaNtoNone(vars_metadata['var_unit'])) spatial_res_list = list('1') * len(vars_metadata) # Irregular temporal_res_list = list('1') * len(vars_metadata) # Irregular keyword_list = list(vars_metadata['var_keywords']) comment_list = list(ip.NaNtoNone(vars_metadata['var_comment'])) Temporal_Coverage_Begin_list = [cF.findMinMaxDate(Dataset_Name)['minDate'] ] * len(vars_metadata) Temporal_Coverage_End_list = [cF.findMinMaxDate(Dataset_Name)['maxDate'] ] * len(vars_metadata) Lat_Coverage_Begin_list = [cF.findSpatialBounds(Dataset_Name)['minLat'] ] * len(vars_metadata) Lat_Coverage_End_list = [cF.findSpatialBounds(Dataset_Name)['maxLat'] ] * len(vars_metadata) Lon_Coverage_Begin_list = [cF.findSpatialBounds(Dataset_Name)['minLon'] ] * len(vars_metadata) Lon_Coverage_End_list = [cF.findSpatialBounds(Dataset_Name)['maxLon'] ] * len(vars_metadata) Grid_Mapping_list = ['CRS'] * len(vars_metadata) Make_ID_list = ['1'] * len(vars_metadata) #Observation Sensor_ID_list = ['2'] * len(vars_metadata) # In-Situ Process_ID_list = ['2'] * len(vars_metadata) # Reprocessed Study_Domain_ID_list = ['6'] * len( vars_metadata) # Chemistry+Biology+Biogeochemistry # print(DB_list, Dataset_Name_list, short_name_list, long_name_list, unit_list,temporal_res_list, spatial_res_list, Temporal_Coverage_Begin_list, Temporal_Coverage_End_list, Lat_Coverage_Begin_list, Lat_Coverage_End_list, Lon_Coverage_Begin_list, Lon_Coverage_End_list, Grid_Mapping_list,Make_ID_list, Sensor_ID_list, Process_ID_list, Study_Domain_ID_list, keyword_list, comment_list)
reference_list = (dataset_metadata.iloc[0]['dataset_references']).split(",") # # # DB_list = [DB] * len(vars_metadata) Dataset_Name_list = [Dataset_Name] * len(vars_metadata) short_name_list = list(vars_metadata['var_short_name']) long_name_list = list(vars_metadata['var_long_name']) unit_list = list(ip.NaNtoNone(vars_metadata['var_unit'])) # # spatial_res_list = list('1') * len(vars_metadata)# Irregular temporal_res_list = list('1') * len(vars_metadata) # Irregular # keyword_list = list(vars_metadata['var_keywords']) comment_list = list(ip.NaNtoNone(vars_metadata['var_comment'])) Temporal_Coverage_Begin_list = [cF.findMinMaxDate(Dataset_Name)['minDate']] * len(vars_metadata) Temporal_Coverage_End_list = [cF.findMinMaxDate(Dataset_Name)['maxDate']] * len(vars_metadata) Lat_Coverage_Begin_list = [cF.findSpatialBounds(Dataset_Name)['minLat']] * len(vars_metadata) Lat_Coverage_End_list = [cF.findSpatialBounds(Dataset_Name)['maxLat']] * len(vars_metadata) Lon_Coverage_Begin_list = [cF.findSpatialBounds(Dataset_Name)['minLon']] * len(vars_metadata) Lon_Coverage_End_list = [cF.findSpatialBounds(Dataset_Name)['maxLon']] * len(vars_metadata) Grid_Mapping_list = ['CRS'] * len(vars_metadata) Make_ID_list = ['1'] * len(vars_metadata)#Observation Sensor_ID_list = ['2'] * len(vars_metadata) # In-Situ Process_ID_list = ['2'] * len(vars_metadata) # Reprocessed Study_Domain_ID_list = ['9'] * len(vars_metadata) # print(' DB ' , len(DB), '\n', 'Dataset_Name ' , len(Dataset_Name), '\n', 'Dataset_Long_Name ' , len(Dataset_Long_Name), '\n', 'Variables ' , # len(Variables), '\n', 'Dataset Source ' , len(Data_Source), '\n', 'Distributor ' , len(Distributor), '\n', 'Description ' , len(Description), '\n', 'Climatology ' , len(Climatology)) # print(' DB ' , len(DB), '\n', 'Dataset_Name ' , len(Dataset_Name), '\n', 'Dataset_Long_Name ' , len(Dataset_Long_Name), '\n', 'Variables ' , # len(Variables), '\n', 'Dataset Source ' , len(Data_Source), '\n', 'Distributor ' , len(Distributor), '\n', 'Description ' , len(Description), '\n', 'Climatology ' , len(Climatology)) print(len(DB_list),len(Dataset_Name_list),len(short_name_list),len(long_name_list),len(unit_list),len(temporal_res_list),len(spatial_res_list),len(Temporal_Coverage_Begin_list),len(Temporal_Coverage_End_list),len(Lat_Coverage_Begin_list),len(Lat_Coverage_End_list),len(Lon_Coverage_Begin_list),len(Lon_Coverage_End_list),len(Grid_Mapping_list),len(Make_ID_list),len(Sensor_ID_list),len(Process_ID_list),len(Study_Domain_ID_list),len(keyword_list),len(comment_list))