Changeset 790 for ether_iasi/trunk


Ignore:
Timestamp:
05/21/14 19:41:05 (10 years ago)
Author:
cbipsl
Message:

anytime ajout vmipsl + CO mensuelle

Location:
ether_iasi/trunk/web
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ether_iasi/trunk/web/project/quicklook_script.jsp

    r786 r790  
    6767        paramSelect.parent = div; 
    6868        this.selectSatellites = new Select( paramSelect ); 
     69        this.selectSatellites.add( "metopb", "MetOp-B", jQuery.proxy(this.getQuicklook, this )); 
    6970        this.selectSatellites.add( "metopa", "MetOp-A", jQuery.proxy(this.getQuicklook, this )); 
    70         this.selectSatellites.add( "metopb", "MetOp-B", jQuery.proxy(this.getQuicklook, this )); 
    7171        this.selectSatellites.add( "metopab", '<spring:message code="label.either"/>', jQuery.proxy(this.getQuicklook, this )); 
    7272        this.selectSatellites.selectFirst(); 
     
    133133        { 
    134134            this.selectSpecies.add( "CO", 'CO', jQuery.proxy(this.getQuicklook, this )); 
    135             this.selectSpecies.add( "O3", 'O3', jQuery.proxy(this.getQuicklook, this )); 
    136             this.selectSpecies.add( "NH3", 'NH3', jQuery.proxy(this.getQuicklook, this )); 
    137135            this.selectSpecies.selectFirst(); 
    138136        } 
     
    221219        $.ajax( { 
    222220            url: "project?methodName=getQuicklookByValues&satellite=" + this.selectSatellites.getValue() + "&projection=" + this.selectProjections.getValue() + "&species=" + this.selectSpecies.getValue() + "&level=" + this.selectLevel.getValue() + "&date=" + this.beginDate + "&isdaily=" + this.isDaily + "&datemens=" + this.beginDateMens, 
     221            dataType: "json", 
    223222            success:jQuery.proxy( this.handleQuickLooksBySelectValues, this ), 
    224223            error: jQuery.proxy( this.showErrors, this ) 
     
    233232        if (this.isDaily) 
    234233        { 
    235             var plotNameA = jQuery.parseJSON( result ).plotNameResultA; 
    236             var plotNameB = jQuery.parseJSON( result ).plotNameResultB; 
    237             var plotNameC = jQuery.parseJSON( result ).plotNameResultC; 
    238             var plotNameD = jQuery.parseJSON( result ).plotNameResultD; 
    239  
    240             var repDate =  jQuery.parseJSON( result ).plotRepResult; 
    241  
    242  
    243  
    244             if( plotNameA && plotNameB ) 
     234            var plotNameA = result.plotNameResultA; 
     235            var plotNameB = result.plotNameResultB; 
     236            var plotNameC = result.plotNameResultC; 
     237            var plotNameD = result.plotNameResultD; 
     238 
     239            var repDate =  result.plotRepResult; 
     240 
     241 
     242 
     243            if( plotNameA && plotNameC ) 
    245244            { 
    246                 this.containerResultA.html( "<center>MetOp-A</center><img src='resources/imgiasiA/" + repDate + "/" + plotNameA + "' width='430px' height='350px' onerror='javascript:displayNoImage()'><img src='resources/imgiasiA/" + repDate + "/"  + plotNameC + "' width='430px' height='350px'>" ); 
    247                 this.containerResultB.html( "<center>MetOp-B</center><img src='resources/imgiasiB/" + repDate + "/" + plotNameB + "' width='430px' height='350px' onerror='javascript:displayNoImageB()'><img src='resources/imgiasiB/" + repDate + "/" + plotNameD + "' width='430px' height='350px'>" ); 
     245                this.containerResultA.html( "<center>MetOp-A</center><img src='resources/imgiasiA/" + repDate + "/" + plotNameA + "' width='430px' height='350px' onerror='javascript:displayNoImage()'><img src='resources/imgiasiA/" + repDate + "/"  + plotNameB + "' width='430px' height='350px'>" ); 
     246                this.containerResultB.html( "<center>MetOp-B</center><img src='resources/imgiasiB/" + repDate + "/" + plotNameC + "' width='430px' height='350px' onerror='javascript:displayNoImageB()'><img src='resources/imgiasiB/" + repDate + "/" + plotNameD + "' width='430px' height='350px'>" ); 
    248247            } 
    249248            else 
    250249            { 
    251250                if( plotNameA ) 
    252                     this.containerResultA.html( "<center>MetOp-A</center><img src='resources/imgiasiA/" + repDate + "/" + plotNameA + "' width='430px' height='350px' onerror='javascript:displayNoImage()'><img src='resources/imgiasiA/" + repDate + "/" + plotNameC + "' width='430px' height='350px'>" ); 
    253  
    254                 if( plotNameB ) 
    255                     this.containerResultA.html( "<center>MetOp-B</center><img src='resources/imgiasiB/" + repDate + "/" + plotNameB + "' width='430px' height='350px' onerror='javascript:displayNoImage()'><img src='resources/imgiasiB/" + repDate + "/" + plotNameD + "' width='430px' height='350px'>" ); 
     251                    this.containerResultA.html( "<center>MetOp-A</center><img src='resources/imgiasiA/" + repDate + "/" + plotNameA + "' width='430px' height='350px' onerror='javascript:displayNoImage()'><img src='resources/imgiasiA/" + repDate + "/" + plotNameB + "' width='430px' height='350px'>" ); 
     252 
     253                if( plotNameC ) 
     254                    this.containerResultA.html( "<center>MetOp-B</center><img src='resources/imgiasiB/" + repDate + "/" + plotNameC + "' width='430px' height='350px' onerror='javascript:displayNoImage()'><img src='resources/imgiasiB/" + repDate + "/" + plotNameD + "' width='430px' height='350px'>" ); 
    256255 
    257256            } 
    258             console.log(result); 
     257 
    259258        } 
    260259        else 
    261260        { 
    262             var plotNameE = jQuery.parseJSON( result ).plotNameResultE; 
    263             var plotNameF = jQuery.parseJSON( result ).plotNameResultF; 
    264             var repDateMens =  jQuery.parseJSON( result ).plotRepResultMens; 
    265             this.containerResultA.html( "<center>MetOp-A</center><img src='resources/imgiasiA/" + repDateMens + "/00/" + plotNameE + "' width='430px' height='400px' onerror='javascript:displayNoImage()'><img src='resources/imgiasiA/" + repDateMens + "/00/" + plotNameF + "' width='430px' height='400px'>" ); 
    266  
    267             console.log(result); 
     261            var plotNameE = result.plotNameResultE; 
     262            var plotNameF = result.plotNameResultF; 
     263            var plotNameG = result.plotNameResultG; 
     264            var plotNameH = result.plotNameResultH; 
     265            var repDateMens =  result.plotRepResultMens; 
     266 
     267            if( plotNameE && plotNameG ) 
     268            { 
     269                this.containerResultA.html( "<center>MetOp-A</center><img src='resources/imgiasiA/" + repDateMens + "/" + plotNameE + "' width='430px' height='350px' onerror='javascript:displayNoImage()'><img src='resources/imgiasiA/" + repDateMens + "/"  + plotNameF + "' width='430px' height='350px'>" ); 
     270                this.containerResultB.html( "<center>MetOp-B</center><img src='resources/imgiasiB/" + repDateMens + "/" + plotNameG + "' width='430px' height='350px' onerror='javascript:displayNoImageB()'><img src='resources/imgiasiB/" + repDateMens + "/" + plotNameH + "' width='430px' height='350px'>" ); 
     271            } 
     272            else 
     273            { 
     274                if( plotNameE ) 
     275                    this.containerResultA.html( "<center>MetOp-A</center><img src='resources/imgiasiA/" + repDateMens + "/" + plotNameE + "' width='430px' height='350px' onerror='javascript:displayNoImage()'><img src='resources/imgiasiA/" + repDateMens + "/" + plotNameF + "' width='430px' height='350px'>" ); 
     276 
     277                if( plotNameG ) 
     278                    this.containerResultA.html( "<center>MetOp-B</center><img src='resources/imgiasiB/" + repDateMens + "/" + plotNameG + "' width='430px' height='350px' onerror='javascript:displayNoImage()'><img src='resources/imgiasiB/" + repDateMens + "/" + plotNameH + "' width='430px' height='350px'>" ); 
     279 
     280            } 
     281 
    268282        } 
    269283    }, 
     
    280294        this.containerCalendar.show(); 
    281295        this.containerCalendarMens.hide(); 
    282         this.getQuicklook(); 
    283296        this.getQuicklook(); 
    284297    }, 
  • ether_iasi/trunk/web/resources/js/calendar/anytime.5.0.1-1403131246.js

    r787 r790  
    17371737                      this.hTitle.append( 'Select' ); 
    17381738 
    1739  
    1740                     //  Initialize the picker's date/time value. 
     1739            /** VMIPSL **/ 
     1740            if( options.methodToCall ) 
     1741                this.methodToCall = options.methodToCall; 
     1742 
     1743            /** VMIPSL **/ 
     1744            if( options.idToUpdateEarliest ) 
     1745                this.idToUpdateEarliest = options.idToUpdateEarliest; 
     1746 
     1747 
     1748            //  Initialize the picker's date/time value. 
    17411749 
    17421750                    try 
     
    30783086                }, // .showPkr() 
    30793087 
    3080                 //--------------------------------------------------------------------- 
     3088 
     3089        /** VMIPSL **/ 
     3090        updateEarliest: function() 
     3091        { 
     3092            if( !this.idToUpdateEarliest || !$( document.getElementById( this.idToUpdateEarliest ) )[0] || !$( document.getElementById( this.idToUpdateEarliest ) )[0].value ) 
     3093                return; 
     3094 
     3095            this.earliest = this.conv.parse( $( document.getElementById( this.idToUpdateEarliest ) )[0].value ).getTime(); 
     3096        }, 
     3097 
     3098        //--------------------------------------------------------------------- 
    30813099                //  .upd() updates the picker's appearance.  It is called after 
    30823100                //      most events to make the picker reflect the currently-selected 
     
    30863104                upd: function(fBtn) 
    30873105                { 
     3106            /** VMIPSL **/ 
     3107                this.updateEarliest(); 
     3108 
    30883109                    var cmpLo = new Date(this.time.getTime()); 
    30893110                    cmpLo.setMonth(0,1); 
     
    33583379                      this.ajax(); 
    33593380 
     3381            /** VMIPSL **/ 
     3382            if( this.methodToCall ) 
     3383                this.methodToCall(); 
     3384 
    33603385                }, // .upd() 
    33613386 
  • ether_iasi/trunk/web/src/com/ether/Controller.java

    r788 r790  
    8080        final String repDate = DateHelper.formatDate( date, "yyyy/MM/dd" ); 
    8181        final String fmtDateMens = DateHelper.formatDate( dateMens, "yyyyMM" ); 
    82         final String repDateMens = DateHelper.formatDate( dateMens, "yyyy/MM" ); 
    83  
    84  
    85         String plotNameA = ""; 
    86         String plotNameB = ""; 
    87         String plotNameC = ""; 
    88         String plotNameD = ""; 
    89         String plotNameE = ""; 
    90         String plotNameF = ""; 
     82        final String repDateMens = DateHelper.formatDate( dateMens, "yyyy/MM/00" ); 
     83 
     84 
     85        String plotIasiDAD = ""; 
     86        String plotIasiDAN = ""; 
     87        String plotIasiDBD = ""; 
     88        String plotIasiDBN = ""; 
     89        String plotIasiMAD = ""; 
     90        String plotIasiMAN = ""; 
     91        String plotIasiMBD = ""; 
     92        String plotIasiMBN = ""; 
    9193 
    9294        if (isDaily) 
     
    9799                if (species.equals( "CO" ) || species.equals( "SKT" )) 
    98100                { 
    99                     plotNameA = "metopa_iasi_" + species + "_l2_" + fmtDate + "_day_" + projection + ".png"; 
    100                     plotNameC = "metopa_iasi_" + species + "_l2_" + fmtDate + "_night_" + projection + ".png"; 
     101                    plotIasiDAD = "metopa_iasi_" + species + "_l2_" + fmtDate + "_day_" + projection + ".png"; 
     102                    plotIasiDAN = "metopa_iasi_" + species + "_l2_" + fmtDate + "_night_" + projection + ".png"; 
    101103                } 
    102104                if (species.equals( "H2O" )) 
    103105                { 
    104                     plotNameA = "metopa_iasi_" + species + "_l2_" + level + "_" + fmtDate + "_day_" + projection + ".png"; 
    105                     plotNameC = "metopa_iasi_" + species + "_l2_" + level + "_" + fmtDate + "_night_" + projection + ".png"; 
     106                    plotIasiDAD= "metopa_iasi_" + species + "_l2_" + level + "_" + fmtDate + "_day_" + projection + ".png"; 
     107                    plotIasiDAN = "metopa_iasi_" + species + "_l2_" + level + "_" + fmtDate + "_night_" + projection + ".png"; 
    106108                } 
    107109            } 
     
    110112                if (species.equals( "CO" ) || species.equals( "SKT" )) 
    111113                { 
    112                     plotNameB = "metopb_iasi_" + species + "_l2_" + fmtDate + "_day_" + projection + ".png"; 
    113                     plotNameD = "metopb_iasi_" + species + "_l2_" + fmtDate + "_night_" + projection + ".png"; 
     114                    plotIasiDBD = "metopb_iasi_" + species + "_l2_" + fmtDate + "_day_" + projection + ".png"; 
     115                    plotIasiDBN = "metopb_iasi_" + species + "_l2_" + fmtDate + "_night_" + projection + ".png"; 
    114116                } 
    115117                if (species.equals( "H2O" )) 
    116118                { 
    117                     plotNameB = "metopb_iasi_" + species + "_l2_" + level + "_" + fmtDate + "_day_" + projection + ".png"; 
    118                     plotNameD = "metopb_iasi_" + species + "_l2_" + level + "_" + fmtDate + "_night_" + projection + ".png"; 
     119                    plotIasiDBD = "metopb_iasi_" + species + "_l2_" + level + "_" + fmtDate + "_day_" + projection + ".png"; 
     120                    plotIasiDBN = "metopb_iasi_" + species + "_l2_" + level + "_" + fmtDate + "_night_" + projection + ".png"; 
    119121                } 
    120122            } 
    121123            final JSONObject result = new JSONObject(); 
    122             result.put( "plotNameResultA", plotNameA ); 
    123             result.put( "plotNameResultB", plotNameB ); 
    124             result.put( "plotNameResultC", plotNameC ); 
    125             result.put( "plotNameResultD", plotNameD ); 
     124            result.put( "plotNameResultA", plotIasiDAD ); 
     125            result.put( "plotNameResultB", plotIasiDAN ); 
     126            result.put( "plotNameResultC", plotIasiDBD ); 
     127            result.put( "plotNameResultD", plotIasiDBN ); 
    126128            result.put( "plotRepResult", repDate); 
    127129            return result; 
     
    130132        { 
    131133 
    132             if( satellite.equals( "metopa" ) ) 
     134            if( satellite.equals( "metopa" ) || satellite.equals( "metopab" ) ) 
    133135            { 
    134136                if (species.equals( "CO" )) 
    135137                { 
    136                     plotNameE = species + "CT_grid_" + fmtDateMens + "_day" + ".png"; 
    137                     plotNameF = species + "CT_grid_" + fmtDateMens + "_night" + ".png"; 
    138  
    139                 } 
    140  
    141             } 
     138                    plotIasiMAD = "metopa_iasi_" + species + "_l3_" + fmtDateMens + "_day_" + projection + ".png"; 
     139                    plotIasiMAN = "metopa_iasi_" + species + "_l3_" + fmtDateMens + "_night_" + projection + ".png"; 
     140 
     141                } 
     142            } 
     143            if( satellite.equals( "metopb" ) || satellite.equals( "metopab" ) ) 
     144            { 
     145                if (species.equals( "CO" )) 
     146                { 
     147                    plotIasiMBD = "metopb_iasi_" + species + "_l3_" + fmtDateMens + "_day_" + projection + ".png"; 
     148                    plotIasiMBN = "metopb_iasi_" + species + "_l3_" + fmtDateMens + "_night_" + projection + ".png"; 
     149 
     150                } 
     151            } 
     152 
    142153 
    143154            final JSONObject result = new JSONObject(); 
    144             result.put( "plotNameResultE", plotNameE ); 
    145             result.put( "plotNameResultF", plotNameF ); 
     155            result.put( "plotNameResultE", plotIasiMAD ); 
     156            result.put( "plotNameResultF", plotIasiMAN ); 
     157            result.put( "plotNameResultG", plotIasiMBD ); 
     158            result.put( "plotNameResultH", plotIasiMBN ); 
    146159            result.put( "plotRepResultMens", repDateMens); 
    147160            return result; 
  • ether_iasi/trunk/web/src/messages_en.properties

    r786 r790  
    88label.MetOpB=MetOp-B 
    99 
    10 label.quicklook=QUICKLOOKS 
    1110label.either=Both 
    1211label.globe=Global 
     
    3736label.access.metopB.title=ACCESS TO METOP-B IASI DATA 
    3837label.access.balloon.title=ACCESS TO BALLOON IASI DATA 
    39 label.access.daily.title=QUICKLOOKS 
    40 label.access.monthly.title=QUICKLOOKS 
     38label.access.daily.title=QUICKLOOKS - DAILY 
     39label.access.monthly.title=QUICKLOOKS - MONTHLY 
    4140label.access.level=- Products available 
    4241label.access.level.balloon=balloon 
Note: See TracChangeset for help on using the changeset viewer.