[100] | 1 | ;+ |
---|
| 2 | ; |
---|
[108] | 3 | ; .. _TropFlux_wind_stress_19890101_20101231.pro: |
---|
| 4 | ; |
---|
| 5 | ; ========================================== |
---|
| 6 | ; TropFlux_wind_stress_19890101_20101231.pro |
---|
| 7 | ; ========================================== |
---|
| 8 | ; |
---|
| 9 | ; DESCRIPTION |
---|
| 10 | ; =========== |
---|
| 11 | |
---|
[100] | 12 | ; TODO |
---|
| 13 | ; ==== |
---|
| 14 | ; |
---|
| 15 | ; integration to the whole process |
---|
| 16 | ; |
---|
| 17 | ; EVOLUTIONS |
---|
| 18 | ; ========== |
---|
| 19 | ; |
---|
| 20 | ; $Id$ |
---|
| 21 | ; |
---|
| 22 | ; $URL$ |
---|
| 23 | ; |
---|
| 24 | ; - fplod 20110830T153220Z cratos (Linux) |
---|
| 25 | ; |
---|
| 26 | ; * remove multiple line statements |
---|
| 27 | ; |
---|
| 28 | ; - pk 20110830 |
---|
| 29 | ; |
---|
| 30 | ; * creation |
---|
| 31 | ; |
---|
| 32 | ;- |
---|
[96] | 33 | pro TropFlux_wind_stress_19890101_20101231 |
---|
| 34 | @common |
---|
| 35 | ;------------------------------------------------------------ |
---|
[100] | 36 | st=19880101 |
---|
| 37 | en=20101231 |
---|
| 38 | st=19880101 |
---|
| 39 | en=20101231 |
---|
[97] | 40 | ; |
---|
[96] | 41 | file="/Volumes/PAYASAM/TropFlux/ERA_C_1989_2010/TropFlux_19890101_20101231.nc" |
---|
| 42 | initncdf, file |
---|
| 43 | tau=read_ncdf("tau", st, en, file=file,/nostr) |
---|
| 44 | tau=reform(tau) |
---|
| 45 | help, tau |
---|
[97] | 46 | ; |
---|
[96] | 47 | stop |
---|
| 48 | dir='/Volumes/PAYASAM/TropFlux/ERA_C_1989_2010/' |
---|
| 49 | file_wind=dir+'TropFlux_ws_19890101_20101231.nc' |
---|
| 50 | file_wg=dir+'gustiness_19890101_20101231.nc' |
---|
| 51 | initncdf, file_wind |
---|
[97] | 52 | ; |
---|
[96] | 53 | ws=read_ncdf('ws',st,en,file=file_wind,/nostr) |
---|
| 54 | wg=read_ncdf('wg',st,en,file=file_wg,/nostr) |
---|
| 55 | s=sqrt((ws*ws)+(wg*wg)) |
---|
[100] | 56 | s=reform(s) |
---|
| 57 | help, s |
---|
[97] | 58 | ; |
---|
[96] | 59 | file="/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_ws_19890101_20101231.nc" |
---|
| 60 | initncdf, file |
---|
| 61 | u=read_ncdf('u10',st,en,file=file,/nostr) |
---|
| 62 | v=read_ncdf('v10',st,en,file=file,/nostr) |
---|
[97] | 63 | ; |
---|
[100] | 64 | u=reform(u) |
---|
| 65 | v=reform(v) |
---|
[96] | 66 | help, u,v |
---|
| 67 | taux=tau*u/s |
---|
| 68 | tauy=tau*v/s |
---|
[97] | 69 | ; |
---|
[96] | 70 | help, taux, tauy |
---|
[97] | 71 | ; |
---|
[100] | 72 | time=timegen(8035, start=julday(1,1,1989,0), units='days') |
---|
| 73 | jpt=n_elements(time) |
---|
[96] | 74 | ;------------------------------------------------------------ |
---|
| 75 | cda0=string(jul2date(time(0)),format='(i8.8)') |
---|
| 76 | cda1=string(jul2date(time(jpt-1)),format='(i8.8)') |
---|
[98] | 77 | time=time-julday(1,1,1950,00,00,00) |
---|
[100] | 78 | xlon=reform(glamt(*,0) ) |
---|
| 79 | ylat=reform(gphit(0,*)) |
---|
[97] | 80 | ; |
---|
[96] | 81 | ncfile='!/Volumes/PAYASAM/TropFlux/ERA_C_1989_2010/tau_tropflux_1d_19890101_20101231.nc' |
---|
| 82 | lon_attr={units:'degrees_east',long_name:'Longitude'} |
---|
| 83 | lat_attr={units:'degrees_north',long_name:'Latitude'} |
---|
[100] | 84 | time_attr={units:'days since 1950-01-01 00:00:00',long_name:'Time axis',time_origin:'1950-JAN-01 00:00:00'} |
---|
| 85 | globattr={Source:'TropFlux - Momentum Fluxes for the Global Tropics', Methodology:'Praveen Kumar et al., Clim. Dyn 2011', Producer_Agency:'Joint research colloboration between IPSL, Paris and NIO, India', Time_range:cda0+' - '+cda1, Creation_date:'20110707', Website:'http://www.locean-ipsl.upmc.fr/tropflux/'} |
---|
[96] | 86 | tau_attr={units:'N/m2',missing_value:valmask,long_name:'wind stress magnitude',short_name:'tau',axis:'TYX'} |
---|
| 87 | taux_attr={units:'N/m2',missing_value:valmask,long_name:'zonal wind stress',short_name:'taux',axis:'TYX'} |
---|
| 88 | tauy_attr={units:'N/m2',missing_value:valmask,long_name:'meridional wind stress',short_name:'tauy',axis:'TYX'} |
---|
[97] | 89 | ; |
---|
| 90 | ; |
---|
[96] | 91 | help, xlon,ylat, taux, tauy, tau |
---|
[97] | 92 | ; |
---|
[96] | 93 | ncfields = 'tau[longitude,latitude,time]=tau:tau_attr; ' $ |
---|
| 94 | +'taux[longitude,latitude,time]=taux:taux_attr; ' $ |
---|
| 95 | +'tauy[longitude,latitude,time]=tauy:tauy_attr; ' $ |
---|
| 96 | + 'longitude[]=xlon:lon_attr; ' $ |
---|
| 97 | + 'latitude[]=ylat:lat_attr; ' $ |
---|
[98] | 98 | + 'time[*time]=time:time_attr ' $ |
---|
[96] | 99 | + ' @ globattr' |
---|
[97] | 100 | ; |
---|
[96] | 101 | @ncdf_quickwrite |
---|
[97] | 102 | ; |
---|
[96] | 103 | end |
---|