Changeset 55


Ignore:
Timestamp:
08/20/14 18:45:39 (10 years ago)
Author:
lahlod
Message:

new scripts

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  
    5353 
    5454 
    55 ''' 
     55 
    5656############################################ 
    5757# time evolution (monthly) in a given zone # 
     
    6262 
    6363# select borders of zone 
    64 yi = 1880.  
    65 yf = 2280. 
    66 xi = -480. 
    67 xf = -120. 
     64yi = 320. 
     65yf =720. 
     66xi = -1080.  
     67xf = -720. 
    6868 
    6969#find corresponding index in xvec and yvec... 
     
    124124    diff_a23 = fichier_a23.variables['e_spec_lamb'][:] 
    125125    fichier_a23.close() 
    126     # AMSUB 
     126    # AMSUB 89 
    127127    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') 
    128128    spec_b = fichier_b.variables['e_spec'][:] 
     
    207207ion() 
    208208figure() 
     209plot(std_year_spec_a - std_year_spec_b, 'r', label = '[std AMSUA89] - [std AMSUB89]') 
     210plot(np.zeros([365]), '--k') 
     211xlim(0, 365) 
     212ylim(-0.020, 0.020) 
     213xticks(vec_months, month, rotation = 25) 
     214#yticks(np.arange(0.4, 1., 0.05)) 
     215fontP = FontProperties() 
     216fontP.set_size('small') 
     217legend(loc = 3, prop = fontP) 
     218grid() 
     219ylabel('bias of std') 
     220title('North Canadian Archipelago') 
     221plt.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 
     225vec_months = np.array([0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334]) 
     226ion() 
     227figure() 
    209228subplot(2, 1, 1) 
    210229plot(mean_year_spec_a, '+-r', label = 'AMSUA89') 
     
    230249#plot(mean_year_lamb_a - mean_year_lamb_b, 'b', label = 'lamb AMSUA - AMSUB') 
    231250plot(np.zeros([365], float), '--k') 
    232 plot(std_year_spec_a, '+-r', label = 'std spec AMSUA89') 
     251plot(std_year_spec_a , '+-r', label = 'std spec AMSUA89') 
    233252plot(std_year_spec_b, '+-g', label = 'std spec AMSUB89') 
    234253#plot(std_year_lamb_a, 'c', label = 'lamb AMSUA') 
  • trunk/src/scripts_Laura/ARCTIC/Travail_CEN/param_anomaly.py

    r54 r55  
    5757ice_diff_anom = np.zeros([4, M, ny, nx], float) 
    5858ice_ratio_anom = np.zeros([4, M, ny, nx], float) 
    59 for ifr in range (0, 4): 
     59for ifr in range (3, 4): 
    6060    print 'frequency ' + frequ[ifr] 
    6161    for imo in range (0, M): 
    6262        print 'month ' + month[imo] 
    63         fichier_ice = Dataset('/net/argos/data/parvati/lahlod/ARCTIC/AMSUA_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') 
    6464        ice_spec = fichier_ice.variables['spec_ice_area'][:] 
    6565        ice_lamb = fichier_ice.variables['lamb_ice_area'][:] 
     
    8888        ########################  
    8989        print 'stack in file month ' + str(month[imo]) 
    90         rootgrp = Dataset('/net/argos/data/parvati/lahlod/ARCTIC/AMSUA_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') 
    9191        rootgrp.createDimension('longitude', nx) 
    9292        rootgrp.createDimension('latitude', ny) 
Note: See TracChangeset for help on using the changeset viewer.