Changeset 55
- Timestamp:
- 08/20/14 18:45:39 (10 years ago)
- Location:
- trunk/src/scripts_Laura/ARCTIC/Travail_CEN
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/scripts_Laura/ARCTIC/Travail_CEN/daily_emis_AMSUA_AMSUB_89.py
r53 r55 53 53 54 54 55 ''' 55 56 56 ############################################ 57 57 # time evolution (monthly) in a given zone # … … 62 62 63 63 # select borders of zone 64 yi = 1880.65 yf = 2280.66 xi = - 480.67 xf = - 120.64 yi = 320. 65 yf =720. 66 xi = -1080. 67 xf = -720. 68 68 69 69 #find corresponding index in xvec and yvec... … … 124 124 diff_a23 = fichier_a23.variables['e_spec_lamb'][:] 125 125 fichier_a23.close() 126 # AMSUB 126 # AMSUB 89 127 127 fichier_b = Dataset('/net/argos/data/parvati/lahlod/ARCTIC/monthly_GLACE/gridded_data/cartesian_grid/res_20/cartesian_grid_res-20_monthly_data_lamb_spec_near_nadir_AMSUB89_' + month[imo] + '2009.nc', 'r', format = 'NETCDF3_CLASSIC') 128 128 spec_b = fichier_b.variables['e_spec'][:] … … 207 207 ion() 208 208 figure() 209 plot(std_year_spec_a - std_year_spec_b, 'r', label = '[std AMSUA89] - [std AMSUB89]') 210 plot(np.zeros([365]), '--k') 211 xlim(0, 365) 212 ylim(-0.020, 0.020) 213 xticks(vec_months, month, rotation = 25) 214 #yticks(np.arange(0.4, 1., 0.05)) 215 fontP = FontProperties() 216 fontP.set_size('small') 217 legend(loc = 3, prop = fontP) 218 grid() 219 ylabel('bias of std') 220 title('North Canadian Archipelago') 221 plt.savefig('/usr/home/lahlod/twice_d/fig_output_ARCTIC/fig_output_sea_ice_study/ice_class_AMSUA89_AMSUB89/evolution_by_zone/monthly_evolution_bias_std_AMSUA89_AMSUB89_zone_North_Canadian_Archipelago.png') 222 223 224 225 vec_months = np.array([0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334]) 226 ion() 227 figure() 209 228 subplot(2, 1, 1) 210 229 plot(mean_year_spec_a, '+-r', label = 'AMSUA89') … … 230 249 #plot(mean_year_lamb_a - mean_year_lamb_b, 'b', label = 'lamb AMSUA - AMSUB') 231 250 plot(np.zeros([365], float), '--k') 232 plot(std_year_spec_a , '+-r', label = 'std spec AMSUA89')251 plot(std_year_spec_a , '+-r', label = 'std spec AMSUA89') 233 252 plot(std_year_spec_b, '+-g', label = 'std spec AMSUB89') 234 253 #plot(std_year_lamb_a, 'c', label = 'lamb AMSUA') -
trunk/src/scripts_Laura/ARCTIC/Travail_CEN/param_anomaly.py
r54 r55 57 57 ice_diff_anom = np.zeros([4, M, ny, nx], float) 58 58 ice_ratio_anom = np.zeros([4, M, ny, nx], float) 59 for ifr in range ( 0, 4):59 for ifr in range (3, 4): 60 60 print 'frequency ' + frequ[ifr] 61 61 for imo in range (0, M): 62 62 print 'month ' + month[imo] 63 fichier_ice = Dataset('/net/argos/data/parvati/lahlod/ARCTIC/AMSU A_ice_class/sub_classification/cartesian_grid_map_sea_ice_extent_with-AMSUA23-and-89_' + month[imo] + '2009_AMSUA' + str(frequ[ifr]) + '_spec_thresholds.nc', 'r', format='NETCDF3_CLASSIC')63 fichier_ice = Dataset('/net/argos/data/parvati/lahlod/ARCTIC/AMSUB_ice_class/sub_classification/cartesian_grid_map_sea_ice_extent_with-AMSUA23-and-89_' + month[imo] + '2009_AMSUB' + str(frequ[ifr]) + '_spec_thresholds.nc', 'r', format='NETCDF3_CLASSIC') 64 64 ice_spec = fichier_ice.variables['spec_ice_area'][:] 65 65 ice_lamb = fichier_ice.variables['lamb_ice_area'][:] … … 88 88 ######################## 89 89 print 'stack in file month ' + str(month[imo]) 90 rootgrp = Dataset('/net/argos/data/parvati/lahlod/ARCTIC/AMSU A_ice_class/sub_classification/cartesian_grid_map_sea_ice_extent_with-AMSUA23-and-89_param_anomaly_' + month[imo] + '2009_AMSUA' + str(frequ[ifr]) + '.nc', 'w', format='NETCDF3_CLASSIC')90 rootgrp = Dataset('/net/argos/data/parvati/lahlod/ARCTIC/AMSUB_ice_class/sub_classification/cartesian_grid_map_sea_ice_extent_with-AMSUA23-and-89_param_anomaly_' + month[imo] + '2009_AMSUB' + str(frequ[ifr]) + '.nc', 'w', format='NETCDF3_CLASSIC') 91 91 rootgrp.createDimension('longitude', nx) 92 92 rootgrp.createDimension('latitude', ny)
Note: See TracChangeset
for help on using the changeset viewer.