Changeset 86 for trunk/mesoscale/PLOT/SPEC/MAP
- Timestamp:
- Mar 3, 2011, 12:38:49 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mesoscale/PLOT/SPEC/MAP/map_uvt.pro
r85 r86 24 24 ; 25 25 if (n_elements(field1) ne 0) then getcdf, file=filename, charvar=field1, invar=cfield1 26 u = getget(filename, 'Um', count=[0,0,1,1], offset=[0,0,nlevel,ntime]) 27 v = getget(filename, 'Vm', count=[0,0,1,1], offset=[0,0,nlevel,ntime]) 26 if ( (n_elements(overvector_x) ne 0) or (n_elements(field1) eq 0) ) then begin 27 u = getget(filename, 'Um', count=[0,0,1,1], offset=[0,0,nlevel,ntime]) 28 v = getget(filename, 'Vm', count=[0,0,1,1], offset=[0,0,nlevel,ntime]) 29 endif 28 30 getcdf, file=filename, charvar='XLONG', invar=longi 29 31 getcdf, file=filename, charvar='XLAT', invar=lati … … 42 44 if (no3d ne 'true') then cfield1 = cfield1 (sp:nx-sp-1,sp:ny-sp-1,*,*) else cfield1 = cfield1 (sp:nx-sp-1,sp:ny-sp-1,*) 43 45 endif 44 u = u (sp:nx-sp-1,sp:ny-sp-1);,*,*) 45 v = v (sp:nx-sp-1,sp:ny-sp-1);,*,*) 46 if ( (n_elements(overvector_x) ne 0) or (n_elements(field1) eq 0) ) then begin 47 u = u (sp:nx-sp-1,sp:ny-sp-1);,*,*) 48 v = v (sp:nx-sp-1,sp:ny-sp-1);,*,*) 49 endif 46 50 longi = longi (sp:nx-sp-1,sp:ny-sp-1,*) 47 51 lati = lati (sp:nx-sp-1,sp:ny-sp-1,*) … … 55 59 lon = reform(longi(*,*,ntime)) 56 60 lat = reform(lati(*,*,ntime)) 57 overvector_x = u;reform(u(*,*,nlevel,ntime)) 58 overvector_y = v;reform(v(*,*,nlevel,ntime)) 61 if (n_elements(overvector_x) ne 0) then begin 62 overvector_x = u;reform(u(*,*,nlevel,ntime)) 63 overvector_y = v;reform(v(*,*,nlevel,ntime)) 64 endif 59 65 if (n_elements(field1) eq 0) then begin 60 66 print, 'field1: horizontal velocity'
Note: See TracChangeset
for help on using the changeset viewer.