siphon icon indicating copy to clipboard operation
siphon copied to clipboard

lonlat_box across meridian

Open leips opened this issue 7 years ago • 10 comments

Hi,

I can't plot any data that cross the meridian. For example, I try

query.lonlat_box(north=45., south=39., east=4, west=-3).time(datetime.utcnow())

And stop at lon_0

image

And it's not inside de query

[0. 0.25 0.5 0.75 1. 1.25 1.5 1.75 2. 2.25 2.5 2.75 3. 3.25 3.5 3.75 4. ]

What I'm doing wrong? Or this something related to Thredds server?

Thank you

leips avatar Feb 20 '18 19:02 leips

The current release of the TDS does not allow for cross data array boundaries. However, the next version does and should support this kind of ncss query.

lesserwhirls avatar Feb 20 '18 20:02 lesserwhirls

Having a similar problem when defining a bounding box that crosses the prime meridian. Is there a workaround?

stefan-hofer avatar Apr 03 '18 11:04 stefan-hofer

@shofer16450 is the data extent 0->360? (Rather than -180 -> 180)

dopplershift avatar Apr 03 '18 18:04 dopplershift

The only workaround at this point would be to make two siphon requests - one for each edge of the grid. In the next version of the TDS, you will be able to do this in with one siphon request. It might be possible to have siphon automatically make two requests if needed, but that functionality does not exist yet.

lesserwhirls avatar Apr 03 '18 18:04 lesserwhirls

Well, the two requests would result in two separate netCDF Datasets, so there would still be some work to put those back together. Maybe...OPeNDAP?

dopplershift avatar Apr 03 '18 18:04 dopplershift

Maybe, but then you lose the ncss niceness of the request. Needs more thought :-/

lesserwhirls avatar Apr 03 '18 18:04 lesserwhirls

@shofer16450 is the data extent 0->360? (Rather than -180 -> 180)

Yes, the data extent is indeed [0, 360].

Thanks for your input, I'll just split the request and merge the resulting netCDF datasets back together for now.

stefan-hofer avatar Apr 03 '18 19:04 stefan-hofer

Is this fixed in TDS 4.6.15 or do we have to wait for version 5?

floryISU avatar Nov 20 '20 18:11 floryISU

TDS 5 will provide a service that can handle requests across the 0 degree meridian. Some work will be needed to access that service from Siphon and return this data in a usable form.

dopplershift avatar Nov 20 '20 20:11 dopplershift

Thanks, Ryan. I appreciate it and will watch for TDS 5.

floryISU avatar Nov 20 '20 22:11 floryISU