Changeset 236 for palm/trunk/SCRIPTS/NCL
- Timestamp:
- Feb 12, 2009 2:58:16 PM (16 years ago)
- Location:
- palm/trunk/SCRIPTS/NCL
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/NCL/ncl_preferences.ncl
r219 r236 30 30 31 31 32 file_1 = " file_1"32 file_1 = "File in" 33 33 34 34 … … 41 41 ; data type: integer 42 42 ; 43 ; example: start_f = 3 (if first file: example_ ts.3.nc)43 ; example: start_f = 3 (if first file: example_xy_av.3.nc) and 0 (if first file: example_xy_av.nc) 44 44 ; 45 45 ; default: -1 … … 59 59 ; data type: integer 60 60 ; 61 ; example: end_f = 48 (if last file: example_ ts.48.nc)61 ; example: end_f = 48 (if last file: example_xy_av.48.nc) and 0 (if last file: example_xy_av.nc) 62 62 ; 63 63 ; default: -1 … … 688 688 ; data type: integer 689 689 ; 690 ; example: 3 (if first file: example_ ts.3.nc)690 ; example: 3 (if first file: example_pr.3.nc) and 0 (if first file: example_pr.nc) 691 691 ; 692 692 ; default: -1 … … 706 706 ; data type: integer 707 707 ; 708 ; example: 48 (if last file: example_ ts.48.nc)708 ; example: 48 (if last file: example_pr.48.nc) and 0 (if last file: example_pr.nc) 709 709 ; 710 710 ; default: -1 … … 713 713 714 714 715 end_f_1 = -1 715 end_f_1 = -1 716 716 717 717 … … 829 829 830 830 831 legend = 0831 legend = 1 832 832 833 833 … … 1634 1634 ; data type: integer 1635 1635 ; 1636 ; example: start_f = 3 (if first file: example_ ts.3.nc)1636 ; example: start_f = 3 (if first file: example_sp.3.nc) and 0 (if first file: example_sp.nc) 1637 1637 ; 1638 1638 ; default: -1 … … 1652 1652 ; data type: integer 1653 1653 ; 1654 ; example: end_f = 48 (if last file: example_ ts.48.nc)1654 ; example: end_f = 48 (if last file: example_sp.48.nc) and 0 (if last file: example_sp.nc) 1655 1655 ; 1656 1656 ; default: -1 … … 2049 2049 ; data type: integer 2050 2050 ; 2051 ; example: start_f = 3 (if first file: example_ts.3.nc) 2051 ; example: start_f = 3 (if first file: example_ts.3.nc) and 0 (if first file: example_ts.nc) 2052 2052 ; 2053 2053 ; default: -1 … … 2067 2067 ; data type: integer 2068 2068 ; 2069 ; example: end_f = 48 (if last file: example_ts.48.nc) 2069 ; example: end_f = 48 (if last file: example_ts.48.nc) and 0 (if last file: example_ts.nc) 2070 2070 ; 2071 2071 ; default: -1 -
palm/trunk/SCRIPTS/NCL/profiles.ncl
r219 r236 798 798 if (prof3d .EQ. 1)then 799 799 t_all = f[:]->time 800 nt = dimsizes(t_all) 800 801 else 801 t_all = f[:]->time(1:) 802 end if 803 nt = dimsizes(t_all) 802 t_all = f[:]->time 803 nt = dimsizes(t_all) 804 t_null = False 805 if (t_all(0) .EQ. 0 .AND. nt .GT. 1)then 806 delete(t_all) 807 t_all = f[:]->time(1:) 808 nt = dimsizes(t_all) 809 t_null = True 810 end if 811 end if 812 804 813 delta_t=t_all(nt-1)/nt 814 815 816 print(nt) 817 print(t_all) 818 819 820 ;exit 805 821 806 822 ; **************************************************** … … 898 914 legend_label=new(nt,double) 899 915 do p=start_time_step,end_time_step 900 if (t_all(p)/3600 .LT. 1) then 901 legend_label(p-start_time_step)=decimalPlaces(t_all(p)/3600,3,True) 902 else 903 legend_label(p-start_time_step)=decimalPlaces(t_all(p)/3600,0,True) 904 end if 916 legend_label(p-start_time_step)=decimalPlaces(t_all(p)/3600,3,True) 905 917 end do 906 918 … … 1416 1428 if (com) then 1417 1429 if (prof3d .EQ. 0) then 1418 temp = f[:]->$vNam(varn)$(1:,:) 1430 if (t_null)then 1431 temp = f[:]->$vNam(varn)$(1:,:) 1432 else 1433 temp = f[:]->$vNam(varn)$ 1434 end if 1419 1435 temp_att = f_att->$vNam(varn)$ 1420 1436 if (log_z .EQ. 1) then … … 1471 1487 1472 1488 if (prof3d .EQ. 0) then 1473 temp = f[:]->$vNam(varn)$(1:,:) 1489 if (t_null)then 1490 temp = f[:]->$vNam(varn)$(1:,:) 1491 else 1492 temp = f[:]->$vNam(varn)$ 1493 end if 1474 1494 temp_att = f_att->$vNam(varn)$ 1475 1495 else … … 1534 1554 end do 1535 1555 end if 1536 1537 if (data(varn,0,0) .GT. 1.E35) then 1538 data(varn,0,:) = data(varn,1,:) 1539 end if 1556 1540 1557 if (nof .EQ. 0) then 1541 1558 z_(n,:)=z/norm_z
Note: See TracChangeset
for help on using the changeset viewer.