Questions tagged [python-siphon]

Siphon is a collection of Python utilities for retrieving atmospheric and oceanic data from remote sources.

Siphon is a collection of Python utilities for retrieving atmospheric and oceanic data from remote sources. (https://unidata.github.io/siphon)

17 questions
4
votes
1 answer

Simple conversion of netCDF4.Dataset to xarray Dataset

I know how to convert netCDF4.Dataset to xarray DataArray manually. However, I would like to know whether is there any simple and elegant way, e.g. using xarray backend, for simple conversion of the following 'netCDF4.Dataset' object to xarray…
Ales
  • 495
  • 3
  • 11
2
votes
1 answer

How to get BUFR Soundings using Siphon from the University of Wyoming?

By using the codes below, I can succesfully get “TEMP Soundings” data from the University of Wyoming. (The website is http://weather.uwyo.edu/upperair/sounding.html) import datetime from siphon.simplewebservice.wyoming import WyomingUpperAir date…
garyfio
  • 21
  • 1
2
votes
1 answer

Best practice for obscuring auth credentials for session manager?

On this example: https://unidata.github.io/siphon/latest/examples/Basic_Usage.html Is there a best practice for obscuring the username/password information for the session manager? I am using a configuration paradigm so I can bring out my password…
1
vote
1 answer

How to store a dataset retrieved with Siphon and the ncss service

I use the Siphon library to retrieve a subset (using the ncss service) of a remote NetCDF dataset. Is there a convenient way of storing the result in a local .nc file or do I have to create a new Dataset for writing and then clone everything in…
gdros
  • 393
  • 2
  • 10
1
vote
1 answer

Sea Surface Temperature NetCDF4 Input z must be 2D, not 3D

I am trying to plot recent sea surface temperature data on a map. I got it working when I downloaded the netCDF4 file, but when I try to access the file from https://www.ncei.noaa.gov/thredds/, I get a TypeError saying, "Input z must be 2D, not 3D".…
1
vote
2 answers

read in authorized opendap url using xarray

I would like to open a opendap url using xarray. It requires authorization as it held at UCAR RDA: https://rda.ucar.edu/datasets/ds084.1/#!description The url for one file is as follows…
Ray Bell
  • 1,508
  • 4
  • 18
  • 45
1
vote
1 answer

Why does the xarray reftime key suddenly have a 1 at the end?

I'm downloading GFS data from the Unidata Thredds server using siphon so I can plot it using MetPy. I wrote a script to do this and it worked perfectly yesterday: #Get data using siphon best_gfs =…
Jack Sillin
  • 75
  • 1
  • 9
0
votes
2 answers

How to using for loop to download GFS url data using Siphon

I'm trying to loop to download a subset of GFS data using the siphon library. I can download one file at a time normally the way the code is laid out. I would like to know how can I download from the period January 2020 to December 2022 from the 003…
0
votes
1 answer

Exception thrown with simple Siphon ACIS Request

I'm using the following code in Google Colab with siphon 0.9: from siphon.simplewebservice import acis import json params = {"sid":"KPIH","elems":"maxt,mint,avgt,pcpn,snow,snwd"} ds = acis.acis_request("StnData", params) Resulting…
John H.
  • 11
  • 3
0
votes
1 answer

Why extracting NEXRAD Level 3 products using the siphon package returns empty?

I am using the siphon package to extract NEXRAD Level 3 data following the example in this link: https://unidata.github.io/siphon/latest/examples/Radar_Server_Level_3.html. But it appears that the available datasets are empty. Does anyone know why…
Ehsan
  • 3
  • 2
0
votes
1 answer

siphon error - 400: NETCDF4 format not supported for ANY_POINT feature typ

I'm trying to get a dataset from TDScatalog with siphon but with multiples variables show me that error or the last line. Here the code: import siphon from siphon.catalog import TDSCatalog import datetime from xarray.backends import…
0
votes
2 answers

Sorting a TDSCatalog List for Loops and Animations

I'm working on making animated radar loops using siphon and I am seeing that siphon isn't extracting the data in time/file order. (Example below). from siphon.cdmr import Dataset from siphon.radarserver import get_radarserver_datasets,…
Bill Capehart
  • 85
  • 1
  • 5
0
votes
1 answer

850hPa temp Advection Example Not Working

I am new to plotting and examining wx data using python. I started with this example 850 hPa temp advection and its failing at this statement. ncss = NCSS('{}{dt:%Y%m}/{dt:%Y%m%d}/gfsanl_4_{dt:%Y%m%d}_' …
yoyoyoyo123
  • 2,362
  • 2
  • 22
  • 36
0
votes
1 answer

How do I get arrays of coordinate values for a variable from a netCDF gridded dataset using Siphon and MetPy?

I have requested a netCDF subset using Siphon and formed a query to retrieve a variable within a bounding box: from siphon.catalog import TDSCatalog cat =…
0
votes
0 answers

THREDDS & METAR Plotting with Python

I'm having trouble trying to plot METAR data from the THREDDS data server, which comes in .nc format, onto a map. I'm using Siphon to grab the data and Xarray to open the dataset with remote_access, but the problem comes with attempting to convert…
1
2