Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MetObsSite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MetObs
MetObsSite
Commits
f5ea68aa
Verified
Commit
f5ea68aa
authored
6 years ago
by
David Hoese
Browse files
Options
Downloads
Patches
Plain Diff
Change quicklook data ordering to NetCDF files instead of ASCII
parent
ce196d93
No related branches found
No related tags found
1 merge request
!1
Add information on selecting quicklook data for download
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
content/js/quicklookorder.js
+11
-4
11 additions, 4 deletions
content/js/quicklookorder.js
with
11 additions
and
4 deletions
content/js/quicklookorder.js
+
11
−
4
View file @
f5ea68aa
/* 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
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment