Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

NCSS json response #886

Open
sureL89 opened this issue Jul 17, 2017 · 0 comments
Open

NCSS json response #886

sureL89 opened this issue Jul 17, 2017 · 0 comments

Comments

@sureL89
Copy link

sureL89 commented Jul 17, 2017

Background

Thredds Mailing List

Problem

I'd like to access the ncss file from within my python app directly from the cache directory. I won't need the binary data in the response stream, instead it would be nice to get a json response with some useful information (filepath, filesize, hash, Spatial Extent, Temporal Extent) after the creation of the subset is finished.
I thought about serving the file with uwsgi+nginx and delete it after a successful download.

Although I am not into java at all I took a look at the ncss component and thought about the following for gridded datasets:

  • Add a boolean parameter in NcssParamsBean.java
  • Add getResponseMetadata method in GridResponder.java (creates the json response)
  • Adapt response in NcssController.java if parameter is set
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant