Changeset 27


Ignore:
Timestamp:
06/10/14 18:13:05 (10 years ago)
Author:
lahlod
Message:

modifs

Location:
trunk/src/scripts_Laura
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/scripts_Laura/diff_frequ_AMSUA_test.py

    r25 r27  
    2727imo = 0 
    2828## ch1 ## 
    29 fovZen_ch1_JAN = np.where(fov1_JAN == 15.) 
     29fovZen_ch1_JAN = np.where(fov1_JAN == 21.) 
    3030bbemis_ch1_JAN = nonzero((emis1_JAN[fovZen_ch1_JAN] != -500.) & (emis1_JAN[fovZen_ch1_JAN] <= 1.)) 
    3131OUTZCH1_JAN = np.zeros([len(np.arange(y0, y1+1, dy)),len(np.arange(x0, x1+1, dx)),len_month[imo]], float) 
     
    3434latch1_JAN = np.zeros([len(np.arange(y0, y1+1, dy))], float) 
    3535## ch15 ## 
    36 fovZen_ch15_JAN = np.where(fov15_JAN == 15.) 
     36fovZen_ch15_JAN = np.where(fov15_JAN == 21.) 
    3737bbemis_ch15_JAN = nonzero((emis15_JAN[fovZen_ch15_JAN] != -500.) & (emis15_JAN[fovZen_ch15_JAN] <= 1.)) 
    3838OUTZCH15_JAN = np.zeros([len(np.arange(y0, y1+1, dy)),len(np.arange(x0, x1+1, dx)),len_month[imo]], float) 
     
    7373imo = 1 
    7474## ch1 ## 
    75 fovZen_ch1_FEB = np.where(fov1_FEB == 15.) 
     75fovZen_ch1_FEB = np.where(fov1_FEB == 21.) 
    7676bbemis_ch1_FEB = nonzero((emis1_FEB[fovZen_ch1_FEB] != -500.) & (emis1_FEB[fovZen_ch1_FEB] <= 1.)) 
    7777OUTZCH1_FEB = np.zeros([len(np.arange(y0, y1+1, dy)),len(np.arange(x0, x1+1, dx)),len_month[imo]], float) 
     
    8080latch1_FEB = np.zeros([len(np.arange(y0, y1+1, dy))], float) 
    8181## ch15 ## 
    82 fovZen_ch15_FEB = np.where(fov15_FEB == 15.) 
     82fovZen_ch15_FEB = np.where(fov15_FEB == 21.) 
    8383bbemis_ch15_FEB = nonzero((emis15_FEB[fovZen_ch15_FEB] != -500.) & (emis15_FEB[fovZen_ch15_FEB] <= 1.)) 
    8484OUTZCH15_FEB = np.zeros([len(np.arange(y0, y1+1, dy)),len(np.arange(x0, x1+1, dx)),len_month[imo]], float) 
     
    120120imo = 2 
    121121## ch1 ## 
    122 fovZen_ch1_MAR = np.where(fov1_MAR == 15.) 
     122fovZen_ch1_MAR = np.where(fov1_MAR == 21.) 
    123123bbemis_ch1_MAR = nonzero((emis1_MAR[fovZen_ch1_MAR] != -500.) & (emis1_MAR[fovZen_ch1_MAR] <= 1.)) 
    124124OUTZCH1_MAR = np.zeros([len(np.arange(y0, y1+1, dy)),len(np.arange(x0, x1+1, dx)),len_month[imo]], float) 
     
    127127latch1_MAR = np.zeros([len(np.arange(y0, y1+1, dy))], float) 
    128128## ch15 ## 
    129 fovZen_ch15_MAR = np.where(fov15_MAR == 15.) 
     129fovZen_ch15_MAR = np.where(fov15_MAR == 21.) 
    130130bbemis_ch15_MAR = nonzero((emis15_MAR[fovZen_ch15_MAR] != -500.) & (emis15_MAR[fovZen_ch15_MAR] <= 1.)) 
    131131OUTZCH15_MAR = np.zeros([len(np.arange(y0, y1+1, dy)),len(np.arange(x0, x1+1, dx)),len_month[imo]], float) 
     
    166166imo = 3 
    167167## ch1 ## 
    168 fovZen_ch1_APR = np.where(fov1_APR == 15.) 
     168fovZen_ch1_APR = np.where(fov1_APR == 21.) 
    169169bbemis_ch1_APR = nonzero((emis1_APR[fovZen_ch1_APR] != -500.) & (emis1_APR[fovZen_ch1_APR] <= 1.)) 
    170170OUTZCH1_APR = np.zeros([len(np.arange(y0, y1+1, dy)),len(np.arange(x0, x1+1, dx)),len_month[imo]], float) 
     
    173173latch1_APR = np.zeros([len(np.arange(y0, y1+1, dy))], float) 
    174174## ch15 ## 
    175 fovZen_ch15_APR = np.where(fov15_APR == 15.) 
     175fovZen_ch15_APR = np.where(fov15_APR == 21.) 
    176176bbemis_ch15_APR = nonzero((emis15_APR[fovZen_ch15_APR] != -500.) & (emis15_APR[fovZen_ch15_APR] <= 1.)) 
    177177OUTZCH15_APR = np.zeros([len(np.arange(y0, y1+1, dy)),len(np.arange(x0, x1+1, dx)),len_month[imo]], float) 
     
    212212imo = 4 
    213213## ch1 ## 
    214 fovZen_ch1_MAY = np.where(fov1_MAY == 15.) 
     214fovZen_ch1_MAY = np.where(fov1_MAY == 21.) 
    215215bbemis_ch1_MAY = nonzero((emis1_MAY[fovZen_ch1_MAY] != -500.) & (emis1_MAY[fovZen_ch1_MAY] <= 1.)) 
    216216OUTZCH1_MAY = np.zeros([len(np.arange(y0, y1+1, dy)),len(np.arange(x0, x1+1, dx)),len_month[imo]], float) 
     
    219219latch1_MAY = np.zeros([len(np.arange(y0, y1+1, dy))], float) 
    220220## ch15 ## 
    221 fovZen_ch15_MAY = np.where(fov15_MAY == 15.) 
     221fovZen_ch15_MAY = np.where(fov15_MAY == 21.) 
    222222bbemis_ch15_MAY = nonzero((emis15_MAY[fovZen_ch15_MAY] != -500.) & (emis15_MAY[fovZen_ch15_MAY] <= 1.)) 
    223223OUTZCH15_MAY = np.zeros([len(np.arange(y0, y1+1, dy)),len(np.arange(x0, x1+1, dx)),len_month[imo]], float) 
     
    258258imo = 5 
    259259## ch1 ## 
    260 fovZen_ch1_JUN = np.where(fov1_JUN == 15.) 
     260fovZen_ch1_JUN = np.where(fov1_JUN == 21.) 
    261261bbemis_ch1_JUN = nonzero((emis1_JUN[fovZen_ch1_JUN] != -500.) & (emis1_JUN[fovZen_ch1_JUN] <= 1.)) 
    262262OUTZCH1_JUN = np.zeros([len(np.arange(y0, y1+1, dy)),len(np.arange(x0, x1+1, dx)),len_month[imo]], float) 
     
    265265latch1_JUN = np.zeros([len(np.arange(y0, y1+1, dy))], float) 
    266266## ch15 ## 
    267 fovZen_ch15_JUN = np.where(fov15_JUN == 15.) 
     267fovZen_ch15_JUN = np.where(fov15_JUN == 21.) 
    268268bbemis_ch15_JUN = nonzero((emis15_JUN[fovZen_ch15_JUN] != -500.) & (emis15_JUN[fovZen_ch15_JUN] <= 1.)) 
    269269OUTZCH15_JUN = np.zeros([len(np.arange(y0, y1+1, dy)),len(np.arange(x0, x1+1, dx)),len_month[imo]], float) 
     
    304304imo = 6 
    305305## ch1 ## 
    306 fovZen_ch1_JUL = np.where(fov1_JUL == 15.) 
     306fovZen_ch1_JUL = np.where(fov1_JUL == 21.) 
    307307bbemis_ch1_JUL = nonzero((emis1_JUL[fovZen_ch1_JUL] != -500.) & (emis1_JUL[fovZen_ch1_JUL] <= 1.)) 
    308308OUTZCH1_JUL = np.zeros([len(np.arange(y0, y1+1, dy)),len(np.arange(x0, x1+1, dx)),len_month[imo]], float) 
     
    311311latch1_JUL = np.zeros([len(np.arange(y0, y1+1, dy))], float) 
    312312## ch15 ## 
    313 fovZen_ch15_JUL = np.where(fov15_JUL == 15.) 
     313fovZen_ch15_JUL = np.where(fov15_JUL == 21.) 
    314314bbemis_ch15_JUL = nonzero((emis15_JUL[fovZen_ch15_JUL] != -500.) & (emis15_JUL[fovZen_ch15_JUL] <= 1.)) 
    315315OUTZCH15_JUL = np.zeros([len(np.arange(y0, y1+1, dy)),len(np.arange(x0, x1+1, dx)),len_month[imo]], float) 
     
    473473m.drawmeridians(np.arange(-180., 180., 20)) 
    474474xii,yii = m(*np.meshgrid(lon, lat)) 
    475 #clevs = (arange(0., 0.006, 0.00001)) 
    476 cs = m.contourf(xii, yii, monthly_emis_JUL[0, :, :], cmap=cm.s3pcpn_l_r) 
     475clevs = (arange(0.5, 0.9, 0.001)) 
     476cs = m.contourf(xii, yii, OUTZ_JAN[0, :, :,20], clevs, cmap=cm.s3pcpn_l_r) 
    477477cbar = colorbar(cs) 
    478478cbar.set_label('CH1 - 23.8GHz') 
  • trunk/src/scripts_Laura/write_netcdf_AMSUA_test.py

    r25 r27  
    4646## JANUARY ## 
    4747imo = 0 
    48 rootgrp = Dataset ('/net/argos/data/parvati/lahlod/AMUSUA_CH1-CH15_' + month[imo] +'_ANTARC.nc', 'w', format = 'NETCDF4') 
     48rootgrp = Dataset ('/net/argos/data/parvati/lahlod/AMUSUA_CH1-CH15_' + month[imo] +'_fov21_ANTARC.nc', 'w', format = 'NETCDF4') 
    4949rootgrp.createDimension('longitude', len(lon)) 
    5050rootgrp.createDimension('latitude', len(lat)) 
     
    6767## FEBRUARY ## 
    6868imo = 1 
    69 rootgrp = Dataset ('/net/argos/data/parvati/lahlod/AMUSUA_CH1-CH15_' + month[imo] +'_ANTARC.nc', 'w', format = 'NETCDF4') 
     69rootgrp = Dataset ('/net/argos/data/parvati/lahlod/AMUSUA_CH1-CH15_' + month[imo] +'_fov21_ANTARC.nc', 'w', format = 'NETCDF4') 
    7070rootgrp.createDimension('longitude', len(lon)) 
    7171rootgrp.createDimension('latitude', len(lat)) 
     
    8888## MARCH ## 
    8989imo = 2 
    90 rootgrp = Dataset ('/net/argos/data/parvati/lahlod/AMUSUA_CH1-CH15_' + month[imo] +'_ANTARC.nc', 'w', format = 'NETCDF4') 
     90rootgrp = Dataset ('/net/argos/data/parvati/lahlod/AMUSUA_CH1-CH15_' + month[imo] +'_fov21_ANTARC.nc', 'w', format = 'NETCDF4') 
    9191rootgrp.createDimension('longitude', len(lon)) 
    9292rootgrp.createDimension('latitude', len(lat)) 
     
    109109## APRIL ## 
    110110imo = 3 
    111 rootgrp = Dataset ('/net/argos/data/parvati/lahlod/AMUSUA_CH1-CH15_' + month[imo] +'_ANTARC.nc', 'w', format = 'NETCDF4') 
     111rootgrp = Dataset ('/net/argos/data/parvati/lahlod/AMUSUA_CH1-CH15_' + month[imo] +'_fov21_ANTARC.nc', 'w', format = 'NETCDF4') 
    112112rootgrp.createDimension('longitude', len(lon)) 
    113113rootgrp.createDimension('latitude', len(lat)) 
     
    130130## MAY ## 
    131131imo = 4 
    132 rootgrp = Dataset ('/net/argos/data/parvati/lahlod/AMUSUA_CH1-CH15_' + month[imo] +'_ANTARC.nc', 'w', format = 'NETCDF4') 
     132rootgrp = Dataset ('/net/argos/data/parvati/lahlod/AMUSUA_CH1-CH15_' + month[imo] +'_fov21_ANTARC.nc', 'w', format = 'NETCDF4') 
    133133rootgrp.createDimension('longitude', len(lon)) 
    134134rootgrp.createDimension('latitude', len(lat)) 
     
    151151## JUNE ## 
    152152imo = 5 
    153 rootgrp = Dataset ('/net/argos/data/parvati/lahlod/AMUSUA_CH1-CH15_' + month[imo] +'_ANTARC.nc', 'w', format = 'NETCDF4') 
     153rootgrp = Dataset ('/net/argos/data/parvati/lahlod/AMUSUA_CH1-CH15_' + month[imo] +'_fov21_ANTARC.nc', 'w', format = 'NETCDF4') 
    154154rootgrp.createDimension('longitude', len(lon)) 
    155155rootgrp.createDimension('latitude', len(lat)) 
     
    172172## JUlY## 
    173173imo = 6 
    174 rootgrp = Dataset ('/net/argos/data/parvati/lahlod/AMUSUA_CH1-CH15_' + month[imo] +'_ANTARC.nc', 'w', format = 'NETCDF4') 
     174rootgrp = Dataset ('/net/argos/data/parvati/lahlod/AMUSUA_CH1-CH15_' + month[imo] +'_fov21_ANTARC.nc', 'w', format = 'NETCDF4') 
    175175rootgrp.createDimension('longitude', len(lon)) 
    176176rootgrp.createDimension('latitude', len(lat)) 
     
    193193 
    194194 
    195  
    196  
    197  
Note: See TracChangeset for help on using the changeset viewer.