Created
April 22, 2019 14:09
-
-
Save NimishMishra/d3bb3b4780ccb554ee6383896e34ac9c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import glob | |
import seaborn as sns | |
import matplotlib.pyplot as plt | |
sns.set() | |
month_dict = {'Jan': 1, 'Feb': 2, 'Mar': 3, 'Apr': 4, 'May': 5, 'Jun': 6, 'Jul': 7, 'Aug': 8, 'Sep': 9, 'Oct': 10, 'Nov':11, 'Dec':12} | |
mean_month_list = [] | |
mean_AOD_list = [] | |
csv_directory = '/Users/nimishmishra/Downloads/Kanpur MODIS Data/CSV Files/' | |
for filename in glob.glob(csv_directory + '*.csv'): | |
month = filename[63:66] | |
print("Printing data for " + month + " " + str(2018)) | |
data = pd.read_csv(filename) | |
date = data.Date | |
deep_blue_AOD = data['Deep Blue AOD'] | |
cloud_fraction = data['Cloud Fraction'] | |
scattering_angle = data['Scattering_angle'] | |
angstrom = data['Angstrom Exponent'] | |
combined_AOD = data['Combined AOD'] | |
plot(date, deep_blue_AOD, cloud_fraction, "Deep Blue AOD", "Cloud Fraction", csv_directory, month) | |
plot(date, combined_AOD, cloud_fraction, "Combined AOD", "Cloud Fraction", csv_directory, month) | |
plot(date, deep_blue_AOD, scattering_angle, "Deep Blue AOD", "Scattering Angle", csv_directory, month) | |
plot(date, deep_blue_AOD, angstrom, "Deep Blue AOD", "Angstrom Exp", csv_directory, month) | |
mean_month_list.append(month_dict[month]) | |
mean_AOD_list.append(create_averaged_data(deep_blue_AOD)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment