Changeset 13
- Timestamp:
- Jan 24, 2011, 2:02:24 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mesoscale/LMD_MM_MARS/SRC/WPS/geogrid/src/process_tile_module.F90
r11 r13 149 149 ! 150 150 call mprintf(.true.,STDOUT,' Processing XLAT and XLONG') 151 151 152 152 if (grid_type == 'C') then 153 153 call get_lat_lon_fields(which_domain, xlat_array, xlon_array, start_mem_i, & … … 162 162 corner_lats(3) = xlat_array(end_patch_i,end_patch_j) 163 163 corner_lats(4) = xlat_array(end_patch_i,start_patch_j) 164 164 165 165 corner_lats(5) = xlat_array_u(start_patch_i,start_patch_j) 166 166 corner_lats(6) = xlat_array_u(start_patch_i,end_patch_j) … … 314 314 if (grid_type == 'C') then 315 315 call mprintf(.true.,STDOUT,' Processing ROTANG') 316 316 317 317 allocate(sina_array(start_mem_i:end_mem_i, start_mem_j:end_mem_j)) 318 318 allocate(cosa_array(start_mem_i:end_mem_i, start_mem_j:end_mem_j)) … … 525 525 call write_field(start_mem_i, end_mem_i, start_mem_j, end_mem_j, 1, 1, trim(domname), & 526 526 datestr, dominant_field) 527 527 528 528 deallocate(dominant_field) 529 529 end if … … 633 633 if (field(i,j,k) /= msg_fill_val) then 634 634 field(i,j,k) = field(i,j,k) * scale_factor 635 !!!! debug: to display the interpolated values 636 ! call mprintf(.true.,STDOUT,'%i',i1=int(field(i,j,k))) 635 637 end if 636 638 end do … … 678 680 679 681 end if 682 683 !!!!!!!!!!!!!!!!!!!!!!!!!! 684 !!!BEURK 685 !!!!!!!!!!!!!!!!!!!!!!!!!! 686 !if (fieldname == 'HGT_M') then 687 !! open(unit=100,file='./custom_topo/hm12',form='formatted',status='old') 688 !! open(unit=100,file='./custom_topo/hm6',form='formatted',status='old') 689 ! open(unit=100,file='./custom_topo/hm18',form='formatted',status='old') 690 ! rewind(100) 691 ! do j=sm2+3,em2-3 !!ok 692 ! do i=sm1+3,em1-3 !!ok 693 ! read(100,*) field(i,j,1) 694 ! enddo 695 ! enddo 696 ! close(100) 697 !endif 698 !if (fieldname == 'HGT_U') then 699 !! open(unit=101,file='./custom_topo/hu12',form='formatted',status='old') 700 !! open(unit=101,file='./custom_topo/hu6',form='formatted',status='old') 701 ! open(unit=101,file='./custom_topo/hu18',form='formatted',status='old') 702 ! rewind(101) 703 ! do j=sm2+3,em2-3 704 ! do i=sm1+3,em1-3!4 705 ! read(101,*) field(i,j,1) 706 ! enddo 707 ! enddo 708 ! close(101) 709 !endif 710 !if (fieldname == 'HGT_V') then 711 !! open(unit=102,file='./custom_topo/hv12',form='formatted',status='old') 712 !! open(unit=102,file='./custom_topo/hv6',form='formatted',status='old') 713 ! open(unit=102,file='./custom_topo/hv18',form='formatted',status='old') 714 ! rewind(102) 715 ! do j=sm2+3,em2-3!4 716 ! do i=sm1+3,em1-3 717 ! read(102,*) field(i,j,1) 718 ! enddo 719 ! enddo 720 ! close(102) 721 !endif 722 !!!!!!!!!!!!!!!!!!!!!!!!!! 723 !!!BEURK 724 !!!!!!!!!!!!!!!!!!!!!!!!!! 725 726 727 680 728 681 729 call write_field(sm1, em1, sm2, em2, & … … 1293 1341 end if 1294 1342 1343 !**** MARS STUFF 1344 ! the 9000. translation was done in the Mars GEOG file to avoid negative numbers 1345 if (fieldname == 'HGT_M' .or. fieldname == 'HGT_U' .or. fieldname == 'HGT_V') then 1346 1347 field(:,:,:)=field(:,:,:)-9000. 1348 1349 !print *,'OK' 1350 end if 1351 !**** MARS STUFF 1352 1353 1295 1354 deallocate(interp_type) 1296 1355
Note: See TracChangeset
for help on using the changeset viewer.