Changeset 17


Ignore:
Timestamp:
03/21/07 14:18:07 (17 years ago)
Author:
pinsard
Message:

remove xxx_oneplot.pro and for_createpro.pro which are not supposed to be here : They interfere with xxx temporary files in myuniquetmpdir

Location:
trunk
Files:
2 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/geomag_profile.sh

    r10 r17  
    1 # !/bin/sh 
     1# !/bin/sh -xv 
    22# 
    33# module : 
     
    66# usage : 
    77# online usage 
    8 # $ . geomag_profile.sh 
     8# $ . geomag_profile.sh -d directory 
    99# 
    1010# in ${HOME}/.profile, add the following line 
    11 # . geomag_profile.sh 
     11# . geomag_profile.sh -d directory 
     12# 
     13# examples : 
     14# for fplod, on aedon.locean-ipsl.upmc.fr 
     15# $ cd /usr/home/fplod/incas/geomag/geomag_ws 
     16# $  . geomag_profile.sh -d /usr/home/fplod/incas/geomag/geomag_ws/ 
     17# for reee522 on rhodes.idris.fr 
     18# $ cd ${HOME}/incas/geomag/geomag_ws/ 
     19# $ . geomag_profile.sh -d ${HOME}/incas/geomag/geomag_ws/ 
    1220# 
    1321# original location 
     
    1826# ++ machine dependant 
    1927# ++ besoin de posix 
     28# ++ pas de MANPATH defini par déut sur zeus 
     29# fplod 2007-03-13T16:12:41Z zeus.locean-ipsl.upmc.fr (Linux) 
     30# add creation of $GEOMAG_ID and $GEOMAG_OD if they don't exist 
    2031# reee522 2006-11-23T11:41:41Z rhodes (IRIX64) 
    2132# pas de set -o posix sur rhodes (IRIX64) 
     
    2435# creation 
    2536# 
     37# 
     38command=geomag_profile.sh 
     39# 
     40usage=" Usage : ${command} -d directory" 
     41# 
     42while [ ! -z "${1}" ] # ++ pb bash 
     43do 
     44 case ${1} in 
     45 -d) # directory choosen by user 
     46  directory=${2} 
     47  shift 
     48 ;; 
     49 *) # other choice 
     50  echo "${usage}" 
     51  # nb : no exit because this file should be launched by login process 
     52 ;; 
     53 esac 
     54 shift # next flag 
     55done 
     56 
     57# check for ${directory} 
     58if [ ! -d ${directory} ] 
     59then 
     60 echo " eee : ${directory} not found" 
     61 # nb : no exit because this file should be launched by login process 
     62fi 
     63# 
     64# check for permission on directory 
     65if [ ! -x ${directory} ] 
     66then 
     67 echo " eee : ${directory} not reachable" 
     68 # nb : no exit because this file should be launched by login process 
     69fi 
    2670# 
    2771set -u 
     
    3680esac 
    3781# 
    38 command='geomag_profile.sh' 
    3982# 
    40 GEOMAG=${HOME}/incas/geomag/ # ++   
    41 # test if $GEOMAG available 
    42 if [ ! -d ${GEOMAG} ] 
    43 then 
    44  echo "${command} : eee : ${GEOMAG} directory not available" 
    45  # nb : no exit because this file should be launched by login process 
    46  # ++ how to worn user 
    47 fi 
     83GEOMAG=${directory} 
     84export GEOMAG 
    4885# 
    4986# add GEOMAG tools to PATH 
     
    82119GEOMAG_ID=${HOME}/geomag_d/ 
    83120export GEOMAG_ID 
     121if [ ! -d ${GEOMAG_ID} ]  
     122then 
     123  mkdir -p ${GEOMAG_ID} 
     124  echo "${command} : iii : creation of \${GEOMAG_ID}" 
     125fi  
    84126GEOMAG_OD=${HOME}/geomag_d/ 
    85127export GEOMAG_OD 
     128if [ ! -d ${GEOMAG_ID} ] 
     129then 
     130  mkdir -p ${GEOMAG_OD} 
     131  echo "${command} : iii : creation of \${GEOMAG_OD}" 
     132fi 
    86133# 
    87134# end 
    88135# nb : no exit because this file should be launched by login process 
    89 # ++ how to worn user 
  • trunk/initorca2_bab.pro

    r2 r17  
     1; + 
     2; @file_comments 
     3; initialisation on ORCA2 grid 
    14; 
     5; @history 
     6; F. Vivier 2003 
     7; F. Pinsard adaptation to new SAXO 
     8; according to SAXO ./SRC/Tests/tst_initorca2.pro 
    29; 
    3 @common 
     10; @todo 
     11; parametrisation for ORCA025 
     12; 
     13; zminmesh and izmaxmesh may be set to 0,0 because we only work with  
     14; surface problem (no z) whatever the resolution of ORCA. this will safe lot  
     15; of memory 
     16;  
     17; use ncdf_getaxis to recover meshmask dimension 
     18; on x, retrieve -1 and -1 (bande de recouvrement haut et bas) 
     19; on y, for ORCA2, retrieve -2 (bande de recouvrement ++ et ++)  
     20; 
     21; reminder : ORCA2 = 182 x 149 and ORCA025 1442 x 1021 
     22;  
     23; for ORCA025, user /keepcont in triangule call. 
     24; 
     25; @version 
     26; $Id$ 
     27;- 
     28; 
     29@cm_4mesh 
     30@cm_4cal 
     31@cm_4data 
     32; 
    433;--------------------------------------------------------- 
    5 ; bornes de la grille 
     34; boundaries of the read grid regarding to the original grid 
    635;---------------------------------------------------------- 
    7 ;ixminmesh  =2 
    8 ;ixmaxmesh  =181 
    9 ; ; 
    10 ; iyminmesh  =0 
    11 ; iymaxmesh  =147 
    12  
     36; 
    1337ixminmesh  =1 
    1438ixmaxmesh  =180 
    15  
    16 ;ixminmesh  =0 
    17 ;ixmaxmesh  =179 
    1839; 
    1940iyminmesh  =0 
     
    2647time = 0 
    2748;------------------------------------------------------ 
    28 ; lecture de la grille 
     49; read the grid 
    2950;------------------------------------------------------ 
    3051iodir = '/usr/work/sur/fvi/OPA/ORCA2/' 
    3152 
    32 ;key_shift = 31 
    33 key_shift = 0 
    3453key_stride = [1, 1, 1] 
    3554ncdf_meshlec, 'meshmask_bab.nc', glamboundary = [20, 380] 
    36 ;, glamboundary = [20, 380] 
    37 ;,/checkdat 
    3855;------------------------------------------------------------- 
    3956domdef 
    4057; 
    41 key_periodique = 1 
    42 triangles = triangule() 
     58triangles_list = triangule() 
    4359;---------------------------------------------------------- 
    44 ; bornes pour la lecture des donnees 
     60; boundaries of the data regarding to the original grid 
    4561;---------------------------------------------------------- 
    4662jpidta = jpiglo 
     
    5369izmindta = 0 
    5470izmaxdta = jpkdta-1 
    55  
     71;---------------------------------------------------------- 
     72@updateold 
  • trunk/rseries_ncdf.pro

    r13 r17  
    250250; if we need to read more than one file, 
    251251; first we read the first file 
     252;++    print,var,date1+century*1000000L, datelast[0]+century*1000000L  
     253;++READ, B, PROMPT='Enter Name: '   
    252254    res1 = read_ncdf(var, date1+century*1000000L, datelast[0]+century*1000000L $ 
    253255                     , filename = filename, /nostruct, _extra = ex) 
  • trunk/step1_diff.pro

    r16 r17  
    1313; 
    1414; @examples 
    15 ; test (for header and delta)  
     15; test (for header and delta) 
    1616; to compute difference between cond_sed in cond_sed_ORCA2.nc and 
    1717; itself and write it in ginette.nc : 
    18 ; rhodes\@reee522$ cd /home/rech/eee/reee522/incas/geomag/geomag_ws 
    19 ; rhodes\@reee522$ idl 
    20 ; IDL> step1_diff, 'cond_sed_ORCA2.nc', 'cond_sed_ORCA2.nc', 'ginette.nc' 
     18; $ cd ${GEOMAG} 
     19; $ idl 
     20; IDL> file1=getenv('GEOMAG') + '/cond_sed_ORCA2.nc' 
     21; IDL> file2=getenv('GEOMAG_OD') + '/cond_sed_ORCA2.nc' 
     22; IDL> step1_diff, file1, file2, 'ginette.nc' 
    2123; values of delta must be 0 everywhere 
    22 ; rhodes\@reee522$ rm ginette.nc 
     24; $ rm ginette.nc 
    2325; idem with BR file 
    24 ; IDL> step1_diff, 'Br_ORCA2.nc', 'Br_ORCA2.nc', 'ginette.nc' 
     26; IDL> file1=getenv('GEOMAG') + '/Br_ORCA2.nc' 
     27; IDL> file2=getenv('GEOMAG_OD') + '/Br_ORCA2.nc' 
     28; IDL> step1_diff, file1, file2, 'ginette.nc' 
    2529; 
    2630; real life 
     
    2832; /home/rech/eee/reee522/geomag_d/cond_sed_ORCA2.nc and write it in 
    2933; cond_sed_ORCA2_diff.nc : 
    30 ; rhodes\@reee522$ cd /home/rech/eee/reee522/incas/geomag/geomag_ws 
    31 ; rhodes\@reee522$ idl 
    32 ; IDL> step1_diff, 'cond_sed_ORCA2.nc', $ 
    33 ;      '/home/rech/eee/reee522/geomag_d/cond_sed_ORCA2.nc', $ 
    34 ;     'cond_sed_ORCA2_diff.nc' 
    35 ; IDL> step1_diff, 'Br_ORCA2.nc', $ 
    36 ;      '/home/rech/eee/reee522/geomag_d/Br_ORCA2.nc', $ 
    37 ;     'Br_ORCA2_diff.nc' 
     34; $ cd ${GEOMAG} 
     35; $ idl 
     36; IDL> file1=getenv('GEOMAG') + '/cond_sed_ORCA2.nc' 
     37; IDL> file2=getenv('GEOMAG_OD') + '/cond_sed_ORCA2.nc' 
     38; IDL> step1_diff, file1, file2, 'cond_sed_ORCA2_diff.nc' 
     39; IDL> file1=getenv('GEOMAG') + '/Br_ORCA2.nc' 
     40; IDL> file2=getenv('GEOMAG_OD') + '/Br_ORCA2.nc' 
     41; IDL> step1_diff, file1, file2, 'Br_ORCA2_diff.nc' 
    3842; 
    3943; to see the difference, for example 
     
    4145; IDL> xxx,'Br_ORCA2_diff.nc' 
    4246; select xy on plt wigdet 
    43 ;  
     47; 
    4448; @history 
    4549; reee522 2006-12-18T10:38:49Z rhodes (IRIX64) 
     
    5357; $Id$ 
    5458; 
    55 PRO step1_diff, file1,file2,file3 
     59PRO step1_diff, file1, file2, file3 
    5660; 
    5761ncverbose=1 
     
    102106checknonzero=where(delta NE 0.,count) 
    103107IF count EQ 0 THEN BEGIN 
    104    msg = ' iii : delta is zero everywhere' 
     108   msg = 'iii : delta is zero everywhere' 
    105109   PRINT, msg 
    106110ENDIF ELSE BEGIN 
    107    msg = ' iii : delta is not zero ' + STRING(count)  + ' times' 
     111   msg = 'iii : delta is not zero ' + STRING(count)  + ' times' 
    108112   PRINT, msg 
    109113ENDELSE 
Note: See TracChangeset for help on using the changeset viewer.