- Timestamp:
- 12/17/10 16:18:08 (13 years ago)
- Location:
- trunk/src
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/TropFlux_19890101_20091231.pro
r12 r19 21 21 ; rankdir="LR", 22 22 ; ] 23 ; mask [shape=ellipse,fontname=Courier,label=" /Volumes/Iomega_HDD/work/flux_reconstruction/gridded_data/mask_oaflux_30N30S.nc"];23 ; mask [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/mask_oaflux_30N30S.nc"]; 24 24 ; file_sst [shape=ellipse,fontname=Courier,label="/Volumes/Iomega_HDD/TropFlux/input_cor/full_cor/TropFlux_sst_19890101_20091231_v20.nc"]; 25 25 ; file_wind [shape=ellipse,fontname=Courier,label="/Volumes/Iomega_HDD/TropFlux/input_cor/full_cor/TropFlux_ws_19890101_20091231_v20.nc"]; … … 45 45 ; ======== 46 46 ; 47 ; :ref:`tropflux_profile.sh` 48 ; 47 49 ; :func:`cor30a` 48 50 ; … … 61 63 ; coding rules 62 64 ; 65 ; KNOWN ISSUES 66 ; ============ 67 ; 68 ; test of existence of fullfilename_msk not very efficient because 69 ; MUST_EXIST keyword of :func:`isafile <saxo:isafile>` not yet implemented 70 ; 63 71 ; EVOLUTIONS 64 72 ; ========== 65 73 ; 74 ; - fplod 20101217T140745Z aedon.locean-ipsl.upmc.fr (Darwin) 75 ; 76 ; * remove hard coded directory for mask_oaflux_30N30S.nc 77 ; 66 78 ; - fplod 20101214T112131Z aedon.locean-ipsl.upmc.fr (Darwin) 67 79 ; … … 80 92 pro TropFlux_19890101_20091231 81 93 @common 94 ; 95 ; check for input directory 96 ; 97 ; test if ${TROPFLUX_ID} defined 98 tropflux_id_env=GETENV('TROPFLUX_ID') 99 CASE tropflux_id_env OF 100 '' : BEGIN 101 msg = 'eee : ${TROPFLUX_ID} is not defined' 102 ras = report(msg) 103 STOP 104 END 105 ELSE: BEGIN 106 msg = 'iii : ${TROPFLUX_ID} is ' + tropflux_id_env 107 ras = report(msg) 108 END 109 ENDCASE 110 ; 111 iodirin = isadirectory(tropflux_id_env) 112 ; 113 ; existence and protection of ${TROPFLUX_ID} 114 IF (FILE_TEST(iodirin, /DIRECTORY, /EXECUTABLE, /READ) EQ 0) THEN BEGIN 115 msg = 'eee : the directory' + iodirin + ' is not accessible.' 116 ras = report(msg) 117 STOP 118 ENDIF 119 ; 120 ; build mask filename 121 filename_msk='mask_oaflux_30N30S.nc' 122 ; 123 ; check if this file exists 124 fullfilename_msk = isafile(iodirin + filename_msk, NEW=0, /MUST_EXIST) 125 IF fullfilename_msk[0] EQ '' THEN BEGIN 126 msg = 'eee : the file ' + fullfilename_msk + ' was not found.' 127 ras = report(msg) 128 STOP 129 ENDIF 82 130 83 131 da1=19880101 & da2=20101231 84 file='/Volumes/Iomega_HDD/work/flux_reconstruction/gridded_data/mask_oaflux_30N30S.nc' 85 initncdf, f ile86 msk=ncdf_lec(f ile,var='msk')132 ; 133 initncdf, fullfilename_msk 134 msk=ncdf_lec(fullfilename_msk,var='msk') 87 135 88 136 dir='/Volumes/Iomega_HDD/TropFlux/input_cor/full_cor/' -
trunk/src/TropFlux_NRT_ncdf.pro
r12 r19 17 17 ; file3 [shape=ellipse,fontname=Courier,label="/Users/pkb/data/TropFlux/TropFlux_19890101_20091231_v51.nc"]; 18 18 ; ncfile [shape=ellipse,fontname=Courier,label="/Users/pkb/data/TropFlux/TropFlux_19890101_20091231.nc"]; 19 ; TropFlux_NRT_ncdf_v50 19 ; TropFlux_NRT_ncdf_v50 [shape=box, 20 20 ; fontname=Courier, 21 21 ; color=blue, -
trunk/src/interp_erai_dewt_1989_2009.pro
r12 r19 15 15 ; ] 16 16 ; file_in [shape=ellipse,fontname=Courier,label="/Volumes/PRAVEEN/ERAI_global/20c3m_erai_d2_TROP_1989_2009.nc"]; 17 ; mask [shape=ellipse,fontname=Courier,label=" /Volumes/PRAVEEN/work/flux_reconstruction/gridded_data/mask_oaflux_30N30S.nc"];17 ; mask [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/mask_oaflux_30N30S.nc"]; 18 18 ; 19 19 ; file_out [shape=ellipse,fontname=Courier,label="/Volumes/PRAVEEN/TropFlux/input_uncor/erai_d2m_19890101_20091231_oafluxgrid.nc"]; … … 31 31 ; ======== 32 32 ; 33 ; :ref:`tropflux_profile.sh` 34 ; 33 35 ; EXAMPLES 34 36 ; ======== … … 45 47 ; coding rules 46 48 ; 49 ; KNOWN ISSUES 50 ; ============ 51 ; 52 ; test of existence of fullfilename_msk not very efficient because 53 ; MUST_EXIST keyword of :func:`isafile <saxo:isafile>` not yet implemented 54 ; 47 55 ; EVOLUTIONS 48 56 ; ========== 57 ; 58 ; - fplod 20101217T140745Z aedon.locean-ipsl.upmc.fr (Darwin) 59 ; 60 ; * remove hard coded directory for mask_oaflux_30N30S.nc 49 61 ; 50 62 ; - fplod 20101215T093710Z aedon.locean-ipsl.upmc.fr (Darwin) … … 63 75 pro interp_erai_dewt_1989_2009 64 76 @common 65 77 ; 78 ; check for input directory 79 ; 80 ; test if ${TROPFLUX_ID} defined 81 tropflux_id_env=GETENV('TROPFLUX_ID') 82 CASE tropflux_id_env OF 83 '' : BEGIN 84 msg = 'eee : ${TROPFLUX_ID} is not defined' 85 ras = report(msg) 86 STOP 87 END 88 ELSE: BEGIN 89 msg = 'iii : ${TROPFLUX_ID} is ' + tropflux_id_env 90 ras = report(msg) 91 END 92 ENDCASE 93 ; 94 iodirin = isadirectory(tropflux_id_env) 95 ; 96 ; existence and protection of ${TROPFLUX_ID} 97 IF (FILE_TEST(iodirin, /DIRECTORY, /EXECUTABLE, /READ) EQ 0) THEN BEGIN 98 msg = 'eee : the directory' + iodirin + ' is not accessible.' 99 ras = report(msg) 100 STOP 101 ENDIF 102 ; 103 ; build mask filename 104 filename_msk='mask_oaflux_30N30S.nc' 105 ; 106 ; check if this file exists 107 fullfilename_msk = isafile(iodirin + filename_msk, NEW=0, /MUST_EXIST) 108 IF fullfilename_msk[0] EQ '' THEN BEGIN 109 msg = 'eee : the file ' + fullfilename_msk + ' was not found.' 110 ras = report(msg) 111 STOP 112 ENDIF 113 ; 66 114 filein='/Volumes/PRAVEEN/ERAI_global/20c3m_erai_d2_TROP_1989_2009.nc' 67 gridout='/Volumes/PRAVEEN/work/flux_reconstruction/gridded_data/mask_oaflux_30N30S.nc'68 115 69 116 initncdf, filein … … 78 125 mskin=glamt*0.+1. 79 126 80 initncdf, gridout127 initncdf, fullfilename_msk 81 128 domdef 82 129 latout=reform(gphit(0,*)) & lonout=reform(glamt(*,0)) 83 130 print, 'lat grid ',min(latout),max(latout),latout(1)-latout(0) 84 131 print, 'lon grid ',min(lonout),max(lonout),lonout(1)-lonout(0) 85 mskout=read_ncdf("msk", file= gridout,/nostr)132 mskout=read_ncdf("msk", file=fullfilename_msk,/nostr) 86 133 87 134 help, d2min,lonin,latin,mskin,lonout,latout,mskout … … 99 146 timein=timein & jptin=jpt 100 147 101 initncdf, gridout148 initncdf, fullfilename_msk 102 149 cda0=string(jul2date(timein(0)),format='(i8.8)') 103 150 cda1=string(jul2date(timein(jpt-1)),format='(i8.8)') -
trunk/src/interp_erai_lwr_1989_2009.pro
r12 r19 1 1 ;+ 2 2 ; 3 ; .. interp_erai_lwr_1989_2009.pro:3 ; .. _interp_erai_lwr_1989_2009.pro: 4 4 ; 5 5 ; ============================= … … 13 13 ; rankdir="LR", 14 14 ; ] 15 ; mask [shape=ellipse,fontname=Courier,label=" /Volumes/PRAVEEN/work/flux_reconstruction/gridded_data/mask_oaflux_30N30S.nc"];15 ; mask [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/mask_oaflux_30N30S.nc"]; 16 16 ; 17 17 ; file_in [shape=ellipse,fontname=Courier,label="/Volumes/PRAVEEN/ERAI_global/20c3m_erai_str_TROP_1989_2009.nc"]; … … 32 32 ; ======== 33 33 ; 34 ; :ref:`tropflux_profile.sh` 35 ; 34 36 ; EXAMPLES 35 37 ; ======== … … 46 48 ; coding rules 47 49 ; 50 ; KNOWN ISSUES 51 ; ============ 52 ; 53 ; test of existence of fullfilename_msk not very efficient because 54 ; MUST_EXIST keyword of :func:`isafile <saxo:isafile>` not yet implemented 55 ; 48 56 ; EVOLUTIONS 49 57 ; ========== 58 ; 59 ; - fplod 20101217T140745Z aedon.locean-ipsl.upmc.fr (Darwin) 60 ; 61 ; * remove hard coded directory for mask_oaflux_30N30S.nc 50 62 ; 51 63 ; - fplod 20101215T094137Z aedon.locean-ipsl.upmc.fr (Darwin) … … 64 76 pro interp_erai_lwr_1989_2009 65 77 @common 78 ; 79 ; check for input directory 80 ; 81 ; test if ${TROPFLUX_ID} defined 82 tropflux_id_env=GETENV('TROPFLUX_ID') 83 CASE tropflux_id_env OF 84 '' : BEGIN 85 msg = 'eee : ${TROPFLUX_ID} is not defined' 86 ras = report(msg) 87 STOP 88 END 89 ELSE: BEGIN 90 msg = 'iii : ${TROPFLUX_ID} is ' + tropflux_id_env 91 ras = report(msg) 92 END 93 ENDCASE 94 ; 95 iodirin = isadirectory(tropflux_id_env) 96 ; 97 ; existence and protection of ${TROPFLUX_ID} 98 IF (FILE_TEST(iodirin, /DIRECTORY, /EXECUTABLE, /READ) EQ 0) THEN BEGIN 99 msg = 'eee : the directory' + iodirin + ' is not accessible.' 100 ras = report(msg) 101 STOP 102 ENDIF 103 ; 104 ; build mask filename 105 filename_msk='mask_oaflux_30N30S.nc' 106 ; 107 ; check if this file exists 108 fullfilename_msk = isafile(iodirin + filename_msk, NEW=0, /MUST_EXIST) 109 IF fullfilename_msk[0] EQ '' THEN BEGIN 110 msg = 'eee : the file ' + fullfilename_msk + ' was not found.' 111 ras = report(msg) 112 STOP 113 ENDIF 66 114 67 115 st=19890101 & en=20090801 … … 72 120 lwrin=-1*lwrin 73 121 help, lwrin 74 75 gridout='/Volumes/PRAVEEN/work/flux_reconstruction/gridded_data/mask_oaflux_30N30S.nc'76 122 77 123 initncdf, filein … … 85 131 mskin=glamt*0.+1. 86 132 87 initncdf, gridout133 initncdf, fullfilename_msk 88 134 domdef 89 135 latout=reform(gphit(0,*)) & lonout=reform(glamt(*,0)) 90 136 print, 'lat grid ',min(latout),max(latout),latout(1)-latout(0) 91 137 print, 'lon grid ',min(lonout),max(lonout),lonout(1)-lonout(0) 92 mskout=read_ncdf("msk", file= gridout,/nostr)138 mskout=read_ncdf("msk", file=fullfilename_msk,/nostr) 93 139 94 140 help, lwrin … … 113 159 xlon=reform(glamt(*,0) ) & ylat=reform(gphit(0,*)) 114 160 115 initncdf, gridout161 initncdf, fullfilename_msk 116 162 valmask=1.e20 117 163 -
trunk/src/interp_erai_sst_1989_2009.pro
r12 r19 15 15 ; file_in [shape=ellipse,fontname=Courier,label="/Volumes/PRAVEEN/ERAI_global/20c3m_erai_sstk_TROP_1989_2009.nc"]; 16 16 ; 17 ; mask [shape=ellipse,fontname=Courier,label=" /Volumes/PRAVEEN/work/flux_reconstruction/gridded_data/mask_oaflux_30N30S.nc"];17 ; mask [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/mask_oaflux_30N30S.nc"]; 18 18 ; 19 19 ; ncfile [shape=ellipse,fontname=Courier,label="/Volumes/PRAVEEN/TropFlux/input_uncor/erai_sst_19890101_20091231_oafluxgrid.nc"]; … … 31 31 ; ======== 32 32 ; 33 ; :ref:`tropflux_profile.sh` 34 ; 33 35 ; EXAMPLES 34 36 ; ======== … … 45 47 ; coding rules 46 48 ; 49 ; KNOWN ISSUES 50 ; ============ 51 ; 52 ; test of existence of fullfilename_msk not very efficient because 53 ; MUST_EXIST keyword of :func:`isafile <saxo:isafile>` not yet implemented 54 ; 47 55 ; EVOLUTIONS 48 56 ; ========== 57 ; 58 ; - fplod 20101217T140745Z aedon.locean-ipsl.upmc.fr (Darwin) 59 ; 60 ; * remove hard coded directory for mask_oaflux_30N30S.nc 49 61 ; 50 62 ; - fplod 20101215T100932Z aedon.locean-ipsl.upmc.fr (Darwin) … … 64 76 pro interp_erai_sst_1989_2009 65 77 @common 78 ; 79 ; check for input directory 80 ; 81 ; test if ${TROPFLUX_ID} defined 82 tropflux_id_env=GETENV('TROPFLUX_ID') 83 CASE tropflux_id_env OF 84 '' : BEGIN 85 msg = 'eee : ${TROPFLUX_ID} is not defined' 86 ras = report(msg) 87 STOP 88 END 89 ELSE: BEGIN 90 msg = 'iii : ${TROPFLUX_ID} is ' + tropflux_id_env 91 ras = report(msg) 92 END 93 ENDCASE 94 ; 95 iodirin = isadirectory(tropflux_id_env) 96 ; 97 ; existence and protection of ${TROPFLUX_ID} 98 IF (FILE_TEST(iodirin, /DIRECTORY, /EXECUTABLE, /READ) EQ 0) THEN BEGIN 99 msg = 'eee : the directory' + iodirin + ' is not accessible.' 100 ras = report(msg) 101 STOP 102 ENDIF 103 ; 104 ; build mask filename 105 filename_msk='mask_oaflux_30N30S.nc' 106 ; 107 ; check if this file exists 108 fullfilename_msk = isafile(iodirin + filename_msk, NEW=0, /MUST_EXIST) 109 IF fullfilename_msk[0] EQ '' THEN BEGIN 110 msg = 'eee : the file ' + fullfilename_msk + ' was not found.' 111 ras = report(msg) 112 STOP 113 ENDIF 66 114 67 115 filein='/Volumes/PRAVEEN/ERAI_global/20c3m_erai_sstk_TROP_1989_2009.nc' 68 gridout='/Volumes/PRAVEEN/work/flux_reconstruction/gridded_data/mask_oaflux_30N30S.nc'69 116 70 117 initncdf, filein … … 80 127 ;mskin=glamt*0.+1. 81 128 82 initncdf, gridout129 initncdf, fullfilename_msk 83 130 domdef 84 131 latout=reform(gphit(0,*)) & lonout=reform(glamt(*,0)) 85 132 print, 'lat grid ',min(latout),max(latout),latout(1)-latout(0) 86 133 print, 'lon grid ',min(lonout),max(lonout),lonout(1)-lonout(0) 87 mskout=read_ncdf("msk", file= gridout,/nostr)134 mskout=read_ncdf("msk", file=fullfilename_msk,/nostr) 88 135 ;stop 89 136 help, sstkin,lonin,latin,mskin,lonout,latout,mskout … … 101 148 timein=timein & jptin=jpt 102 149 103 initncdf, gridout150 initncdf, fullfilename_msk 104 151 time=timegen(7670, units='days', start=julday(1,1,1989)) & jpt=n_elements(time) 105 152 tt=time -
trunk/src/interp_erai_t2m_1989_2009.pro
r12 r19 1 1 ;+ 2 2 ; 3 ; .. interp_erai_t2m_1989_2009.pro:3 ; .. _interp_erai_t2m_1989_2009.pro: 4 4 ; 5 5 ; ============================= … … 15 15 ; ] 16 16 ; file_in [shape=ellipse,fontname=Courier,label="/Volumes/PRAVEEN/ERAI_global/20c3m_erai_t2_TROP_1989_2009.nc"]; 17 ; mask [shape=ellipse,fontname=Courier,label=" /Volumes/PRAVEEN/work/flux_reconstruction/gridded_data/mask_oaflux_30N30S.nc"];17 ; mask [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/mask_oaflux_30N30S.nc"]; 18 18 ; 19 19 ; ncfile [shape=ellipse,fontname=Courier,label="/Volumes/PRAVEEN/TropFlux/input_uncor/erai_t2m_19890101_20091231_oafluxgrid.nc"]; … … 33 33 ; ======== 34 34 ; 35 ; :ref:`tropflux_profile.sh` 36 ; 35 37 ; EXAMPLES 36 38 ; ======== … … 48 50 ; coding rules 49 51 ; 52 ; KNOWN ISSUES 53 ; ============ 54 ; 55 ; test of existence of fullfilename_msk not very efficient because 56 ; MUST_EXIST keyword of :func:`isafile <saxo:isafile>` not yet implemented 57 ; 50 58 ; EVOLUTIONS 51 59 ; ========== 60 ; 61 ; - fplod 20101217T140745Z aedon.locean-ipsl.upmc.fr (Darwin) 62 ; 63 ; * remove hard coded directory for mask_oaflux_30N30S.nc 52 64 ; 53 65 ; - fplod 20101215T112140Z aedon.locean-ipsl.upmc.fr (Darwin) … … 66 78 pro interp_erai_t2m_1989_2009 67 79 @common 80 ; 81 ; check for input directory 82 ; 83 ; test if ${TROPFLUX_ID} defined 84 tropflux_id_env=GETENV('TROPFLUX_ID') 85 CASE tropflux_id_env OF 86 '' : BEGIN 87 msg = 'eee : ${TROPFLUX_ID} is not defined' 88 ras = report(msg) 89 STOP 90 END 91 ELSE: BEGIN 92 msg = 'iii : ${TROPFLUX_ID} is ' + tropflux_id_env 93 ras = report(msg) 94 END 95 ENDCASE 96 ; 97 iodirin = isadirectory(tropflux_id_env) 98 ; 99 ; existence and protection of ${TROPFLUX_ID} 100 IF (FILE_TEST(iodirin, /DIRECTORY, /EXECUTABLE, /READ) EQ 0) THEN BEGIN 101 msg = 'eee : the directory' + iodirin + ' is not accessible.' 102 ras = report(msg) 103 STOP 104 ENDIF 105 ; 106 ; build mask filename 107 filename_msk='mask_oaflux_30N30S.nc' 108 ; 109 ; check if this file exists 110 fullfilename_msk = isafile(iodirin + filename_msk, NEW=0, /MUST_EXIST) 111 IF fullfilename_msk[0] EQ '' THEN BEGIN 112 msg = 'eee : the file ' + fullfilename_msk + ' was not found.' 113 ras = report(msg) 114 STOP 115 ENDIF 68 116 69 117 filein='/Volumes/PRAVEEN/ERAI_global/20c3m_erai_t2_TROP_1989_2009.nc' 70 gridout='/Volumes/PRAVEEN/work/flux_reconstruction/gridded_data/mask_oaflux_30N30S.nc'71 118 72 119 initncdf, filein … … 81 128 mskin=glamt*0.+1. 82 129 83 initncdf, gridout130 initncdf, fullfilename_msk 84 131 domdef 85 132 latout=reform(gphit(0,*)) & lonout=reform(glamt(*,0)) 86 133 print, 'lat grid ',min(latout),max(latout),latout(1)-latout(0) 87 134 print, 'lon grid ',min(lonout),max(lonout),lonout(1)-lonout(0) 88 mskout=read_ncdf("msk", file= gridout,/nostr)135 mskout=read_ncdf("msk", file=fullfilename_msk,/nostr) 89 136 90 137 help, t2min,lonin,latin,mskin,lonout,latout,mskout … … 100 147 timein=timein & jptin=jpt 101 148 102 initncdf, gridout149 initncdf, fullfilename_msk 103 150 help, t2mout 104 151 tt=timein -
trunk/src/interp_erai_ws_1989_2009.pro
r12 r19 16 16 ; file_v10 [shape=ellipse,fontname=Courier,label="/Volumes/PRAVEEN/ERAI_global/20c3m_erai_v10_TROP_1989_2009.nc"]; 17 17 ; 18 ; mask [shape=ellipse,fontname=Courier,label=" /Volumes/PRAVEEN/work/flux_reconstruction/gridded_data/mask_oaflux_30N30S.nc"];18 ; mask [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/mask_oaflux_30N30S.nc"]; 19 19 ; 20 20 ; ncfile [shape=ellipse,fontname=Courier,label="/Volumes/PRAVEEN/TropFlux/input_uncor/erai_ws_19890101_20091231_oafluxgrid.nc"]; … … 33 33 ; ======== 34 34 ; 35 ; :ref:`tropflux_profile.sh` 36 ; 35 37 ; EXAMPLES 36 38 ; ======== … … 48 50 ; coding rules 49 51 ; 52 ; KNOWN ISSUES 53 ; ============ 54 ; 55 ; test of existence of fullfilename_msk not very efficient because 56 ; MUST_EXIST keyword of :func:`isafile <saxo:isafile>` not yet implemented 57 ; 50 58 ; EVOLUTIONS 51 59 ; ========== 60 ; 61 ; - fplod 20101217T140745Z aedon.locean-ipsl.upmc.fr (Darwin) 62 ; 63 ; * remove hard coded directory for mask_oaflux_30N30S.nc 52 64 ; 53 65 ; - fplod 20101215T112657Z aedon.locean-ipsl.upmc.fr (Darwin) … … 66 78 pro interp_erai_ws_1989_2009 67 79 @common 80 ; 81 ; check for input directory 82 ; 83 ; test if ${TROPFLUX_ID} defined 84 tropflux_id_env=GETENV('TROPFLUX_ID') 85 CASE tropflux_id_env OF 86 '' : BEGIN 87 msg = 'eee : ${TROPFLUX_ID} is not defined' 88 ras = report(msg) 89 STOP 90 END 91 ELSE: BEGIN 92 msg = 'iii : ${TROPFLUX_ID} is ' + tropflux_id_env 93 ras = report(msg) 94 END 95 ENDCASE 96 ; 97 iodirin = isadirectory(tropflux_id_env) 98 ; 99 ; existence and protection of ${TROPFLUX_ID} 100 IF (FILE_TEST(iodirin, /DIRECTORY, /EXECUTABLE, /READ) EQ 0) THEN BEGIN 101 msg = 'eee : the directory' + iodirin + ' is not accessible.' 102 ras = report(msg) 103 STOP 104 ENDIF 105 ; 106 ; build mask filename 107 filename_msk='mask_oaflux_30N30S.nc' 108 ; 109 ; check if this file exists 110 fullfilename_msk = isafile(iodirin + filename_msk, NEW=0, /MUST_EXIST) 111 IF fullfilename_msk[0] EQ '' THEN BEGIN 112 msg = 'eee : the file ' + fullfilename_msk + ' was not found.' 113 ras = report(msg) 114 STOP 115 ENDIF 68 116 69 117 st=19880101 & en=20100930 … … 77 125 v10in=read_ncdf("v10",st, en,file=filein,/nostr) 78 126 79 gridout='/Volumes/PRAVEEN/work/flux_reconstruction/gridded_data/mask_oaflux_30N30S.nc'80 81 127 initncdf, filein 82 128 domdef … … 89 135 mskin=glamt*0.+1. 90 136 91 initncdf, gridout137 initncdf, fullfilename_msk 92 138 domdef 93 139 latout=reform(gphit(0,*)) & lonout=reform(glamt(*,0)) 94 140 print, 'lat grid ',min(latout),max(latout),latout(1)-latout(0) 95 141 print, 'lon grid ',min(lonout),max(lonout),lonout(1)-lonout(0) 96 mskout=read_ncdf("msk", file= gridout,/nostr)142 mskout=read_ncdf("msk", file=fullfilename_msk,/nostr) 97 143 98 144 help, u10in, v10in,lonin,latin,mskin,lonout,latout,mskout … … 121 167 xlon=reform(glamt(*,0) ) & ylat=reform(gphit(0,*)) 122 168 123 initncdf, gridout169 initncdf, fullfilename_msk 124 170 valmask=1.e20 125 171 -
trunk/src/interp_olr_30n30s_1989_2009.pro
r12 r19 15 15 ; file_in [shape=ellipse,fontname=Courier,label="/Users/pkb/data/heat_budget/NOAA_OLR/new/olr.day.mean_new.nc"]; 16 16 ; 17 ; mask [shape=ellipse,fontname=Courier,label=" /Volumes/PRAVEEN/work/flux_reconstruction/gridded_data/mask_oaflux_30N30S.nc"];17 ; mask [shape=ellipse,fontname=Courier,label="${TROPFLUX_ID}/mask_oaflux_30N30S.nc"]; 18 18 ; 19 19 ; ncfile [shape=ellipse,fontname=Courier,label="/Users/pkb/data/heat_budget/NOAA_OLR/newolr_oafluxgrid_30n30s_19890101_20091231.nc"]; … … 32 32 ; ======== 33 33 ; 34 ; :ref:`tropflux_profile.sh` 35 ; 34 36 ; EXAMPLES 35 37 ; ======== … … 46 48 ; coding rules 47 49 ; 50 ; KNOWN ISSUES 51 ; ============ 52 ; 53 ; test of existence of fullfilename_msk not very efficient because 54 ; MUST_EXIST keyword of :func:`isafile <saxo:isafile>` not yet implemented 55 ; 48 56 ; EVOLUTIONS 49 57 ; ========== 58 ; 59 ; - fplod 20101217T140745Z aedon.locean-ipsl.upmc.fr (Darwin) 60 ; 61 ; * remove hard coded directory for mask_oaflux_30N30S.nc 50 62 ; 51 63 ; - fplod 20101215T113118Z aedon.locean-ipsl.upmc.fr (Darwin) … … 64 76 pro interp_olr_30n30s_1989_2009 65 77 @common 78 ; 79 ; check for input directory 80 ; 81 ; test if ${TROPFLUX_ID} defined 82 tropflux_id_env=GETENV('TROPFLUX_ID') 83 CASE tropflux_id_env OF 84 '' : BEGIN 85 msg = 'eee : ${TROPFLUX_ID} is not defined' 86 ras = report(msg) 87 STOP 88 END 89 ELSE: BEGIN 90 msg = 'iii : ${TROPFLUX_ID} is ' + tropflux_id_env 91 ras = report(msg) 92 END 93 ENDCASE 94 ; 95 iodirin = isadirectory(tropflux_id_env) 96 ; 97 ; existence and protection of ${TROPFLUX_ID} 98 IF (FILE_TEST(iodirin, /DIRECTORY, /EXECUTABLE, /READ) EQ 0) THEN BEGIN 99 msg = 'eee : the directory' + iodirin + ' is not accessible.' 100 ras = report(msg) 101 STOP 102 ENDIF 103 ; 104 ; build mask filename 105 filename_msk='mask_oaflux_30N30S.nc' 106 ; 107 ; check if this file exists 108 fullfilename_msk = isafile(iodirin + filename_msk, NEW=0, /MUST_EXIST) 109 IF fullfilename_msk[0] EQ '' THEN BEGIN 110 msg = 'eee : the file ' + fullfilename_msk + ' was not found.' 111 ras = report(msg) 112 STOP 113 ENDIF 66 114 67 115 filein='/Users/pkb/data/heat_budget/NOAA_OLR/new/olr.day.mean_new.nc' 68 gridout='/Volumes/PRAVEEN/work/flux_reconstruction/gridded_data/mask_oaflux_30N30S.nc'69 116 70 117 initncdf, filein … … 79 126 timein=time & jptin=jpt 80 127 81 initncdf, gridout128 initncdf, fullfilename_msk 82 129 domdef 83 130 latout=reform(gphit(0,*)) & lonout=reform(glamt(*,0)) 84 131 print, 'lat grid ',min(latout),max(latout),latout(1)-latout(0) 85 132 print, 'lon grid ',min(lonout),max(lonout),lonout(1)-lonout(0) 86 mskout=read_ncdf("msk", file= gridout,/nostr)133 mskout=read_ncdf("msk", file=fullfilename_msk,/nostr) 87 134 88 135 help, olrin,lonin,latin,mskin,lonout,latout,mskout -
trunk/src/oaflux_mask_30N30S.pro
r18 r19 44 44 ; :ref:`tropflux_profile.sh` 45 45 ; 46 ; :ref:`get_oaflux.sh` 47 ; 46 48 ; :func:`report <saxo:report>` 47 49 ; :func:`initncdf <saxo:initncdf>` … … 49 51 ; :ref:`ncdf_quickwrite <saxo:ncdf_quickwrite>` 50 52 ; :func:`isadirectory <saxo:isadirectory>` 53 ; :func:`isafile <saxo:isafile>` 54 ; 55 ; :ref:`TropFlux_19890101_20091231.pro` 56 ; :ref:`interp_erai_dewt_1989_2009.pro` 57 ; :ref:`interp_erai_lwr_1989_2009.pro` 58 ; :ref:`interp_erai_sst_1989_2009.pro` 59 ; :ref:`interp_erai_t2m_1989_2009.pro` 60 ; :ref:`interp_erai_ws_1989_2009.pro` 61 ; :ref:`interp_olr_30n30s_1989_2009.pro` 51 62 ; 52 63 ; EXAMPLES … … 76 87 ; 77 88 ; test of existence of fullfilename_in not very efficient because 78 ; MUST_EXIST keyword of :func:`isafile ` not yet implemented89 ; MUST_EXIST keyword of :func:`isafile <saxo:isafile>` not yet implemented 79 90 ; 80 91 ; EVOLUTIONS -
trunk/src/time_axe_modif_TropFlux.pro
r12 r19 16 16 ; file_inout [shape=ellipse,fontname=Courier,label="/Users/pkb/data/TropFlux/TropFlux_19890101_20091231.nc"]; 17 17 ; 18 ; time_axe_modif_TropFlux 18 ; time_axe_modif_TropFlux [shape=box, 19 19 ; fontname=Courier, 20 20 ; color=blue,
Note: See TracChangeset
for help on using the changeset viewer.