Changeset 405 for LMDZ.3.3/branches/rel-LF
- Timestamp:
- Oct 15, 2002, 4:37:23 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ.3.3/branches/rel-LF/libf/dyn3d/limit_netcdf.F
r359 r405 123 123 character*30 namedim 124 124 CHARACTER*80 :: varname 125 126 cIM28/02/2002 <== PM 127 REAL tmidmonth(12) 128 SAVE tmidmonth 129 DATA tmidmonth/15,45,75,105,135,165,195,225,255,285,315,345/ 125 130 126 131 c initialisations: … … 443 448 c 444 449 PRINT*, 'Traitement de la glace oceanique' 445 ierr = NF_OPEN('AMIP.nc', NF_NOWRITE, ncid) 446 if (ierr.ne.0) then 447 print *, NF_STRERROR(ierr) 448 STOP 449 ENDIF 450 451 ierr = NF_INQ_VARID(ncid,'SEA_ICE',varid) 450 c 451 452 cccIM#define cond_climato 453 454 #ifdef cond_climato 455 456 cIM22/02/2002 457 cIM ierr = NF_OPEN('AMIP.nc', NF_NOWRITE, ncid) 458 cIM ierr = NF_OPEN('amip79to95.nc', NF_NOWRITE, ncid) 459 ierr = NF_OPEN('amipbc_sic_1x1_clim.nc', NF_NOWRITE, ncid) 460 #else 461 ierr = NF_OPEN('amipbc_sic_1x1.nc', NF_NOWRITE, ncid) 462 #endif 463 464 cIM22/02/2002 465 if (ierr.ne.0) then 466 print *, NF_STRERROR(ierr) 467 STOP 468 ENDIF 469 470 cIM22/02/2002 471 cIM07/03/2002 AMIP.nc & amip79to95.nc 472 cIM ierr = NF_INQ_VARID(ncid,'SEA_ICE',varid) 473 cIM07/03/2002 amipbc_sic_1x1_clim.nc & amipbc_sic_1x1.nc 474 ierr = NF_INQ_VARID(ncid,'sicbcs',varid) 475 cIM22/02/2002 452 476 if (ierr.ne.0) then 453 477 print *, NF_STRERROR(ierr) … … 513 537 ENDIF 514 538 print*,'variable ', namedim, lmdep 539 cIM28/02/2002 540 cPM28/02/2002 : nouvelle coord temporelle fichiers AMIP pas en jours 541 c Ici on suppose qu'on a 12 mois (de 30 jours). 542 IF (lmdep.NE.12) THEN 543 print *, 'Unknown AMIP file: not 12 months ?' 544 STOP 545 ENDIF 546 cIM28/02/2002 515 547 ierr = NF_INQ_VARID(ncid,namedim,dimid) 516 548 if (ierr.ne.0) then … … 567 599 ,'------------------------' 568 600 ENDIF 569 601 cIM07/03/2002 602 cIM22/02/2002 : Sea-ice Amip entre 0. et 1. 603 cIM PRINT*,'SUB. limit_netcdf.F IM : Sea-ice et SST Amip_new clim' 604 cIM DO j = 1, imdep * jmdep 605 cIM28/02/2002 <==PM champ(j) = champ(j)/100. 606 cIM14/03/2002 champ(j) = max(0.0,(min(1.0, (champ(j)/100.) ))) 607 cIM champ(j) = amax1(0.0,(amin1(1.0, (champ(j)/100.) ))) 608 cIM ENDDO 609 cIM22/02/2002 570 610 CALL inter_barxy ( imdep,jmdep -1,dlon, dlat , 571 611 , champ, iim, jjm, rlonu, rlatv, jjp1, champint ) … … 582 622 c 583 623 DO l = 1, lmdep 584 timeyear(l) = timecoord(l) 624 cIM28/02/2002 <== PM timeyear(l) = timecoord(l) 625 cIM timeyear(l) = timecoord(l) 626 cIM07/03/2002 627 timeyear(l) = tmidmonth(l) 585 628 ENDDO 586 629 PRINT 222, timeyear … … 613 656 ENDDO 614 657 c 658 cIM14/03/2002 : Sea-ice Amip entre 0. et 1. 659 PRINT*,'SUB. limit_netcdf.F IM : Sea-ice Amipbc ' 660 DO k = 1, 360 661 DO j = 1, jjp1 662 DO i = 1, iim 663 champan(i, j, k) = 664 $ amax1(0.0,(amin1(1.0,(champan(i, j, k)/100.)))) 665 ENDDO 666 champan(iip1, j, k) = champan(1, j, k) 667 ENDDO 668 ENDDO 669 cIM14/03/2002 615 670 616 671 DO k = 1, 360 … … 729 784 c 730 785 PRINT*, 'Traitement de la sst' 731 ierr = NF_OPEN('AMIP.nc', NF_NOWRITE, ncid) 732 if (ierr.ne.0) then 733 print *, NF_STRERROR(ierr) 734 STOP 735 ENDIF 736 737 ierr = NF_INQ_VARID(ncid,'SST',varid) 786 #ifdef cond_climato 787 cIM22/02/2002 788 cIM ierr = NF_OPEN('AMIP.nc', NF_NOWRITE, ncid) 789 cIM ierr = NF_OPEN('amip79to95.nc', NF_NOWRITE, ncid) 790 ierr = NF_OPEN('amipbc_sst_1x1_clim.nc', NF_NOWRITE, ncid) 791 #else 792 ierr = NF_OPEN('amipbc_sst_1x1.nc', NF_NOWRITE, ncid) 793 #endif 794 cIM22/02/2002 795 if (ierr.ne.0) then 796 print *, NF_STRERROR(ierr) 797 STOP 798 ENDIF 799 800 cIM22/02/2002 801 cIM ierr = NF_INQ_VARID(ncid,'SST',varid) 802 ierr = NF_INQ_VARID(ncid,'tosbcs',varid) 803 cIM22/02/2002 738 804 if (ierr.ne.0) then 739 805 print *, NF_STRERROR(ierr) … … 800 866 ENDIF 801 867 print*,'variable ', namedim, 'dimension ', lmdep 868 cIM28/02/2002 869 cPM28/02/2002 : nouvelle coord temporelle fichiers AMIP pas en jours 870 c Ici on suppose qu'on a 12 mois (de 30 jours). 871 IF (lmdep.NE.12) THEN 872 print *, 'Unknown AMIP file: not 12 months ?' 873 STOP 874 ENDIF 875 cIM28/02/2002 802 876 ierr = NF_INQ_VARID(ncid,namedim,dimid) 803 877 if (ierr.ne.0) then … … 873 947 c 874 948 DO l = 1, lmdep 875 timeyear(l) = timecoord(l) 949 cIM28/02/2002 <==PM timeyear(l) = timecoord(l) 950 timeyear(l) = tmidmonth(l) 876 951 ENDDO 877 952 print 222, timeyear … … 904 979 ENDDO 905 980 c 981 cIM14/03/2002 : SST amipbc greater then 271.38 982 PRINT*,'SUB. limit_netcdf.F IM : SST Amipbc >= 271.38 ' 983 DO k = 1, 360 984 DO j = 1, jjp1 985 DO i = 1, iim 986 champan(i, j, k) = amax1(champan(i, j, k), 271.38) 987 ENDDO 988 champan(iip1, j, k) = champan(1, j, k) 989 ENDDO 990 ENDDO 991 cIM14/03/2002 906 992 DO k = 1, 360 907 993 CALL gr_dyn_fi(1, iip1, jjp1, klon,
Note: See TracChangeset
for help on using the changeset viewer.