Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Pete Pokrandt
@PTH1_twitter
Sounds good, thanks! I'm just glad I finally figured out what was happening. Was driving me nuts, because the plots I was making matched my wxp ones for pressure, height, temp, etc, but the precip was always wrong. I'm kind of surprised that people haven't come across this problem already. If you just request a certain time accumulated precip from thredds, it's most likely incorrect..
Sean Arms
@lesserwhirls
For mixed interval variables in which there are multiple grids at the same valid time (but with differing interval widths), then it gets nasty for sure. If there are no overlaps, then the mid-point stuff should not come into play. My guess is people grab from OPeNDAP or cdmremote, although if they don't inspect the bounds attribute to see exactly what they are dealing with, then there will be issues as well. The funkiness of translating a collection of GRIB messages to something that looks like netCDF introduces all kinds of weird stuff. I don't think anyone would write a netCDF file with these kinds of mixed intervals on purpose, at least without a lot of soul searching.
agktogether
@agktogether
hello
dome one is therer
@dcamron
i need help
agktogether
@agktogether
this link for today is not working
this link below is not working for today 12 may 2020
or i can not config this link query ... i use this data it was working for 24 12 2019 but i can not get data today ..some one can help me?
what is root and config page to set these variable to access data of today
i really confused
thank
Sean Arms
@lesserwhirls
(I answered @agktogether via eSupport, but posting here in case others are wondering). The issue was that the NCEI server didn't have data for 12 May yet (only up to the 9th at this point). For the most recent output, https://thredds.ucar.edu/thredds/catalog/grib/NCEP/GFS/Global_0p5deg_ana/catalog.html should work (other servers are available, too).
agktogether
@agktogether
and i thanked you @lesserwhirls there but i post here for appreciating more your answer
thanks for your fast answering i got really surprised
hannah
@story645
Hi favorite people - I'm using the unidate education gateway thing this summer (thanks @lesserwhirls ) and have like 4 students who are gonna be working on goes 16/goes 17 and was wondering what's the best way to have them not download that 4 times...also does unidata have a cloud version of the gfs-mos?
Ryan May
@dopplershift
We ourselves don't have any cloud MOS. Maybe Google? It just sounds familiar, but I could be making it up. Don't worry about them hitting it 4 times from us, that's fine. If you really care, you could have them access GOES-16/17 from the noaa-goes16 and noaa-goes17 S3 buckets
Dan Adriaansen
@DanielAdriaansen
I would like to get a version of Siphon that contains the fix in #291 - I am using Anaconda. Do I need to build from src from master, or is there a RC somewhere on conda-forge that I can grab that would include these changes? Thanks!
Ryan May
@dopplershift
Boy we really need to make a release. :sob: In the meanwhile, if you have git available, you could do: python -m pip install git+https://github.com/Unidata/siphon.git
Joleen Feltz
@joleenf

I am currently trying to read Radar Level III storm track information from a THREDDS server using Siphon. One of the data variables is text, the second is a Structure. Is there anything I can do with that second variable? Are there any documentation online regarding these files?

``` from siphon.catalog import TDSCatalog
from siphon.radarserver import RadarServer
from siphon.cdmr import Dataset
from datetime import datetime, timedelta

cat = TDSCatalog("http://thredds.ucar.edu/thredds/radarServer/catalog.xml")
url = cat.catalog_refs['NEXRAD Level III Radar from IDD'].href
rs = RadarServer(url)
query_latest = rs.query()
now = datetime.utcnow()
query_latest.lonlat_box(292.9375, 235.0625, 25.0625, 52.9375).time(now).variables('NST')

query_latest_cat = rs.get_catalog(query_latest)

data_available = list(query_latest_cat.datasets.values())
if len(data_available) > 0:
print (data_available[0].access_urls['CdmRemote'])
data_from_thredds = Dataset(data_available[0].access_urls['CdmRemote'])
else:
print ("Empty query")

print (data_from_thredds)```

Ryan May
@dopplershift
Well, one option is to try to use opendap, which translates the structure. I'm not sure if that's more helpful or not:
nc = data_available[0].remote_access(service='OPENDAP')
Joleen Feltz
@joleenf
Hi Ryan, I tried both using opendap with netcdf4 and with xarray, the second variable was available/created? with netcdf4 and I am not sure xarray provided easier access to the variable. Though perhaps presents it differently. xarray creates five data variables. Two are string ndarrays of shape (1,) and three are int16 of shape(1,). I am thinking that this dataset is comprised of table-like data...but I don't really know. I have not found format information for these files, though I am still looking.
Joleen Feltz
@joleenf
@dopplershift Looking a little closer at this through the various tools, siphon, netcdf4, xarray... I think that the problem is that the data in the file does not comply with cdm standards as far as I can tell. I will just try to get the weather and climate toolkit scripting working. Hopefully I can point that to an opendap server via a command line call.
Ryan May
@dopplershift
You can open these using MetPy:
from metpy.io import Level3File
from siphon.catalog import TDSCatalog
from siphon.radarserver import RadarServer
from datetime import datetime, timedelta

cat = TDSCatalog("http://thredds.ucar.edu/thredds/radarServer/catalog.xml")
url = cat.catalog_refs['NEXRAD Level III Radar from IDD'].href
rs = RadarServer(url)
query_latest = rs.query()
now = datetime.utcnow()
query_latest.stations('GRR').time(now).variables('NST')
query_latest_cat = rs.get_catalog(query_latest)
data_available = list(query_latest_cat.datasets.values())
f = Level3File(data_available[0].remote_open())
The internal data structure isn't great and is pretty low level, but for these products, f.sym_block[0] should give you a collection of what's in the file, in order.
Joleen Feltz
@joleenf
@dopplershift Actually, f.sym_block[0] is very helpful. It at least provides a dictionary so it is easier to work with.
Dan Adriaansen
@DanielAdriaansen

Boy we really need to make a release. :sob: In the meanwhile, if you have git available, you could do: python -m pip install git+https://github.com/Unidata/siphon.git

Thank you so much for this suggestion!

Ryan May
@dopplershift
No problem!
agktogether
@agktogether

Hi sirs ,
I am always here to ask some questions.
but this time the problem is how can i access data of the future time that gfs forecast model predicts..
i know this data is there but i can not find it ,i need geoheight, temp, press , u-wind.v-wind properties in isobaric layers...
i am here https://thredds.ucar.edu/thredds/catalog/catalog.html
but i can not find future data 3 hourly ...
for example i need forecast of 3h or 6h after 00:00 in october 30 2020.last night

thanks

Ryan May
@dopplershift
Apologies on the delayed response. I think what you're looking for should be here: https://thredds.ucar.edu/thredds/catalog/grib/NCEP/GFS/Global_0p25deg/catalog.html
winash12
@winash12
i am not able to get anything out of the IGRA soundings site
i keep getting no dates matching selection
kedoneyes
@kedoneyes
When I downloaded the data of 03005 from the University of Wyoming sounding station at 12:00 on January 5, 2019, I found that the data below was wrong
Ryan May
@dopplershift
@winash12 which site and date/time?
@kedoneyes How was it wrong?
kedoneyes
@kedoneyes
@dopplershift The elevation data of the station is not consistent with the data on the network.
winash12
@winash12
from siphon.simplewebservice.igra2 import IGRAUpperAir
date = datetime(2021, 1, 22, 0) station = 'INM00042369'
winash12
@winash12
df, header = IGRAUpperAir.request_data(date, station)
kedoneyes
@kedoneyes
Do you have a mistake in downloading the data?
winash12
@winash12
I do not get any data at all
kedoneyes
@kedoneyes
I can get data from the Wyoming station, but the elevation data is wrong, so I can't use it.
winash12
@winash12
Hello. Please read my question again. My question is specific to IGRA soundings. There is no issue with Wyoming whatsoever
kedoneyes
@kedoneyes
I'm sorry, I was just talking about my problem, not answering yours.
Ryan May
@dopplershift
@kedoneyes If I look on the Wyoming website, for 12Z on 2021-1-5 for 03005, I see:
 Station latitude: 60.13
 Station longitude: -1.18
 Station elevation: 82.0

When I run:

WyomingUpperAir.request_data(datetime(2021, 1, 5, 12), '03005')

the data also have elevation of 82. If 82 isn't correct, that's outside our control.

kedoneyes
@kedoneyes
If you can, I would like you to download the file and compare it with the data provided on the University of Wyoming website, and look at the height values of each floor, and I'm sure you can see the problem.
Ryan May
@dopplershift
I did that with WyomingUpperAir.request_data(datetime(2021, 1, 5, 12), '03005'). I see exactly what Wyoming shows. Can you share what code you're running?
Oh, wait you mean the height column?
Ryan May
@dopplershift
@kedoneyes Unidata/siphon#315