Changeset 694 for geisa/web


Ignore:
Timestamp:
01/15/13 17:08:28 (11 years ago)
Author:
npipsl
Message:

Interface et submit option global et comparison

File:
1 edited

Legend:

Unmodified
Added
Removed
  • geisa/web/initGeisa_script.jsp

    r690 r694  
    906906                switch (this.selectDatabase2.getValue()) { 
    907907                    case 'GEISA2003': 
    908                         paramBase2 = " -dirin "+this.pathProcess+" -dirout "+this.LongPathImages+this.NomRepFileOut+" -filein2 "+this.pathProcess+"line_GEISA2003_bin_gs08_v1.0 -database_name2 GEISA2003"; 
     908                        paramBase2 = " -filein2 "+this.pathProcess+"line_GEISA2003_bin_gs08_v1.0 -database_name2 GEISA2003"; 
    909909                        break; 
    910910                    case 'GEISA2011': 
    911                         paramBase2 = " -dirin "+this.pathProcess+" -dirout "+this.LongPathImages+this.NomRepFileOut+" -filein2 "+this.pathProcess+"line_GEISA2009_bin -database_name2 GEISA2011 -database_type gs08"; 
     911                        paramBase2 = " -filein2 "+this.pathProcess+"line_GEISA2009_bin -database_name2 GEISA2011 -database_type gs08"; 
    912912                        break; 
    913913                    case 'HITRAN2009': 
    914                         paramBase2 = " -dirin "+this.pathProcess+" -dirout "+this.LongPathImages+this.NomRepFileOut+" -filein2 "+this.pathProcess+"HITRAN_2009_bin -database_name2 HITRAN2009"; 
     914                        paramBase2 = " -filein2 "+this.pathProcess+"HITRAN_2009_bin -database_name2 HITRAN2009"; 
    915915                        break; 
    916916                } 
     
    969969                        this.nbCourbe =  this.nbMolecules; 
    970970                        if (this.nbCourbe > 8) { 
    971                             alert("Too much molecules selected to draw one curve for each molecule selected"); 
     971                            alert("Too much molecules selected to draw one curve for each molecule selected (>8)"); 
    972972                            return; 
    973973                        } 
     
    978978                        this.nbCourbe =  this.nbIsotopes; 
    979979                        if (this.nbCourbe > 8) { 
    980                             alert("Too much isotopologues selected to draw one curve for each isotopologues selected"); 
     980                            alert("Too much isotopologues selected to draw one curve for each isotopologues selected (>8)"); 
    981981                            return; 
    982982                        } 
     
    986986                        this.nbGraph = this.nbMolecules; 
    987987                        if (this.nbGraph > 20) { 
    988                             alert("Too much molecules selected to draw one graph for each molecules selected"); 
     988                            alert("Too much molecules selected to draw one graph for each molecules selected (>20)"); 
    989989                            return; 
    990990                        } 
     
    994994                        this.nbGraph = this.nbIsotopes; 
    995995                        if (this.nbGraph > 20) { 
    996                             alert("Too much isotopologues selected to draw one graph for each isotopologues selected"); 
     996                            alert("Too much isotopologues selected to draw one graph for each isotopologues selected (>20)"); 
    997997                            return; 
    998998                        } 
     
    12651265                } 
    12661266 
     1267 
     1268 
    12671269                //sélection du type d'échelle pour le parametre Y2 (il y a une valeur pour ce champ que si logaritmic est choisi et si l'option est activée) 
    12681270                if  (this.selectScaleY2.getValue() == '-log_scale2' && this.selectScaleY2.isDisable == false) 
     
    12891291                //choix du type de sortie pour l'option graphique 'databases comparison" 
    12901292                var diffStep=""; 
    1291                  this.selectOutputDatabasecomparison.getValue() 
    12921293                 switch (this.selectOutputDatabasecomparison.getValue()) { 
    12931294                     case 'def': 
     
    13181319 
    13191320                //construction du nom du fichier  (exemple  GEISA2011-0_100) 
    1320                 this.nomFichier=this.selectDatabase.getValue()+"-"+$("#rangeLower").val()+"_"+$("#rangeUpper").val(); 
    1321  
     1321                //this.nomFichier=this.selectDatabase.getValue()+"-"+$("#rangeLower").val()+"_"+$("#rangeUpper").val(); 
     1322                switch ($("#graphicOptionChoice").val()) { 
     1323                    //(exemple  GEISA2011-0_100) 
     1324                    case 'contents': 
     1325                        this.nomFichier=this.selectDatabase.getValue()+"-"+$("#rangeLower").val()+"_"+$("#rangeUpper").val(); 
     1326                        break; 
     1327                    case 'global': 
     1328                        this.nomFichier=this.selectDatabase.getValue()+"-"+$("#rangeLower").val()+"_"+$("#rangeUpper").val(); 
     1329                        break; 
     1330                    //(exemple  GEISA2011_GEISA2003-0_100) 
     1331                    case 'comparison': 
     1332                        this.nomFichier=this.selectDatabase.getValue()+"_"+this.selectDatabase2.getValue()+"-"+$("#rangeLower").val()+"_"+$("#rangeUpper").val(); 
     1333                        break; 
     1334                } 
    13221335 
    13231336                //Submit pour l'option graphique "Database contents" 
     
    13761389                if ($("#graphicOptionChoice").val() =="comparison" ) 
    13771390                { 
     1391                    //sélection du type de tracé pour pour la 2Úme base de données pour l'option "database comparison" 
     1392                    var lineType2="-line_type2 "+this.selectTypeTraceDatabase2.getValue(); 
    13781393 
    13791394 
    13801395                    //construction de la requête Fortran 
    13811396                    var parameters = "&fortranRequest="+paramBase+" "+paramBase2+" "+isotopesSelectedName+" "+rangeLower+" "+rangeUpper+" "+samplingStep+" "+intensityLower+" "+intensityUpper+" "+ 
    1382                             meanValue+" "+nbCourbes+" "+field+" "+logScale+" "+lineType+" "+diffStep; 
     1397                            meanValue+" "+nbCourbes+" "+field+" "+logScale+" "+lineType+" "+lineType2+" "+diffStep; 
    13831398 
    13841399 
Note: See TracChangeset for help on using the changeset viewer.