Giter Club home page Giter Club logo

delete_me.netcdf-subset-service's Introduction

NetCDF Subset Service

Build Status

Prerequisites

This project uses the grails wrapper, therefore the only prerequisite is a JRE/JDK. To run:

$ ./grailsw run-app

Usage

http://localhost:8080/netcdf-subset/subset?typeName=${LAYER_NAME}&CQL_FILTER=INTERSECTS(${GEOMETRY_ATTR},${GEOMETRY_LIT}) AND ${TIMESTAMP_ATTR} >= '${FROM_TIMESTAMP}' AND $(TIMESTAMP_ATTR) <= '${TO_TIMESTAMP}'

Where

Example (using curl and encoding URL parameters):

$ curl -L "http://localhost:8080/netcdf-subset/subset" \
       --data-urlencode "typeName=anmn_timeseries" \
       --data-urlencode "CQL_FILTER=INTERSECTS(geom,POLYGON((113.33 -33.09,113.33 -30.98,117.11 -30.98,117.11 -33.09,113.33 -33.09))) AND TIME >= '2015-01-13T23:00:00Z' AND TIME <= '2015-04-14T00:00:00Z'" \
       > test.zip 2> /dev/null

$ unzip -l test.zip 
Archive:  test.zip
 Length   Method    Size  Ratio   Date   Time   CRC-32    Name
--------  ------  ------- -----   ----   ----   ------    ----
      18  Defl:N       20 -11%  04-20-15 11:15  082c8fdd  TestFile.nc
--------          -------  ---                            -------
      18               20 -11%                            1 file

delete_me.netcdf-subset-service's People

Contributors

jonescc avatar danfruehauf avatar jkburges avatar dnahodil avatar aodn-ci-deploy avatar

Watchers

James Cloos avatar Tommy Fotak avatar  avatar  avatar  avatar  avatar  avatar  avatar

delete_me.netcdf-subset-service's Issues

Production config should not be sourced from jar

Currently the netcdf subset service sources netcdf typeName mapping files from the necdfgenerator jar

This means a new jar would need to be built everytime the mapping is changed/new mappings are added.

Ideally the config should be able to be changed independently to code changes made to the generator.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.