source: trunk/procs/macros/make_wdiv.pro @ 87

Last change on this file since 87 was 87, checked in by kolasinski, 16 years ago

Update macro procedures according to the new reading procedures data_read.pro, nc_read.pro...

File size: 916 bytes
Line 
1;
2; make Wind Stress divergence
3;
4FUNCTION make_wdiv, file_name, ncdf_db, BOXZOOM = boxzoom, TIME_1 = time_1,  TIME_2 =  time_2, ZMTYP = zmtyp, ALL_DATA = all_data
5
6@common
7@com_eg
8;
9;
10; Read taux and tauy
11;
12   ;old_boite = [lon1, lon2, lat1, lat2, prof1, prof2]
13   ;domdef
14   vargrid = 'U'
15   new_file = new_filename(file_name, 'T', vargrid)
16   taux = nc_read(new_file,'sozotaux', ncdf_db, BOXZOOM = boxzoom, TIME_1 = time_1,  TIME_2 =  time_2, ALL_DATA = all_data)
17   vargrid = 'V'
18   new_file = new_filename(file_name, 'T', vargrid)
19   tauy = nc_read(new_file,'sometauy', ncdf_db, BOXZOOM = boxzoom, TIME_1 = time_1,  TIME_2 =  time_2, ALL_DATA = all_data)
20
21   wdiv = div(taux.data, tauy.data)
22   ;domdef, old_boite
23
24   field = {name: '', data: wdiv, legend: '', units: '', origin: '', dim: 0, direc:''}
25   
26   field.origin = taux.origin
27   field.dim = taux.dim
28   field.direc = taux.direc
29
30   return, field
31END
Note: See TracBrowser for help on using the repository browser.