Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Add support for NetCDF responseFormat #136

Open
2 tasks
nuest opened this issue May 16, 2019 · 0 comments
Open
2 tasks

Add support for NetCDF responseFormat #136

nuest opened this issue May 16, 2019 · 0 comments

Comments

@nuest
Copy link
Contributor

nuest commented May 16, 2019

The NIWA Hydrological Data SOS supports the following response formats:

> niwaHydro <- SOS(url = "https://hydro-sos.niwa.co.nz/", binding = "KVP", useDCPs = FALSE, version = "2.0.0")
sos
> sosResponseFormats(niwaHydro)
$GetObservation
$GetObservation[[1]]
[1] "application/json"

$GetObservation[[2]]
[1] "application/netcdf"

$GetObservation[[3]]
[1] "application/netcdf; profile=OceanSITES"

$GetObservation[[4]]
[1] "application/netcdf; profile=OceanSITES; version=3"

$GetObservation[[5]]
[1] "application/netcdf; profile=OceanSITES; version=4"

$GetObservation[[6]]
[1] "application/netcdf; version=3"

$GetObservation[[7]]
[1] "application/netcdf; version=4"

$GetObservation[[8]]
[1] "application/zip; subtype=netcdf"

$GetObservation[[9]]
[1] "application/zip; subtype=netcdf; profile=OceanSITES"

$GetObservation[[10]]
[1] "application/zip; subtype=netcdf; profile=OceanSITES; version=3"

$GetObservation[[11]]
[1] "application/zip; subtype=netcdf; profile=OceanSITES; version=4"

$GetObservation[[12]]
[1] "application/zip; subtype=netcdf; version=3"

$GetObservation[[13]]
[1] "application/zip; subtype=netcdf; version=4"

$GetObservation[[14]]
[1] "http://www.opengis.net/om/2.0"

$GetObservation[[15]]
[1] "http://www.opengis.net/waterml-dr/2.0"

$GetObservation[[16]]
[1] "http://www.opengis.net/waterml/2.0"
  • try to download NetCDF data with a user-defined parser, then (if it works):
  • add support for NetCDF
    • if R package netcdf (or suitable) is available, then parse response
    • try out zipped variant
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant