dklinges9 / mcera5

mcera5
12 stars 9 forks source link

extract_clim() returns `in hyper_filter.tidync(., longitude = longitude == long, latitude = latitude == : subexpression for [longitude] results in empty slice` #26

Closed Paul-Haimerl closed 8 months ago

Paul-Haimerl commented 8 months ago

Hi guys, when trying to extract a 2m surface temperature time series for a specific location, extract_clim() returns the Error: in hyper_filter.tidync(., longitude = longitude == long, latitude = latitude == : subexpression for [longitude] results in empty slice I have made sure that the specific location is within the long/lat scope of the .nc file. Optional arguments of extract_clim() are left at their defaults.

Can you please point me towards a fix?

Many thanks

dklinges9 commented 8 months ago

Hi Paul, could your send me your code for how you queried the era5 data request and how you parameterized extract_clim()? I'll take a look. Depending on the size of your netcdf you may also be able to attach it here (or send to dklinges9@gmail.com)

Paul-Haimerl commented 8 months ago

Ah sorry, I was not aware you had to download more than just the 2m temperature series (I went through the Copernicus data store, not the API). Many thanks nonetheless.

dklinges9 commented 8 months ago

No worries. Although I do encourage querying via the API and the mcera5build_era5_request and request_era5 functions, it's on my list to provide functionality in the package for ERA5 data that was downloaded otherwise. Good to know of users of this approach.