gfdnavi 1.3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +10949 -0
- data/LICENCE.txt +57 -0
- data/Makefile +18 -0
- data/TODO +132 -0
- data/app/controllers/analysis_controller.rb +700 -0
- data/app/controllers/application.rb +41 -0
- data/app/controllers/draw_method_controller.rb +172 -0
- data/app/controllers/explorer_controller.rb +197 -0
- data/app/controllers/finder_controller.rb +331 -0
- data/app/controllers/function_controller.rb +204 -0
- data/app/controllers/group_controller.rb +115 -0
- data/app/controllers/keyword_attributes_controller.rb +52 -0
- data/app/controllers/knowledge_controller.rb +928 -0
- data/app/controllers/nodes_controller.rb +515 -0
- data/app/controllers/search_controller.rb +341 -0
- data/app/controllers/user_controller.rb +337 -0
- data/app/helpers/analysis_helper.rb +2 -0
- data/app/helpers/application_helper.rb +105 -0
- data/app/helpers/description_helper.rb +2 -0
- data/app/helpers/function_helper.rb +2 -0
- data/app/helpers/group_helper.rb +2 -0
- data/app/helpers/search_helper.rb +3 -0
- data/app/helpers/user_helper.rb +2 -0
- data/app/helpers/work_flow_helper.rb +92 -0
- data/app/models/actual_file.rb +3 -0
- data/app/models/analysis.rb +715 -0
- data/app/models/analysis_history.rb +42 -0
- data/app/models/cross_array.rb +22 -0
- data/app/models/cross_result.rb +254 -0
- data/app/models/derived_spatial_attribute.rb +3 -0
- data/app/models/diagram_cache.rb +16 -0
- data/app/models/diagram_cache_datum.rb +4 -0
- data/app/models/diagram_cache_session.rb +8 -0
- data/app/models/directory.rb +21 -0
- data/app/models/draw_method.rb +48 -0
- data/app/models/draw_method_attribute.rb +8 -0
- data/app/models/draw_parameter.rb +12 -0
- data/app/models/explorer_query.rb +354 -0
- data/app/models/explorer_result.rb +312 -0
- data/app/models/function.rb +75 -0
- data/app/models/function_argument.rb +6 -0
- data/app/models/function_output.rb +4 -0
- data/app/models/group.rb +153 -0
- data/app/models/image.rb +20 -0
- data/app/models/keyword_attribute.rb +179 -0
- data/app/models/knowledge.rb +94 -0
- data/app/models/knowledge_backup.rb +32 -0
- data/app/models/knowledge_figure.rb +16 -0
- data/app/models/knowledge_figure_backup.rb +16 -0
- data/app/models/knowledge_parser.rb +392 -0
- data/app/models/node.rb +605 -0
- data/app/models/node_entity_abstract.rb +112 -0
- data/app/models/node_lineage.rb +6 -0
- data/app/models/node_relation.rb +4 -0
- data/app/models/path_node.rb +60 -0
- data/app/models/query.rb +193 -0
- data/app/models/query_history.rb +12 -0
- data/app/models/results.rb +48 -0
- data/app/models/sign_up_user.rb +25 -0
- data/app/models/spatial_and_time_attribute.rb +11 -0
- data/app/models/user.rb +115 -0
- data/app/models/user_mailer.rb +48 -0
- data/app/models/value_type.rb +3 -0
- data/app/models/variable.rb +70 -0
- data/app/models/virtual_node.rb +457 -0
- data/app/views/analysis/__help_analysis_tab.en.html +57 -0
- data/app/views/analysis/__help_draw_share.en.html +12 -0
- data/app/views/analysis/__help_draw_tab.en.html +6 -0
- data/app/views/analysis/_analysis_function_settings.rhtml +61 -0
- data/app/views/analysis/_analysis_settings.rhtml +28 -0
- data/app/views/analysis/_diagram.rhtml +70 -0
- data/app/views/analysis/_dimension_option.rhtml +59 -0
- data/app/views/analysis/_draw_general_settings.rhtml +217 -0
- data/app/views/analysis/_draw_settings.rhtml +73 -0
- data/app/views/analysis/_history.rhtml +19 -0
- data/app/views/analysis/_popular_diagrams.rhtml +42 -0
- data/app/views/analysis/_save_form.rhtml +44 -0
- data/app/views/analysis/_variables.rhtml +66 -0
- data/app/views/analysis/_variables_order.rhtml +56 -0
- data/app/views/analysis/index.rhtml +195 -0
- data/app/views/analysis/preview.rhtml +3 -0
- data/app/views/analysis/save.rhtml +73 -0
- data/app/views/analysis/show_diagram.rhtml +42 -0
- data/app/views/cross/_display_map.rhtml +201 -0
- data/app/views/cross/_result.rhtml +205 -0
- data/app/views/cross/_show_result_tree.rhtml +40 -0
- data/app/views/cross/_show_results.rhtml +80 -0
- data/app/views/cross/_style.rhtml +21 -0
- data/app/views/cross/index.rhtml +271 -0
- data/app/views/draw_method/_edit_form.rhtml +110 -0
- data/app/views/draw_method/create.rhtml +8 -0
- data/app/views/draw_method/details.rhtml +113 -0
- data/app/views/draw_method/edit.rhtml +8 -0
- data/app/views/draw_method/list.rhtml +80 -0
- data/app/views/explorer/_display_map.rhtml +199 -0
- data/app/views/explorer/_show_result_tree.rhtml +40 -0
- data/app/views/explorer/_show_results.rhtml +101 -0
- data/app/views/explorer/_style.rhtml +21 -0
- data/app/views/explorer/index.rhtml +214 -0
- data/app/views/finder/_children.html.erb +84 -0
- data/app/views/finder/_children_details.html.erb +74 -0
- data/app/views/finder/_children_details_tr.html.erb +196 -0
- data/app/views/finder/create_tree.html.erb +15 -0
- data/app/views/finder/flex.html.erb +52 -0
- data/app/views/finder/index.html.erb +47 -0
- data/app/views/finder/show_details.html.erb +3 -0
- data/app/views/finder/show_images.html.erb +3 -0
- data/app/views/function/_edit_form.rhtml +106 -0
- data/app/views/function/create.rhtml +8 -0
- data/app/views/function/details.rhtml +96 -0
- data/app/views/function/edit.rhtml +8 -0
- data/app/views/function/list.rhtml +80 -0
- data/app/views/group/add_member.rhtml +13 -0
- data/app/views/group/change_owner.rhtml +15 -0
- data/app/views/group/create.rhtml +11 -0
- data/app/views/group/delete_member.rhtml +14 -0
- data/app/views/group/list.rhtml +63 -0
- data/app/views/knowledge/_backup.rhtml +135 -0
- data/app/views/knowledge/_category.rhtml +58 -0
- data/app/views/knowledge/_category_list.rhtml +34 -0
- data/app/views/knowledge/_category_table.rhtml +23 -0
- data/app/views/knowledge/_comment.rhtml +64 -0
- data/app/views/knowledge/_comment_input_form.rhtml +19 -0
- data/app/views/knowledge/_comments.rhtml +84 -0
- data/app/views/knowledge/_form.rhtml +139 -0
- data/app/views/knowledge/_group_figure_form.rhtml +187 -0
- data/app/views/knowledge/_layout_figure.rhtml +61 -0
- data/app/views/knowledge/_layout_figures_in_a_row_above_text.rhtml +42 -0
- data/app/views/knowledge/_layout_figures_under_text.rhtml +45 -0
- data/app/views/knowledge/_layout_one_figure_above_text.rhtml +28 -0
- data/app/views/knowledge/_summary.rhtml +21 -0
- data/app/views/knowledge/edit.rhtml +37 -0
- data/app/views/knowledge/list.rhtml +287 -0
- data/app/views/knowledge/new.rhtml +23 -0
- data/app/views/knowledge/new_from_analysis.rhtml +21 -0
- data/app/views/knowledge/show.rhtml +196 -0
- data/app/views/layouts/gfdnavi.rhtml +105 -0
- data/app/views/nodes/_ancestors.html.erb +89 -0
- data/app/views/nodes/_description_methods_table.html.erb +75 -0
- data/app/views/nodes/_mode.html.erb +16 -0
- data/app/views/nodes/description.html.erb +181 -0
- data/app/views/nodes/description_methods.html.erb +1 -0
- data/app/views/nodes/edit.html.erb +73 -0
- data/app/views/nodes/index.html.erb +25 -0
- data/app/views/nodes/show.html.erb +20 -0
- data/app/views/search/_children_details_mapsearch.rhtml +68 -0
- data/app/views/search/_children_details_tr.rhtml +205 -0
- data/app/views/search/_show_grouplist.rhtml +74 -0
- data/app/views/search/_show_results.rhtml +43 -0
- data/app/views/search/_show_results_global.rhtml +36 -0
- data/app/views/search/_show_results_partial.rhtml +39 -0
- data/app/views/search/_show_results_partial_groupbyfile.rhtml +50 -0
- data/app/views/search/_show_variablelist.rhtml +28 -0
- data/app/views/search/mapsearch.rhtml +176 -0
- data/app/views/search/remapsearch.rjs +18 -0
- data/app/views/search/show_details.rhtml +3 -0
- data/app/views/user/add_user.rhtml +30 -0
- data/app/views/user/change_password.rhtml +25 -0
- data/app/views/user/edit.html.erb +50 -0
- data/app/views/user/index.rhtml +162 -0
- data/app/views/user/login.rhtml +41 -0
- data/app/views/user/logout.rhtml +4 -0
- data/app/views/user/signup.rhtml +36 -0
- data/app/views/user/signup_succeeded.rhtml +36 -0
- data/app/views/user_mailer/authorization_inform.rhtml +15 -0
- data/app/views/user_mailer/signup_accepted.rhtml +12 -0
- data/app/views/user_mailer/signup_confirm.rhtml +14 -0
- data/app/views/user_mailer/signup_inform.rhtml +13 -0
- data/app/views/user_mailer/signup_rejected.rhtml +11 -0
- data/app/views/work_flow/_push_wsdls.rhtml +55 -0
- data/app/views/work_flow/index.rhtml +46 -0
- data/config/database.yml.example +35 -0
- data/config/environment.rb +68 -0
- data/config/gfdnavi.yml.example +95 -0
- data/config/load_config.rb +151 -0
- data/config/routes.rb +35 -0
- data/consistency_checker.rb +129 -0
- data/data/gfdnavi_docs/how_to_draw_multiple_images.knlge +68 -0
- data/data/gfdnavi_docs/how_to_knowledge.knlge +138 -0
- data/data/gfdnavi_docs/how_to_write_document_about_Gfdnavi.knlge +30 -0
- data/data/samples/jmadata.SIGEN +8 -0
- data/data/samples/jmadata.yml +6 -0
- data/data/samples/jmadata/MSM-P/2006.nc.yml +2 -0
- data/data/samples/jmadata/MSM-P/2006.yml +17 -0
- data/data/samples/jmadata/MSM-P/2006/0101.nc +0 -0
- data/data/samples/jmadata/MSM-P/2006/0101.nc.yml +13 -0
- data/data/samples/jmadata/MSM-P/2006/0102.nc +0 -0
- data/data/samples/jmadata/MSM-P/2006/0103.nc +0 -0
- data/data/samples/jmadata/MSM-P/2006/0104.nc +0 -0
- data/data/samples/jmadata/MSM-P/2006/0105.nc +0 -0
- data/data/samples/jmadata/MSM-P/2006/010[1-3].nc.yml +2 -0
- data/data/samples/jmadata/MSM-P/2006/skip_data.rb +96 -0
- data/data/samples/jmadata/MSM-P/2006/skip_data.sh +6 -0
- data/data/samples/reanalysis.SIGEN +8 -0
- data/data/samples/reanalysis/era40.SIGEN +8 -0
- data/data/samples/reanalysis/era40.yml +2 -0
- data/data/samples/reanalysis/era40/t.jan.nc +0 -0
- data/data/samples/reanalysis/era40/t.jan.nc.yml +1 -0
- data/data/samples/reanalysis/ncep.SIGEN +9 -0
- data/data/samples/reanalysis/ncep/T.jan.100hPa.png +0 -0
- data/data/samples/reanalysis/ncep/T.jan.100hPa.png.yml +43 -0
- data/data/samples/reanalysis/ncep/T.jan.nc +0 -0
- data/data/samples/reanalysis/ncep/T.jan.zonal_mean.nc +0 -0
- data/data/samples/reanalysis/ncep/T.jan.zonal_mean.nc.yml +8 -0
- data/data/samples/reanalysis/ncep/T.jan_only_root.nc +0 -0
- data/data/samples/reanalysis/ncep/T.jan_only_root.nc.yml +4 -0
- data/data/samples/reanalysis/ncep/UV.jan.nc +0 -0
- data/data/samples/reanalysis/ncep/UV.jan.nc.yml +10 -0
- data/data/samples/reanalysis/ncep/UV.jan.nc.yml.ja +11 -0
- data/data/samples/sonde_operational.yml +5 -0
- data/data/samples/sonde_operational/std_plev.yml +12 -0
- data/data/samples/sonde_operational/std_plev/41256.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/42410.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/43333.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/43346.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/48698.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/61641.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/63741.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/67083.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/72261.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/76805.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/82193.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/91165.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/91610.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/91948.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/94294.spl.nc +0 -0
- data/db/NetCDFparser.rb +406 -0
- data/db/create_derived_spatial_attributes.sql +12 -0
- data/db/draw_methods/line.yml +6 -0
- data/db/draw_methods/scatter.yml +38 -0
- data/db/draw_methods/tone.yml +64 -0
- data/db/draw_methods/vector.yml +19 -0
- data/db/dump_db.rb +43 -0
- data/db/functions/additions.yml +10 -0
- data/db/functions/cut.yml +10 -0
- data/db/functions/division.yml +10 -0
- data/db/functions/mean.yml +28 -0
- data/db/functions/multiplication.yml +10 -0
- data/db/functions/stddev.yml +28 -0
- data/db/functions/subtraction.yml +10 -0
- data/db/migrate/001_initial_scheme.rb +289 -0
- data/db/migrate/002_add_open_id_authentication_tables.rb +20 -0
- data/db/register_directory_tree.rb +760 -0
- data/db/restore_db.rb +60 -0
- data/gfdnavi-install +828 -0
- data/install.rb +828 -0
- data/lib/activerecord_gfdnavi.rb +31 -0
- data/lib/basic_authorization.rb +50 -0
- data/lib/create_activeresources.rb +108 -0
- data/lib/execute_analysis.rb +472 -0
- data/lib/file_gfdnavi.rb +38 -0
- data/lib/gphys_gfdnavi.rb +81 -0
- data/lib/localdir.rb +110 -0
- data/lib/login_system.rb +110 -0
- data/lib/multibytes.rb +20 -0
- data/lib/narray_yaml.rb +58 -0
- data/lib/no_rdb_base.rb +40 -0
- data/lib/opendapdir.rb +171 -0
- data/lib/tar.rb +127 -0
- data/lib/tasks/clean.rake +65 -0
- data/lib/tasks/setup.rake +316 -0
- data/lib/tasks/update.rake +62 -0
- data/lib/vizshot_gfdnavi.rb +224 -0
- data/public/crossdomain.xml +4 -0
- data/public/flex/NodeTreeDescriptor.as +55 -0
- data/public/flex/TreeNode.as +253 -0
- data/public/flex/finder.mxml +304 -0
- data/public/flex/finder.swf +0 -0
- data/public/flex/gfdnavi.mxml +52 -0
- data/public/flex/gfdnavi.swf +0 -0
- data/public/images/Help_S-shots/dir_tree_with_add.jpg +0 -0
- data/public/images/analyze.gif +0 -0
- data/public/images/circle.gif +0 -0
- data/public/images/create_from_analysis_button.png +0 -0
- data/public/images/delete.png +0 -0
- data/public/images/down.png +0 -0
- data/public/images/drawbutton.gif +0 -0
- data/public/images/gfdnavi_home_logo.png +0 -0
- data/public/images/gfdnavi_logo_big.png +0 -0
- data/public/images/gfdnavi_logo_med.png +0 -0
- data/public/images/gfdnavi_logo_mini.png +0 -0
- data/public/images/gfdnavi_logo_nobg_big.png +0 -0
- data/public/images/gfdnavi_logo_nobg_med.png +0 -0
- data/public/images/gfdnavi_logo_nobg_small.png +0 -0
- data/public/images/gfdnavi_logo_small.png +0 -0
- data/public/images/gfdnavi_logo_xsmall.png +0 -0
- data/public/images/hbar.png +0 -0
- data/public/images/helpmark16.png +0 -0
- data/public/images/helpmark18.png +0 -0
- data/public/images/kikyu_g.gif +0 -0
- data/public/images/kikyu_r.gif +0 -0
- data/public/images/map_icon_g.gif +0 -0
- data/public/images/map_icon_r.gif +0 -0
- data/public/images/new_knowledge.png +0 -0
- data/public/images/openid.png +0 -0
- data/public/images/read_in_the_form.png +0 -0
- data/public/images/slider_f.gif +0 -0
- data/public/images/slider_f_red.gif +0 -0
- data/public/images/star1.gif +0 -0
- data/public/images/star2.gif +0 -0
- data/public/images/startanim.gif +0 -0
- data/public/images/stopanim.gif +0 -0
- data/public/images/tree/DL.png +0 -0
- data/public/images/tree/anal_viz.png +0 -0
- data/public/images/tree/analyze_visualize_checked_items.png +0 -0
- data/public/images/tree/binary.png +0 -0
- data/public/images/tree/details.png +0 -0
- data/public/images/tree/download_checked_items.png +0 -0
- data/public/images/tree/folder.png +0 -0
- data/public/images/tree/folder_close.gif +0 -0
- data/public/images/tree/image2.png +0 -0
- data/public/images/tree/knowledge.png +0 -0
- data/public/images/tree/knowledges.png +0 -0
- data/public/images/tree/last.gif +0 -0
- data/public/images/tree/last.png +0 -0
- data/public/images/tree/minus.gif +0 -0
- data/public/images/tree/minus_simple.gif +0 -0
- data/public/images/tree/none.gif +0 -0
- data/public/images/tree/none.png +0 -0
- data/public/images/tree/plus.gif +0 -0
- data/public/images/tree/plus_simple.gif +0 -0
- data/public/images/tree/show.png +0 -0
- data/public/images/tree/show_checked_items.png +0 -0
- data/public/images/tree/t.gif +0 -0
- data/public/images/tree/t.png +0 -0
- data/public/images/tree/tate.gif +0 -0
- data/public/images/tree/tate.png +0 -0
- data/public/images/up.png +0 -0
- data/public/images/vbar.png +0 -0
- data/public/images/white.bmp +0 -0
- data/public/images/x.gif +0 -0
- data/public/index.html +100 -0
- data/public/javascripts/AC_OETags.js +269 -0
- data/public/javascripts/analysis.js +751 -0
- data/public/javascripts/application.js +29 -0
- data/public/javascripts/directory_tree.js +102 -0
- data/public/javascripts/draw_method.js +83 -0
- data/public/javascripts/excanvas.js +704 -0
- data/public/javascripts/function.js +107 -0
- data/public/javascripts/gfdnavi.js +175 -0
- data/public/javascripts/knowledge.js +384 -0
- data/public/javascripts/mapsearch.js +313 -0
- data/public/javascripts/progress.js +42 -0
- data/public/javascripts/resizable_box.js +164 -0
- data/public/javascripts/slider.js +260 -0
- data/public/javascripts/tab.js +17 -0
- data/public/javascripts/work_flow.js +452 -0
- data/public/stylesheets/analysis.css +111 -0
- data/public/stylesheets/description.css +71 -0
- data/public/stylesheets/gfdnavi.css +141 -0
- data/public/stylesheets/knowledge.css +218 -0
- data/public/stylesheets/search.css +184 -0
- data/public/stylesheets/tree.css +45 -0
- data/public/stylesheets/tree_for_ie.css +3 -0
- data/public/stylesheets/work_flow.css +78 -0
- data/script/cleaner +11 -0
- data/script/server_ssl +131 -0
- data/test/fixtures/diagram_cache_data.yml +5 -0
- data/test/fixtures/diagram_cache_sessions.yml +6 -0
- data/test/fixtures/diagram_caches.yml +6 -0
- data/test/fixtures/directories.yml +57 -0
- data/test/fixtures/draw_parameters.yml +6 -0
- data/test/fixtures/function_arguments.yml +15 -0
- data/test/fixtures/function_outputs.yml +15 -0
- data/test/fixtures/functions.yml +29 -0
- data/test/fixtures/group_members.yml +33 -0
- data/test/fixtures/groups.yml +25 -0
- data/test/fixtures/images.yml +12 -0
- data/test/fixtures/keyword_attributes.yml +73 -0
- data/test/fixtures/knowledges.yml +10 -0
- data/test/fixtures/node_relations.yml +11 -0
- data/test/fixtures/nodes.yml +298 -0
- data/test/fixtures/sign_up_users.yml +8 -0
- data/test/fixtures/spatial_and_time_attributes.yml +29 -0
- data/test/fixtures/user_mailer/authorization_inform +11 -0
- data/test/fixtures/user_mailer/signup_accepted +10 -0
- data/test/fixtures/user_mailer/signup_confirm +17 -0
- data/test/fixtures/user_mailer/signup_inform +10 -0
- data/test/fixtures/user_mailer/signup_rejected +9 -0
- data/test/fixtures/users.yml +31 -0
- data/test/fixtures/value_types.yml +10 -0
- data/test/fixtures/variables.yml +17 -0
- data/test/functional/analysis_controller_test.rb +169 -0
- data/test/functional/description_controller_test.rb +18 -0
- data/test/functional/function_controller_test.rb +18 -0
- data/test/functional/group_controller_test.rb +18 -0
- data/test/functional/search_controller_test.rb +83 -0
- data/test/functional/user_controller_test.rb +77 -0
- data/test/functional/webservice_analysis_api_test.rb +12 -0
- data/test/functional/work_flow_controller_test.rb +18 -0
- data/test/test_helper.rb +28 -0
- data/test/unit/diagram_cache_datum_test.rb +10 -0
- data/test/unit/diagram_cache_session_test.rb +10 -0
- data/test/unit/diagram_cache_test.rb +10 -0
- data/test/unit/directory_test.rb +49 -0
- data/test/unit/draw_parameter_test.rb +10 -0
- data/test/unit/function_argument_test.rb +10 -0
- data/test/unit/function_output_test.rb +10 -0
- data/test/unit/function_test.rb +10 -0
- data/test/unit/group_test.rb +48 -0
- data/test/unit/image_test.rb +13 -0
- data/test/unit/keyword_attribute_test.rb +33 -0
- data/test/unit/knowledge_test.rb +13 -0
- data/test/unit/node_relation_test.rb +20 -0
- data/test/unit/node_test.rb +85 -0
- data/test/unit/sign_up_user_test.rb +20 -0
- data/test/unit/spatial_and_time_attribute_test.rb +29 -0
- data/test/unit/user_mailer_test.rb +101 -0
- data/test/unit/user_test.rb +134 -0
- data/test/unit/value_type_test.rb +10 -0
- data/test/unit/variable_test.rb +35 -0
- data/vendor/plugins/acts_as_list/README +23 -0
- data/vendor/plugins/acts_as_list/init.rb +3 -0
- data/vendor/plugins/acts_as_list/lib/active_record/acts/list.rb +256 -0
- data/vendor/plugins/acts_as_list/test/list_test.rb +332 -0
- data/vendor/plugins/acts_as_tree/README +26 -0
- data/vendor/plugins/acts_as_tree/Rakefile +22 -0
- data/vendor/plugins/acts_as_tree/init.rb +1 -0
- data/vendor/plugins/acts_as_tree/lib/active_record/acts/tree.rb +96 -0
- data/vendor/plugins/acts_as_tree/test/abstract_unit.rb +0 -0
- data/vendor/plugins/acts_as_tree/test/acts_as_tree_test.rb +219 -0
- data/vendor/plugins/acts_as_tree/test/database.yml +0 -0
- data/vendor/plugins/acts_as_tree/test/fixtures/mixin.rb +0 -0
- data/vendor/plugins/acts_as_tree/test/fixtures/mixins.yml +0 -0
- data/vendor/plugins/acts_as_tree/test/schema.rb +0 -0
- data/vendor/plugins/will_paginate/CHANGELOG +92 -0
- data/vendor/plugins/will_paginate/LICENSE +18 -0
- data/vendor/plugins/will_paginate/README.rdoc +131 -0
- data/vendor/plugins/will_paginate/Rakefile +62 -0
- data/vendor/plugins/will_paginate/examples/apple-circle.gif +0 -0
- data/vendor/plugins/will_paginate/examples/index.haml +69 -0
- data/vendor/plugins/will_paginate/examples/index.html +92 -0
- data/vendor/plugins/will_paginate/examples/pagination.css +90 -0
- data/vendor/plugins/will_paginate/examples/pagination.sass +91 -0
- data/vendor/plugins/will_paginate/init.rb +1 -0
- data/vendor/plugins/will_paginate/lib/will_paginate.rb +86 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/array.rb +16 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/collection.rb +145 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/core_ext.rb +32 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/finder.rb +247 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/named_scope.rb +132 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/named_scope_patch.rb +39 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/version.rb +9 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/view_helpers.rb +373 -0
- data/vendor/plugins/will_paginate/will_paginate.gemspec +21 -0
- metadata +586 -0
@@ -0,0 +1,57 @@
|
|
1
|
+
<h2>Analysis tab</h2>
|
2
|
+
<p>
|
3
|
+
<ol>
|
4
|
+
<li> <span class="help_stress">Choose one or more variables</span>
|
5
|
+
with the check-boxes in the
|
6
|
+
<span class="help_link"
|
7
|
+
onMouseOver='helpLinkHilit("variables",this)'
|
8
|
+
onMouseOut='helpLinkUnhilit("variables",this)'>
|
9
|
+
"Variables" window</span>
|
10
|
+
at the top. Kinds of functions you can choose below depends on the
|
11
|
+
number of variables you choose. For instance, you can "add"
|
12
|
+
variables if you choose two.
|
13
|
+
<li> Click this tab, and <span class="help_stress">select a function</span>
|
14
|
+
with the
|
15
|
+
<span class="help_link"
|
16
|
+
onMouseOver='helpLinkHilit("function",this)'
|
17
|
+
onMouseOut='helpLinkUnhilit("function",this)'>
|
18
|
+
"Function" field</span>.
|
19
|
+
You can add your own one if you have an account.
|
20
|
+
<li> <span class="help_stress">Press the </span>
|
21
|
+
<span class="help_link"
|
22
|
+
onMouseOver='helpLinkHilit("analysis_button",this)'
|
23
|
+
onMouseOut='helpLinkUnhilit("analysis_button",this)'>
|
24
|
+
"analyze" button</span>
|
25
|
+
above (next to the "Variables" window. This button is
|
26
|
+
shown only when it is ready).
|
27
|
+
</ol>
|
28
|
+
</p>
|
29
|
+
<p>
|
30
|
+
OPTIONS:
|
31
|
+
<ul>
|
32
|
+
<li> Specify a subset with the
|
33
|
+
<span class="help_link"
|
34
|
+
onMouseOver='helpLinkHilit("axes",this)'
|
35
|
+
onMouseOut='helpLinkUnhilit("axes",this)'>
|
36
|
+
"Dimensions" window</span>
|
37
|
+
above. The function is applied only to the subset.
|
38
|
+
<span class="help_stress">Recommended if the data size is big.</span>
|
39
|
+
<li> <span class="help_link"
|
40
|
+
onMouseOver='helpLinkHilit("function_input_num",this)'
|
41
|
+
onMouseOut='helpLinkUnhilit("function_input_num",this)'>
|
42
|
+
"Number of input variables" field</span>:
|
43
|
+
You can use it like this:
|
44
|
+
If you choose two or more variables in the "Variables" window,
|
45
|
+
you can still use functions for single variables (such as
|
46
|
+
"mean"), if you choose "1" here. Then, the function is applied
|
47
|
+
for each variable.
|
48
|
+
<li> <span class="help_link"
|
49
|
+
onMouseOver='helpLinkHilit("function_arguments",this)'
|
50
|
+
onMouseOut='helpLinkUnhilit("function_arguments",this)'>
|
51
|
+
"Arguments for the function" text window</span>:
|
52
|
+
Some of the function require arguments.
|
53
|
+
In that case, this window appears and
|
54
|
+
shows its default value, which you can change by typing in
|
55
|
+
something else.
|
56
|
+
</ul>
|
57
|
+
</p>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<h2>Record visualization checkbox</h2>
|
2
|
+
<p>If this checkbox is checked on, your visualization by pressing the
|
3
|
+
"draw" button will be recorded. This is to make statistics in order to
|
4
|
+
suggest frequently-made visualizations for other users.
|
5
|
+
Please check it off, if
|
6
|
+
you do not want to have your visualization recorded.
|
7
|
+
</p>
|
8
|
+
<p>
|
9
|
+
NOTE: THIS FUNCTIONALITY IS *NOT* A "HISTORY" RECORDING,
|
10
|
+
where one can undo, redo, or view a personal visualization
|
11
|
+
history.
|
12
|
+
</p>
|
@@ -0,0 +1,61 @@
|
|
1
|
+
<div>
|
2
|
+
<label for="function">Function</label>
|
3
|
+
<select name="analysis[function]" id="function" onChange="selectFunction(this);">
|
4
|
+
<%
|
5
|
+
for func in @functions
|
6
|
+
name = h(func.name)
|
7
|
+
selected = (@analysis.function == func) ? "selected" : ""
|
8
|
+
%>
|
9
|
+
<option value="<%= name %>" id="function_<%= name %>" <%= selected %>><%= name %></option>
|
10
|
+
<% end %>
|
11
|
+
</select>
|
12
|
+
|
13
|
+
<%= link_to("add function", :controller => "function", :action => "create") %>
|
14
|
+
</div>
|
15
|
+
|
16
|
+
<div id="function_arguments">
|
17
|
+
<% @functions.each{|func| %>
|
18
|
+
<div id="function_arguments_<%=h(func.name)%>">
|
19
|
+
<%= (src=func.setting_html) ? render_erb(src) : "" %>
|
20
|
+
</div>
|
21
|
+
<% } %>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<div id="function_variables_order">
|
25
|
+
<%
|
26
|
+
if @functions.length > 0
|
27
|
+
vnums = @functions.collect{|f| f.nvars}.uniq!.sort!
|
28
|
+
vnums.each{|i|
|
29
|
+
@order_type = "function"
|
30
|
+
@num_for_each = i
|
31
|
+
@order = @analysis.function_variables_order
|
32
|
+
%>
|
33
|
+
<div id="function_variables_order_<%=i%>" style="display:hide">
|
34
|
+
<% unless i==1 %>
|
35
|
+
Order of input variables
|
36
|
+
<%= render(:partial => "variables_order") %>
|
37
|
+
<% end %>
|
38
|
+
</div>
|
39
|
+
<% }
|
40
|
+
end %>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
|
44
|
+
<%
|
45
|
+
nfunc = @functions.length
|
46
|
+
%>
|
47
|
+
<script>
|
48
|
+
funcs = new Array(<%=nfunc%>);
|
49
|
+
var obj;
|
50
|
+
<% nfunc.times{|i| %>
|
51
|
+
obj = new Object();
|
52
|
+
obj.name = '<%=h(@functions[i].name)%>';
|
53
|
+
obj.order = $('function_variables_order_<%=@functions[i].nvars%>');
|
54
|
+
funcs[<%=i%>] = obj;
|
55
|
+
<% } %>
|
56
|
+
funcVNums = new Array();
|
57
|
+
<% vnums && vnums.each_with_index{|vn,i| %>
|
58
|
+
funcVNums[<%=i%>] = <%=vn%>;
|
59
|
+
<% } %>
|
60
|
+
selectFunction($('function'));
|
61
|
+
</script>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<% if @analysis.dimensions.length > 0 %>
|
2
|
+
|
3
|
+
|
4
|
+
<div>
|
5
|
+
<script>
|
6
|
+
<% if GFDNAVI_BENCHMARK %>
|
7
|
+
benchmark = true;
|
8
|
+
<% else %>
|
9
|
+
benchmark = false;
|
10
|
+
<% end %>
|
11
|
+
</script>
|
12
|
+
<%= link_to_function image_tag("analyze.gif", :border => 0), "analysisExecute();", :id => "analysis_button", :style=>"margin:5;margin-left:1em" %>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<hr style="margin-bottom:5"/>
|
16
|
+
|
17
|
+
<div id="analysis_function_settings">
|
18
|
+
<%= render(:partial => "analysis_function_settings") %>
|
19
|
+
</div>
|
20
|
+
|
21
|
+
<% end %>
|
22
|
+
|
23
|
+
|
24
|
+
<script>
|
25
|
+
if( $("draw_settings") )
|
26
|
+
Element.hide("draw_settings");
|
27
|
+
Element.show("analysis_settings");
|
28
|
+
</script>
|
@@ -0,0 +1,70 @@
|
|
1
|
+
<%
|
2
|
+
id, dg = @diagram
|
3
|
+
id_html = "diagram_#{id}"
|
4
|
+
dg = DiagramCache.find(dg)
|
5
|
+
display = @anim ? 'style="display:none;"' : ""
|
6
|
+
%>
|
7
|
+
<table id="<%= id_html %>_table" class="diagram" cellspacing="0" cellpadding="0" <%= display %>>
|
8
|
+
<tr id="<%= id_html %>_header" class="diagram_header">
|
9
|
+
<td align="right">
|
10
|
+
<%= link_to_function(image_tag("x.gif", :class => "delete"), "#{(@diagrams && @diagrams.length == 1)? 'deleteKnowledgeFromAnalysisButton();' : ''} new Effect.Fade('#{id_html}_table',{afterFinishInternal: function(effect){Element.remove(effect.element)}});" + remote_function(:url => {:action => "delete_diagram", :id => id})) %>
|
11
|
+
</td>
|
12
|
+
</tr>
|
13
|
+
<tr>
|
14
|
+
<td style="cursor:pointer" id="<%= id_html %>">
|
15
|
+
<%
|
16
|
+
options = {:id=> "#{id_html}_image", :style => "border:0"}
|
17
|
+
if GFDNAVI_BENCHMARK && @benchmark
|
18
|
+
options.update( {:onload => "onDraw=false;benchMark.load('#{id}');"} )
|
19
|
+
else
|
20
|
+
options.update( {:onload => "onDraw=false;"} )
|
21
|
+
end
|
22
|
+
%>
|
23
|
+
<%= image_tag(image_path(dg), options) %>
|
24
|
+
</td>
|
25
|
+
</tr>
|
26
|
+
</table>
|
27
|
+
<%
|
28
|
+
menu = Array.new
|
29
|
+
flag = true
|
30
|
+
vizshot = YAML.load(dg.vizshot)
|
31
|
+
vizshot.get_variables.each{|v|
|
32
|
+
unless v.downloadable?
|
33
|
+
flag = false
|
34
|
+
break
|
35
|
+
end
|
36
|
+
}
|
37
|
+
if flag
|
38
|
+
menu.push link_to('download script and data', {:action => "download_diagram_script_and_data", :id => id})
|
39
|
+
end
|
40
|
+
unless GFDNAVI_DISABLE_USER && session[:user].nil?
|
41
|
+
menu.push link_to('save diagram', :action => "save", :id => id, :type => "diagram")
|
42
|
+
end
|
43
|
+
|
44
|
+
unless @pile
|
45
|
+
uri_params = Analysis.uri_params_from_vizshot(vizshot)
|
46
|
+
menu.push "<a href=\"#{url_for(:action => 'execute')}?#{uri_params}\">link to this diagram</a>"
|
47
|
+
end
|
48
|
+
%>
|
49
|
+
<script>
|
50
|
+
<% if menu.length > 0 %>
|
51
|
+
new PopupMenu($('<%= id_html %>'),'<%= escape_javascript(menu.join('<br/>')) %>');
|
52
|
+
<% end %>
|
53
|
+
var table = $("<%= id_html %>_table");
|
54
|
+
table.diagram_id = <%= id %>;
|
55
|
+
new Draggable(table,
|
56
|
+
{revert: true,
|
57
|
+
ghosting: true,
|
58
|
+
handle: '<%= id_html %>_header'
|
59
|
+
}
|
60
|
+
);
|
61
|
+
Droppables.add(table,
|
62
|
+
{accept: "diagram",
|
63
|
+
hoverclass: "drop_diagram",
|
64
|
+
onDrop: function(drag,drop){
|
65
|
+
benchMark.start();
|
66
|
+
actionDropDiagram(drag.diagram_id, drop.diagram_id);
|
67
|
+
}
|
68
|
+
}
|
69
|
+
);
|
70
|
+
</script>
|
@@ -0,0 +1,59 @@
|
|
1
|
+
<%
|
2
|
+
dims = @analysis.dimensions
|
3
|
+
if dims.length >0
|
4
|
+
gmap = /^lon/i =~ dims[0][:name] && /^lat/i =~ dims[1][:name]
|
5
|
+
%>
|
6
|
+
<table>
|
7
|
+
<%
|
8
|
+
dims.each_with_index do |dim,i|
|
9
|
+
name = dim[:name]
|
10
|
+
%>
|
11
|
+
<tr>
|
12
|
+
<%
|
13
|
+
if gmap
|
14
|
+
if i==0
|
15
|
+
%>
|
16
|
+
<td rowspan="2">
|
17
|
+
<div id="mapLink"><a href="#" onclick="show_gmap()">map</a></div>
|
18
|
+
</td>
|
19
|
+
<script>
|
20
|
+
if (typeof(google)=="undefined") Element.hide($('mapLink'));
|
21
|
+
</script>
|
22
|
+
<% elsif i>1 %>
|
23
|
+
<td/>
|
24
|
+
<% end %>
|
25
|
+
<% end %>
|
26
|
+
<td><label id='dim_<%= h(name) %>' style="cursor:pointer"
|
27
|
+
onmouseover="bgHighlight(this)" onmouseout="bgUnhighlight(this)">
|
28
|
+
<%= h(name) %>
|
29
|
+
</label>
|
30
|
+
<script>
|
31
|
+
new PopupMenu('dim_<%= h(name) %>',
|
32
|
+
'<%= escape_javascript("#{dim[:ary].length} grid points: " + dim[:ary].join(", ")+' '+h(dim[:units]))%>');
|
33
|
+
</script>
|
34
|
+
</td>
|
35
|
+
<td><div id="analysis[region][<%= name %>]"></div></td>
|
36
|
+
<td nowrap>[<%= h(dim[:units]) %>]</td>
|
37
|
+
</tr>
|
38
|
+
<% end %>
|
39
|
+
</table>
|
40
|
+
|
41
|
+
<script>
|
42
|
+
dimensions = new Array();
|
43
|
+
<%
|
44
|
+
dims.each_with_index do |dim,i|
|
45
|
+
min = "null"
|
46
|
+
max = "null"
|
47
|
+
name = dim[:name]
|
48
|
+
if (reg = @analysis.region[name])
|
49
|
+
min = reg["min"] if reg["min"]
|
50
|
+
max = reg["max"] if reg["max"]
|
51
|
+
end
|
52
|
+
%>
|
53
|
+
dimensions[<%= i %>] = new Slider("analysis[region][<%=name%>]", 150, 4, [<%= dim[:ary].join(", ") %>], true, <%=min%>, <%=max%>);
|
54
|
+
<% end %>
|
55
|
+
x_axis = null;
|
56
|
+
y_axis = null;
|
57
|
+
anim_dim = null;
|
58
|
+
</script>
|
59
|
+
<% end %>
|
@@ -0,0 +1,217 @@
|
|
1
|
+
<%
|
2
|
+
nvar = @analysis.variables.length
|
3
|
+
dims = @analysis.dimensions
|
4
|
+
ndim = dims.length
|
5
|
+
x_axis = @analysis.x_axis
|
6
|
+
y_axis = @analysis.y_axis
|
7
|
+
z_axis = @analysis.z_axis
|
8
|
+
anim_dim = @analysis.anim_dim
|
9
|
+
unless x_axis && y_axis && z_axis && anim_dim
|
10
|
+
hash = Hash.new
|
11
|
+
dims.each_with_index{|dim,i|
|
12
|
+
hash[dim[:name]] = i
|
13
|
+
}
|
14
|
+
unless x_axis
|
15
|
+
ary = []
|
16
|
+
ndim.times{|i| ary.push i }
|
17
|
+
ary.delete(hash[y_axis])
|
18
|
+
ary.delete(hash[z_axis])
|
19
|
+
ary.delete(hash[anim_dim])
|
20
|
+
x_axis = dims[ary.empty? ? -1 : ary.min][:name]
|
21
|
+
end
|
22
|
+
if ndim>1 && !y_axis
|
23
|
+
ary = []
|
24
|
+
ndim.times{|i| ary.push i }
|
25
|
+
ary.delete(hash[x_axis])
|
26
|
+
ary.delete(hash[z_axis])
|
27
|
+
ary.delete(hash[anim_dim])
|
28
|
+
y_axis = dims[ary.empty? ? -1 : ary.min][:name]
|
29
|
+
end
|
30
|
+
if ndim>2 && !z_axis
|
31
|
+
ary = []
|
32
|
+
ndim.times{|i| ary.push i }
|
33
|
+
ary.delete(hash[x_axis])
|
34
|
+
ary.delete(hash[y_axis])
|
35
|
+
ary.delete(hash[anim_dim])
|
36
|
+
z_axis = dims[ary.empty? ? -1 : ary.min][:name]
|
37
|
+
end
|
38
|
+
unless ndim<2 || anim_dim
|
39
|
+
if ndim==2
|
40
|
+
anim_dim = dims[-1][:name]
|
41
|
+
else
|
42
|
+
ary = []
|
43
|
+
ndim.times{|i| ary.push i }
|
44
|
+
ary.delete(hash[x_axis])
|
45
|
+
ary.delete(hash[y_axis])
|
46
|
+
ary.delete(hash[z_axis])
|
47
|
+
anim_dim = dims[ary.empty? ? -1 : ary.min][:name]
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
%>
|
52
|
+
|
53
|
+
<div>
|
54
|
+
<%= check_box("analysis", "draw_share") %>
|
55
|
+
<label for="draw_share">
|
56
|
+
<%= help_popup( 'draw_share') %>
|
57
|
+
Record visualization for statistics
|
58
|
+
</label>
|
59
|
+
</div>
|
60
|
+
<hr/>
|
61
|
+
|
62
|
+
<div>
|
63
|
+
<% if nvar > 0 %>
|
64
|
+
Figure type:
|
65
|
+
<select name="analysis[draw_method]" id="draw_method" onChange="selectDrawMethod();">
|
66
|
+
</select>
|
67
|
+
<script>
|
68
|
+
var drawMethodSelect = $('draw_method');
|
69
|
+
var option;
|
70
|
+
<% @draw_methods.each_with_index{|dm,i| %>
|
71
|
+
option = new Option("<%=dm.name%>","<%=dm.name%>");
|
72
|
+
option.ndims = <%=dm.ndims%>;
|
73
|
+
option.nvars = <%=dm.nvars%>;
|
74
|
+
<% if @analysis.draw_method == dm %>
|
75
|
+
option.selected = true;
|
76
|
+
<% end %>
|
77
|
+
drawMethodSelect.options[<%=i%>] = option;
|
78
|
+
<% } %>
|
79
|
+
</script>
|
80
|
+
<%
|
81
|
+
end
|
82
|
+
%>
|
83
|
+
</div>
|
84
|
+
|
85
|
+
|
86
|
+
<div>
|
87
|
+
<span id="x_axis_row">
|
88
|
+
<label for="x_axis">the 1st Dim:</label>
|
89
|
+
<select name="analysis[x_axis]" id="x_axis" onChange="selectXAxis(this)">
|
90
|
+
<%
|
91
|
+
ndim.times do |i|
|
92
|
+
dim = dims[i]
|
93
|
+
name = dim[:name]
|
94
|
+
selected = (name == x_axis) ? "selected" : ""
|
95
|
+
%>
|
96
|
+
<option value="<%= name %>" id="x_axis_<%= i %>" <%= selected %>><%= h(name) %></option>
|
97
|
+
<% end %>
|
98
|
+
</select>
|
99
|
+
</span>
|
100
|
+
<% if ndim >= 2 %>
|
101
|
+
<br/>
|
102
|
+
<span id="y_axis_row" style="display:none">
|
103
|
+
<label for="y_axis">the 2nd Dim:</label>
|
104
|
+
<select name="analysis[y_axis]" id="y_axis" onchange="selectYAxis(this)">
|
105
|
+
<%
|
106
|
+
ndim.times do |i|
|
107
|
+
dim = dims[i]
|
108
|
+
name = dim[:name]
|
109
|
+
selected = (name == y_axis) ? "selected" : ""
|
110
|
+
%>
|
111
|
+
<option value="<%= name %>" id="y_axis_<%= i %>" <%= selected %>>
|
112
|
+
<%= h(name) %>
|
113
|
+
</option>
|
114
|
+
<% end %>
|
115
|
+
</select>
|
116
|
+
</span>
|
117
|
+
<% end %>
|
118
|
+
<% if ndim >= 3 %>
|
119
|
+
<br/>
|
120
|
+
<span id="z_axis_row" style="display:none">
|
121
|
+
<label for="z_axis">the 3rd Dim:</label>
|
122
|
+
<select name="analysis[z_axis]" id="z_axis" onchange="selectZAxis(this)">
|
123
|
+
<%
|
124
|
+
ndim.times do |i|
|
125
|
+
dim = dims[i]
|
126
|
+
name = dim[:name]
|
127
|
+
selected = (name == z_axis) ? "selected" : ""
|
128
|
+
%>
|
129
|
+
<option value="<%= name %>" id="z_axis_<%= i %>" <%= selected %>>
|
130
|
+
<%= h(name) %>
|
131
|
+
</option>
|
132
|
+
<% end %>
|
133
|
+
</select>
|
134
|
+
</span>
|
135
|
+
<% end %>
|
136
|
+
</div>
|
137
|
+
|
138
|
+
<div>
|
139
|
+
<% if ndim >= 2 %>
|
140
|
+
<span title="Check to animate">
|
141
|
+
<%= check_box("analysis", "anim", :onclick => "setAnim();") %>
|
142
|
+
<label for="analysis_anim">Animation</label><br/>
|
143
|
+
</span>
|
144
|
+
<span title="You can further specify the range in the Axes window above">
|
145
|
+
<label for="anim_dim"> dimension to animate:</label>
|
146
|
+
<select name="analysis[anim_dim]" id="anim_dim" onchange="selectAnimDim(this)">
|
147
|
+
<%
|
148
|
+
ndim.times do |i|
|
149
|
+
dim = dims[i]
|
150
|
+
name = dim[:name]
|
151
|
+
selected = (name == anim_dim) ? "selected" : ""
|
152
|
+
%>
|
153
|
+
<option value="<%= name %>" id="anim_dim_<%= i %>" <%= selected %>>
|
154
|
+
<%= h(name) %>
|
155
|
+
</option>
|
156
|
+
<% end %>
|
157
|
+
</select>
|
158
|
+
</span>
|
159
|
+
<% end %>
|
160
|
+
</div>
|
161
|
+
|
162
|
+
|
163
|
+
<div>
|
164
|
+
Projection Type:
|
165
|
+
<select name="analysis[draw_projection]" id="draw_projection">
|
166
|
+
<%
|
167
|
+
Analysis::DRAW_PROJECTION.sort.each{|itr,name|
|
168
|
+
selected = (itr == @analysis.draw_projection) ? "selected" : ""
|
169
|
+
%>
|
170
|
+
<option value="<%= itr %>" id="draw_projection_<%= itr %>" <%= selected %>>
|
171
|
+
<%= h(name) %>
|
172
|
+
</option>
|
173
|
+
<% } %>
|
174
|
+
</select>
|
175
|
+
</div>
|
176
|
+
|
177
|
+
|
178
|
+
<div>
|
179
|
+
<span title="Check to pile up graphs to the one diagram">
|
180
|
+
<%= check_box("analysis", "draw_pileup") %>
|
181
|
+
<label for="analysis_draw_pileup">Pile up</label>
|
182
|
+
</span>
|
183
|
+
</div>
|
184
|
+
|
185
|
+
<div>
|
186
|
+
<span title="Check to lay out images without replacing">
|
187
|
+
<%= check_box("analysis", "draw_keep") %>
|
188
|
+
<label for="analysis_draw_keep">Keep diagrams</label>
|
189
|
+
</span>
|
190
|
+
</div>
|
191
|
+
|
192
|
+
|
193
|
+
<div>
|
194
|
+
Diagram size:<br/>
|
195
|
+
<%= radio_button :analysis, :draw_size, "0" %>
|
196
|
+
<span title="Size: <%= Analysis::DRAW_SIZE[0].join(' x ') %>">
|
197
|
+
<label for="analysis_draw_size_0">large</label>
|
198
|
+
</span>
|
199
|
+
<%= radio_button :analysis, :draw_size, "1" %>
|
200
|
+
<span title="Size: <%= Analysis::DRAW_SIZE[1].join(' x ') %>">
|
201
|
+
<label for="analysis_draw_size_1">med</label>
|
202
|
+
</span>
|
203
|
+
<%= radio_button :analysis, :draw_size, "2" %>
|
204
|
+
<span title="Size: <%= Analysis::DRAW_SIZE[2].join(' x ') %>">
|
205
|
+
<label for="analysis_draw_size_2">small</label>
|
206
|
+
</span>
|
207
|
+
<%= radio_button :analysis, :draw_size, "3" %>
|
208
|
+
<span title="Size: <%= Analysis::DRAW_SIZE[3].join(' x ') %>">
|
209
|
+
<label for="analysis_draw_size_2">x-small</label>
|
210
|
+
</span>
|
211
|
+
</div>
|
212
|
+
|
213
|
+
<div>
|
214
|
+
<label for="analysis_viewport">Viewport vxmin, vxmax, vymin, vymax
|
215
|
+
(0 to 1):</label><br/>
|
216
|
+
<%= text_field("analysis", "viewport", :size => 30, :maxlength => 60) %>
|
217
|
+
</div>
|