[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[python #RHP-234890]: Questions About GOES Imagery



Hi Brendan,

That file size is definitely wrong, those products should be more like ~14 
megabytes--I'm guessing it's downloading a 404 html page, which of course fails 
to open as a netcdf file.

I see now that particular product has aged out of the directory. Can you try 
this one?

https://thredds.ucar.edu/thredds/fileServer/satellite/goes/east/products/CloudAndMoistureImagery/CONUS/Channel03/20230331/OR_ABI-L2-CMIPC-M6C03_G16_s20230901756160_e20230901756160_c20230901756160.nc

Cheers, 

Ryan

> Hi Ryan,
> 
> thanks for the message. I tried what you suggested, with the same result. 
> Maybe it is a bug with xarray?, then?
> 
> I wasn't able to access the URL directly through my browser (Safari or 
> Chrome; I get a 404 error) however (I think) I was able to download it 
> successfully with curl?:
> 
> curl -o 
> OR_ABI-L2-CMIPC-M6C03_G16_s20230852046160_e20230852046160_c20230852046160.nc 
> https://thredds.ucar.edu/thredds/fileServer/satellite/goes/east/products/CloudAndMoistureImagery/CONUS/Channel03/current/OR_ABI-L2-CMIPC-M6C03_G16_s20230852046160_e20230852046160_c20230852046160.nc
> 
> Which produces a file of 924 bytes, the same size as the image I downloaded 
> previously through the siphon? interface.
> 
> But opening with xarray? still gives an error. If I don't specify 
> engine='netcfd4'? then I get this error:
> 
> ValueError: did not find a match in any of xarray's currently installed IO 
> backends ['netcdf4', 'scipy', 'gini']. Consider explicitly selecting one of 
> the installed engines via the ``engine`` parameter, or installing additional 
> IO dependencies
> 
> but when passing the engine? argument I get
> 
> OSError: [Errno -51] NetCDF: Unknown file format: 
> '/Users/brendan/Desktop/OR_ABI-L2-CMIPC-M6C03_G16_s20230852046160_e20230852046160_c20230852046160.nc'
> 
> I will continue to investigate, but if you have any ideas I'd love to hear 
> them.
> 


Ticket Details
===================
Ticket ID: RHP-234890
Department: Support Python
Priority: Low
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.