source: trunk/src/TropFlux_wind_stress_19890101_20101231.pro @ 152

Last change on this file since 152 was 108, checked in by pinsard, 12 years ago

fix header

  • Property svn:keywords set to URL
File size: 3.0 KB
Line 
1;+
2;
3; .. _TropFlux_wind_stress_19890101_20101231.pro:
4;
5; ==========================================
6; TropFlux_wind_stress_19890101_20101231.pro
7; ==========================================
8;
9; DESCRIPTION
10; ===========
11
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;-
33pro TropFlux_wind_stress_19890101_20101231
34@common
35;------------------------------------------------------------
36st=19880101
37en=20101231
38st=19880101
39en=20101231
40;
41file="/Volumes/PAYASAM/TropFlux/ERA_C_1989_2010/TropFlux_19890101_20101231.nc"
42initncdf, file
43tau=read_ncdf("tau", st, en, file=file,/nostr)
44tau=reform(tau)
45help, tau
46;
47stop
48dir='/Volumes/PAYASAM/TropFlux/ERA_C_1989_2010/'
49file_wind=dir+'TropFlux_ws_19890101_20101231.nc'
50file_wg=dir+'gustiness_19890101_20101231.nc'
51initncdf, file_wind
52;
53ws=read_ncdf('ws',st,en,file=file_wind,/nostr)
54wg=read_ncdf('wg',st,en,file=file_wg,/nostr)
55s=sqrt((ws*ws)+(wg*wg))
56s=reform(s)
57help, s
58;
59file="/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_ws_19890101_20101231.nc"
60initncdf, file
61u=read_ncdf('u10',st,en,file=file,/nostr)
62v=read_ncdf('v10',st,en,file=file,/nostr)
63;
64u=reform(u)
65v=reform(v)
66help, u,v
67taux=tau*u/s
68tauy=tau*v/s
69;
70help, taux, tauy
71;
72time=timegen(8035, start=julday(1,1,1989,0), units='days')
73jpt=n_elements(time)
74;------------------------------------------------------------
75cda0=string(jul2date(time(0)),format='(i8.8)')
76cda1=string(jul2date(time(jpt-1)),format='(i8.8)')
77time=time-julday(1,1,1950,00,00,00)
78xlon=reform(glamt(*,0) )
79ylat=reform(gphit(0,*))
80;
81ncfile='!/Volumes/PAYASAM/TropFlux/ERA_C_1989_2010/tau_tropflux_1d_19890101_20101231.nc'
82lon_attr={units:'degrees_east',long_name:'Longitude'}
83lat_attr={units:'degrees_north',long_name:'Latitude'}
84time_attr={units:'days since 1950-01-01 00:00:00',long_name:'Time axis',time_origin:'1950-JAN-01 00:00:00'}
85globattr={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/'}
86tau_attr={units:'N/m2',missing_value:valmask,long_name:'wind stress magnitude',short_name:'tau',axis:'TYX'}
87taux_attr={units:'N/m2',missing_value:valmask,long_name:'zonal wind stress',short_name:'taux',axis:'TYX'}
88tauy_attr={units:'N/m2',missing_value:valmask,long_name:'meridional wind stress',short_name:'tauy',axis:'TYX'}
89;
90;
91help, xlon,ylat, taux, tauy, tau
92;
93ncfields = '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                      + 'time[*time]=time:time_attr ' $
99                      + ' @ globattr'
100;
101@ncdf_quickwrite
102;
103end
Note: See TracBrowser for help on using the repository browser.