source: ether_geisa/trunk/cgi-bin/geisa_post_nu

Last change on this file was 1, checked in by cbipsl, 18 years ago

Geisa inital import

File size: 1.6 KB
Line 
1#file=geisa_post_nu
2#on entry: $menu_opt=...Nu1=nnn&...Nu2=ppp&...[Dnu=qqq&]... (POST method)
3#on exit: defines $nu1=nnn,
4#                 $nu2=ppp,
5#                 $dnu=qqq, if $dnu_opt was defined !=0 on entry,
6#                 $dnu="" otherwise.
7#                 $execute_parms=$execute_parms",nu1=nnn,nu2=ppp[,dnu=qqq]"
8HOME_GEISA=/usr/local/apache/cgi-bin/geisa
9ifs=$IFS;IFS="&";nu1=;nu2=;dnu=;for s in $menu_opt;do
10l=`expr "$s" : 'Nu1=\(.*\)'`;[ "$l" ]&&nu1="$l"
11l=`expr "$s" : 'Nu2=\(.*\)'`;[ "$l" ]&&nu2="$l"
12l=`expr "$s" : 'Dnu=\(.*\)'`;[ "$l" ]&&dnu="$l"
13done;IFS=$ifs
14nu1=`$HOME_GEISA/unescape -b "$nu1"`
15nu2=`$HOME_GEISA/unescape -b "$nu2"`
16dnu=`$HOME_GEISA/unescape -b "$dnu"`
17[ `$HOME_GEISA/vreal "$nu1"` = 1 ]&&
18{
19echo "<em>"
20 echol "Erreur: La limite inf&eacute;rieure du domaine spectral est incorrecte"
21"Error: Invalid spectral area lower bound"
22 echo ".</em><br>"
23error=2
24}
25[ `$HOME_GEISA/vreal "$nu2"` = 1 ]&&
26{
27echo "<em>"
28 echol "Erreur: La limite sup&eacute;rieure du domaine spectral est incorrecte" "Error: Invalid spectral area upper bound"
29 echo ".</em><br>"
30error=2
31}
32[ ${error:-0} -lt 2 -a `$HOME_GEISA/vord "$nu1" "$nu2"` = 1 ]&&
33{
34echo "<em>"
35 echol "Erreur: Les limites du domaine spectral sont incorrectes" "Invalid spectral area bounds"
36 echo ".</em><br>"
37error=1
38}
39[ "$dnu" ]&&[ `$HOME_GEISA/vreal "$dnu"` = 1 ]&&
40{
41echo "<em>"
42 echol "Erreur: Le pas d'&eacute;tude du domaine spectral est incorrect" "Error: Invalid spectral area sampling step"
43 echo ".</em><br>"
44error=1
45}
46execute_parms=$execute_parms",nu1=$nu1,nu2=$nu2"
47[ "$dnu" ]&&execute_parms=$execute_parms",dnu=$dnu"
Note: See TracBrowser for help on using the repository browser.