Skip to content
Snippets Groups Projects
Verified Commit f5ea68aa authored by David Hoese's avatar David Hoese
Browse files

Change quicklook data ordering to NetCDF files instead of ASCII

parent ce196d93
No related branches found
No related tags found
1 merge request!1Add information on selecting quicklook data for download
/* this function is called when the user clicks the "Download AOSS Tower Data" button */
/**
* Make request to MetObs Files API for currently selected dates.
*
* This is used on the quicklooks page when the user clicks the "Download AOSS Tower Data" button
*
* @param {string} site - Name of the instrument site (aoss, mendota, etc).
* @param {string} inst - Name of the instrument (tower, buoy, etc).
*/
function order(site, inst) {
var formatMenu = document.getElementById(inst+'format'); //grab the format menu
var formatString = formatMenu.options[formatMenu.selectedIndex].text; //grab the currently selected format
......@@ -8,10 +15,10 @@ function order(site, inst) {
.children('.selected').each(function(){
dates.add($(this).attr('date'));
});
if(dates.size){
if (dates.size) {
//start with the base of the query string, for tower ascii data level_00
var queryString = '/api/files.'+formatString+'?streams='+site+'.'+inst+'.ascii.l00.*&dates=';
queryString+= Array.from(dates).join(':');
var queryString = '/api/files.'+formatString+'?streams='+site+'.'+inst+'.nc-daily.lb1.*&dates=';
queryString += Array.from(dates).join(':');
window.open(METOBS_API_URL + queryString);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment