Changeset 93 for trunk/src


Ignore:
Timestamp:
08/23/11 17:59:02 (13 years ago)
Author:
pinsard
Message:

try to make progress with idl8 (cont.)

Location:
trunk/src
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/d2m_to_q2m_erai.pro

    r92 r93  
    284284globattr={source:'Surface specific humidity at 2m calculated from dew point temperature',timerange:cda0+' - '+cda1} 
    285285 
    286 ncfields = i'q2m[longitude,latitude,time]=q2m:q2m_attr; ' $ 
     286ncfields = 'q2m[longitude,latitude,time]=q2m:q2m_attr; ' $ 
    287287                      + 'longitude[]=xlon:lon_attr; ' $ 
    288288                      + 'latitude[]=ylat:lat_attr; ' $ 
  • trunk/src/interp_erai_dewt_1989_2009.pro

    r92 r93  
    1515; containing 
    1616; d2 from ERA-I 
    17 ; have been produced by 
     17; has been produced by 
    1818; :ref:`compute_erai_daily_region_2d.sh`. 
    1919; 
    2020; :file:`${PROJECT_ID}/mask_oaflux_30N30S.nc` 
    2121; containing OAFLUX grid 
    22 ; have been produced by 
     22; has been produced by 
    2323; :ref:`oaflux_mask_30N30S.pro`. 
    2424; 
     
    8383;  IDL> interp_erai_dewt_1989_2009 
    8484; 
     85; TIPS 
     86; ==== 
     87; 
     88; To see some values of variable :: 
     89; 
     90;   $ ncks -v d2m -d time,0,1 -d latitude,0,1 -d longitude,0,1 \ 
     91;     $PROJECT_ID/erai_d2m_19890101_200 1231_oafluxgrid.nc 
     92; 
    8593; TODO 
    8694; ==== 
    87 ; 
    88 ; make it work : pb on loholt1 idl8:: 
    89 ; 
    90 ; reach end but bad values (all NaN) :: 
    91 ;   $ ncks -v d2m -d time,0,1 -d latitude,0,1 -d longitude,0,1 \ 
    92 ;     $PROJECT_ID/erai_d2m_19890101_200 1231_oafluxgrid.nc 
    93 ;     time[0]=14245.5 latitude[0]=-29.5 longitude[0]=30.5 d2m[0]=9.96921e+36 degK 
    94 ;     time[0]=14245.5 latitude[0]=-29.5 longitude[1]=31.5 d2m[1]=9.96921e+36 degK 
    95 ;     time[0]=14245.5 latitude[1]=-28.5 longitude[0]=30.5 d2m[350]=9.96921e+36 degK 
    96 ;     time[0]=14245.5 latitude[1]=-28.5 longitude[1]=31.5 d2m[351]=9.96921e+36 degK 
    97 ;     time[1]=14246.5 latitude[0]=-29.5 longitude[0]=30.5 d2m[21000]=9.96921e+36 degK 
    98 ;     time[1]=14246.5 latitude[0]=-29.5 longitude[1]=31.5 d2m[21001]=9.96921e+36 degK 
    99 ;     time[1]=14246.5 latitude[1]=-28.5 longitude[0]=30.5 d2m[21350]=9.96921e+36 degK 
    100 ;     time[1]=14246.5 latitude[1]=-28.5 longitude[1]=31.5 d2m[21351]=9.96921e+36 degK 
    101  
    102 ;     latitude[0]=-29.5 degrees_north 
    103 ;     latitude[1]=-28.5 degrees_north 
    104 ; 
    105 ;     longitude[0]=30.5 degrees_east 
    106 ;     longitude[1]=31.5 degrees_east 
    107  
    108 ;     time[0]=14245.5 days since 1950-01-01 00:00:00 
    109 ;     time[1]=14246.5 days since 1950-01-01 00:00:00 
    110 ; 
    111 ;   d2m[longitude,latitude,time]=d2mout:d2m_attr; longitude[]=lon:lon_attr; latitude[]=lat:lat_attr; time[*time]=timein:time_attr  @ globattr 
    112 ;   % NCDF_DIMDEF: 0 is not a valid cdfid. 
    113 ;   % Stop encountered: INTERP_ERAI_DEWT_1989_2009    1 
    114 ;      /home/pinsard/tropflux_ws/src/interp_erai_dewt_1989_2009.pro 
    115 ; 
    116 ; make it work : pb on loholt1 idl6:: 
    117 ; 
    118 ;   d2m[longitude,latitude,time]=d2mout:d2m_attr; longitude[]=lon:lon_attr; latitude[]=lat:lat_attr; time[*time]=timein:time_attr  @ globattr 
    119 ;   % NCDF_VARPUT: Operation Failed, bad file (4) or variable (0) id ? 
    120 ;                  (NC_ERROR=-31) 
    121 ;   % Stop encountered: INTERP_ERAI_DEWT_1989_2009    1 
    122 ;     /home/pinsard/tropflux_ws/src/interp_erai_dewt_1989_2009.pro 
    123 ; 
    124 ; no such trouble on idl64 on cratos  
    12595; 
    12696; check OUTMASK_IND and SET_OUTMSKVAL added to call_interp2d call 
  • trunk/src/interp_erai_lwr_1989_2009.pro

    r92 r93  
    1414; :file:`${PROJECT_ID}/20c3m_erai_str_TROP_1989_2009.nc`  
    1515; containing str from ERA-I  
    16 ; have been produced 
     16; has been produced 
    1717; by :ref:`compute_erai_daily_region_2d.sh`. 
    1818; 
    1919; :file:`${PROJECT_ID}/mask_oaflux_30N30S.nc`  
    2020; containing OAFLUX mask 
    21 ; have been produced by  
     21; has been produced by  
    2222; :ref:`oaflux_mask_30N30S.pro`. 
    2323; 
     
    8383; ==== 
    8484; 
    85 ; make it work : pb on loholt1 idl8:: 
    86 ; 
    87 ;  lwr[longitude,latitude,time]=lwrout:lwr_attr; longitude[]=xlon:lon_attr; latitude[]=ylat:lat_attr; tt[*time]=tt:time_attr  @ globattr 
    88 ;  % NCDF_DIMDEF: 0 is not a valid cdfid. 
    89 ;  % Stop encountered: INTERP_ERAI_LWR_1989_2009    1 
    90 ;     /home/pinsard/tropflux_ws/src/interp_erai_lwr_1989_2009.pro 
     85; make it work : pb on loholt1 idl8: 
     86; 
     87; reach end but bad values (all NaN) 
    9188; 
    9289; make it work : pb on loholt1 idl6:: 
  • trunk/src/interp_erai_msl_1989_2009.pro

    r92 r93  
    1515; containing 
    1616; msl from ERA-I 
    17 ; have been produced by 
     17; has been produced by 
    1818; :ref:`compute_erai_daily_region_2d.sh`. 
    1919; 
     
    2121; containing 
    2222; OAFLUX grid 
    23 ; have been produced by 
     23; has been produced by 
    2424; :ref:`oaflux_mask_30N30S.pro`. 
    2525; 
     
    8787; ==== 
    8888; 
    89 ; make it work loholt1 idl8:: 
    90 ; 
    91 ;    msl[longitude,latitude,time]=mslout:msl_attr; longitude[]=lon:lon_attr; latitude[]=lat:lat_attr; time[*time]=timein:time_attr  @ globattr 
    92 ;    % NCDF_VARPUT: Operation Failed, bad file (6) or variable (0) id ? 
    93 ;                   (NC_ERROR=-31) 
    94 ;    % Stop encountered: INTERP_ERAI_MSL_1989_2009    1 
    95 ;      /home/pinsard/tropflux_ws/src/interp_erai_msl_1989_2009.pro 
    96 ;     
    9789; use real output of :ref:`compute_erai_daily_region_2d.sh`. 
    9890; 
  • trunk/src/interp_erai_sst_1989_2009.pro

    r92 r93  
    1414; :file:`${PROJECT_ID}/20c3m_erai_sstk_TROP_1989_2009.nc` 
    1515; containing sst from ERA-I 
    16 ; have been produced by 
     16; has been produced by 
    1717; :ref:`compute_erai_daily_region_2d.sh`. 
    1818; 
     
    2020; containing 
    2121; OAFLUX grid 
    22 ; have been produced by 
     22; has been produced by 
    2323; :ref:`oaflux_mask_30N30S.pro`. 
    2424; 
     
    8787; 
    8888; on cratos strange red data looking with ncview 
    89 ; 
    90 ; make it work : pb on loholt1 idl8:: 
    91 ; 
    92 ;    sst[longitude,latitude,time]=sstkout:sstk_attr; longitude[]=lon:lon_attr; latitude[]=lat:lat_attr; time[*time]=timein:time_attr  @ globattr 
    93 ;    % NCDF_VARPUT: Operation Failed, bad file (7) or variable (0) id ? 
    94 ;                   (NC_ERROR=-31) 
    95 ;    % Stop encountered: INTERP_ERAI_SST_1989_2009    1 
    96 ;      /home/pinsard/tropflux_ws/src/interp_erai_sst_1989_2009.pro 
    97 ; 
    98 ; but ok on loholt1 idl6 
    9989; 
    10090; check OUTMASK_IND and SET_OUTMSKVAL added to call_interp2d call 
  • trunk/src/interp_erai_t2m_1989_2009.pro

    r92 r93  
    1515; containing 
    1616; t2 from ERA-I 
    17 ; have been produced by 
     17; has been produced by 
    1818; :ref:`compute_erai_daily_region_2d.sh`. 
    1919; 
    2020; :file:`${PROJECT_ID}/mask_oaflux_30N30S.nc` 
    2121; containing OAFLUX grid 
    22 ; have been produced by 
     22; has been produced by 
    2323; :ref:`oaflux_mask_30N30S.pro`. 
    2424; 
     
    9292; ==== 
    9393; 
    94 ; make it work : pb on loholt1 idl8:: 
    95 ; 
    96 ;    t2m[longitude,latitude,*time]=t2mout:t2m_attr; longitude[]=lon:lon_attr; latitude[]=lat:lat_attr; time[]=timein:time_attr  @globattr 
    97 ;    % NCDF_VARPUT: Operation Failed, bad file (8) or variable (0) id ? 
    98 ;                   (NC_ERROR=-31) 
    99 ;    % Stop encountered: INTERP_ERAI_T2M_1989_2009    1 
    100 ;      /home/pinsard/tropflux_ws/src/interp_erai_t2m_1989_2009.pro 
     94; make it work : pb on loholt1 idl8 
     95; 
     96; reach end but bad time and t2m values :: 
     97;$ ncks -v t2m  -d time,0,1 -d latitude,0,1 -d longitude,0,1 /homedata/pinsard/tropflux_d/erai_t2m_19890101_20091231_oafluxgrid.nc  
     98;     latitude[0]=-29.5 degrees_north 
     99;     latitude[1]=-28.5 degrees_north 
     100;      
     101;     longitude[0]=30.5 degrees_east 
     102;     longitude[1]=31.5 degrees_east 
     103;      
     104;     time[0]=9.96920996839e+36 latitude[0]=-29.5 longitude[0]=30.5 t2m[0]=9.96921e+36 degK 
     105;     time[0]=9.96920996839e+36 latitude[0]=-29.5 longitude[1]=31.5 t2m[1]=9.96921e+36 degK 
     106;     time[0]=9.96920996839e+36 latitude[1]=-28.5 longitude[0]=30.5 t2m[350]=9.96921e+36 degK 
     107;     time[0]=9.96920996839e+36 latitude[1]=-28.5 longitude[1]=31.5 t2m[351]=9.96921e+36 degK 
     108;     time[1]=9.96920996839e+36 latitude[0]=-29.5 longitude[0]=30.5 t2m[21000]=9.96921e+36 degK 
     109;     time[1]=9.96920996839e+36 latitude[0]=-29.5 longitude[1]=31.5 t2m[21001]=9.96921e+36 degK 
     110;     time[1]=9.96920996839e+36 latitude[1]=-28.5 longitude[0]=30.5 t2m[21350]=9.96921e+36 degK 
     111;     time[1]=9.96920996839e+36 latitude[1]=-28.5 longitude[1]=31.5 t2m[21351]=9.96921e+36 degK 
     112;      
     113;     time[0]=9.96920996839e+36 hours since 1957-01-01 00:00:0.0 
     114;     time[1]=9.96920996839e+36 hours since 1957-01-01 00:00:0.0 
    101115; 
    102116; loholt1 idl6 : end without error but looking with ncview all brown ! 
     
    352366lon=lonout 
    353367ncfile='!' + fullfilename_out 
    354 print, 'ncfile ', ncfile 
    355368ncdf_getatt, fullfilename_msk, 'longitude', units=units 
    356369ncdf_getatt, fullfilename_msk, 'longitude', long_name=long_name 
  • trunk/src/interp_erai_ws_1989_2009.pro

    r92 r93  
    1515; containing 
    1616; u10 from ERA-I 
    17 ; have been produced by 
     17; has been produced by 
    1818; :ref:`compute_erai_daily_region_2d.sh`. 
    1919; 
     
    2121; containing 
    2222; v10 from ERA-I 
    23 ; have been produced by 
     23; has been produced by 
    2424; :ref:`compute_erai_daily_region_2d.sh`. 
    2525; 
    2626; :file:`${PROJECT_ID}/mask_oaflux_30N30S.nc` 
    2727; containing OAFLUX grid 
    28 ; have been produced by 
     28; has been produced by 
    2929; :ref:`oaflux_mask_30N30S.pro`. 
    3030; 
     
    9292; ==== 
    9393; 
    94 ; make it work : pb on loholt1 idl8:: 
    95 ; 
    96 ;    Writing fields:  
    97 ;    u10[longitude,latitude,time]=u10out:u10_attr; v10[longitude,latitude,time]=v10out:v10_attr; longitude[]=xlon:lon_attr; latitude[]=ylat:lat_attr; tt[*time]=tt:time_attr  @ globattr 
    98 ;    % NCDF_VARPUT: Operation Failed, bad file (9) or variable (0) id ? 
    99 ;                   (NC_ERROR=-31) 
    100 ;    % Stop encountered: INTERP_ERAI_WS_1989_2009    1 
    101 ;      /home/pinsard/tropflux_ws/src/interp_erai_ws_1989_2009.pro 
     94; make it work : pb on loholt1 idl8 
     95; 
     96; reach end but bad values et nb timestep 4581:: 
     97; 
     98;     ncks -v u10  -d time,0,1 -d latitude,0,1 -d longitude,0,1 /homedata/pinsard/tropflux_d/erai_ws_19890101_20091231_oafluxgrid.nc  
     99;     latitude[0]=-29.5 degrees_north 
     100;     latitude[1]=-28.5 degrees_north 
     101;      
     102;     longitude[0]=30.5 degrees_east 
     103;     longitude[1]=31.5 degrees_east 
     104;      
     105;     time[0] latitude[0]=-29.5 longitude[0]=30.5 u10[0]=9.96921e+36 m/s 
     106;     time[0] latitude[0]=-29.5 longitude[1]=31.5 u10[1]=9.96921e+36 m/s 
     107;     time[0] latitude[1]=-28.5 longitude[0]=30.5 u10[350]=9.96921e+36 m/s 
     108;     time[0] latitude[1]=-28.5 longitude[1]=31.5 u10[351]=9.96921e+36 m/s 
     109;     time[1] latitude[0]=-29.5 longitude[0]=30.5 u10[21000]=9.96921e+36 m/s 
     110;     time[1] latitude[0]=-29.5 longitude[1]=31.5 u10[21001]=9.96921e+36 m/s 
     111;     time[1] latitude[1]=-28.5 longitude[0]=30.5 u10[21350]=9.96921e+36 m/s 
     112;     time[1] latitude[1]=-28.5 longitude[1]=31.5 u10[21351]=9.96921e+36 m/s 
    102113; 
    103114; make it work : pb on loholt1 idl6:: 
  • trunk/src/sst_correction_ncdf.pro

    r92 r93  
    2626; :ref:`TropFlux_19890101_20091231.pro`. 
    2727; 
     28; ; This output file 
     29; :file:`${PROJECT_OD}/TropFlux_sst_19890101_20091231.nc` 
     30; is one of the deliverable of TropFlux. 
     31; 
    2832; .. only:: man 
    2933; 
     
    7478; TODO 
    7579; ==== 
     80; 
     81; make it work on loholt1 idl8: 
     82; reach end whtiout error but with bad values (9.96921e+36 on time and sst, nb timestep  5716 
     83; 
     84; see commands:: 
     85; 
     86;     ncks -v sst  -d time,0,1 -d latitude,0,1 -d longitude,0,1 /homedata/pinsard/tropflux_d/TropFlux_sst_19890101_20091231.nc 
    7687; 
    7788; very strange value of time on lohlot1 idl6 but not always and not always at the same indices !!:: 
Note: See TracChangeset for help on using the changeset viewer.