Commit 146c50791e8fb057dc8b58e07017cdfb19e80b49
1 parent
2b60247d
Exists in
master
and in
108 other branches
Add option to select scientific format for floating fields (#6566)
Showing
2 changed files
with
8 additions
and
1 deletions
Show diff stats
js/app/models/Download.js
... | ... | @@ -22,6 +22,7 @@ Ext.define('amdaModel.Download', { |
22 | 22 | {name: 'refparamSampling', type: 'boolean', defaultValue: false}, |
23 | 23 | {name: 'separateInfoFile', type: 'boolean', defaultValue: false}, |
24 | 24 | {name: 'sampling', type: 'int', defaultValue: '600'}, |
25 | + {name: 'scientificformat', type: 'boolean', defaultValue: false}, | |
25 | 26 | {name: 'fileprefix', type: 'string'}, |
26 | 27 | {name: 'fileformat', type: 'string'}, |
27 | 28 | {name: 'fileformatTT', type: 'string'}, |
... | ... | @@ -29,7 +30,7 @@ Ext.define('amdaModel.Download', { |
29 | 30 | {name: 'compressionTT', type: 'string'} |
30 | 31 | ], |
31 | 32 | |
32 | - propertiesToCopy : 'id,name,downloadSrc,refparamSampling,separateInfoFile,sampling,list,timeformat,timeformatTT,structure,fileprefix,fileformat,fileformatTT,compression,compressionTT', | |
33 | + propertiesToCopy : 'id,name,downloadSrc,refparamSampling,separateInfoFile,sampling,scientificformat,list,timeformat,timeformatTT,structure,fileprefix,fileformat,fileformatTT,compression,compressionTT', | |
33 | 34 | |
34 | 35 | getJsonValues : function(){ |
35 | 36 | |
... | ... | @@ -42,6 +43,7 @@ Ext.define('amdaModel.Download', { |
42 | 43 | myValues.structure = this.get('structure'); |
43 | 44 | myValues.refparamSampling = this.get('refparamSampling'); |
44 | 45 | myValues.separateInfoFile = this.get('separateInfoFile'); |
46 | + myValues.scientificformat = this.get('scientificformat'); | |
45 | 47 | myValues.sampling = this.get('sampling'); |
46 | 48 | myValues.fileprefix = this.get('fileprefix'); |
47 | 49 | |
... | ... |
js/app/views/DownloadUI.js
... | ... | @@ -635,6 +635,11 @@ Ext.define('amdaUI.DownloadUI', { |
635 | 635 | disabled: true |
636 | 636 | }, |
637 | 637 | { |
638 | + xtype : 'checkbox', boxLabel: 'Scientific floating-point formatting', | |
639 | + boxLabelAlign: 'before', | |
640 | + name: 'scientificformat', checked: false | |
641 | + }, | |
642 | + { | |
638 | 643 | xtype: 'textfield', name: 'fileprefix', |
639 | 644 | fieldLabel: 'File Prefix', |
640 | 645 | disabled: false, editable: true |
... | ... |