Hi everyone,
I'm a scientist at the NOAA/NESDIS Center for Satellite Applications and Research (STAR). I'm working on Python code to generate RGB composites from VIIRS SDR swath granules. I am using Pyresample's create_area_def() to create the AreaDefinition to resample my VIIRS swaths, as shown below.
# Create AreaDefinition (resolution ~750m)
viirs_area = create_area_def('viirs_area', {'proj': proj,
'lon_0': central_longitude},
area_extent=[west_lon, south_lat,
east_lon, north_lat],
units='degrees', resolution=(6.8E-3, 6.8E-3))
I'm setting the resolution of the AreaDefinition grid to be ~750 m, to match the spatial resolution of the VIIRS M-band SDRs at nadir. This is working correctly, and I can successfully generate the VIIRS RGBs. However, I'm getting a WARNING message from the Python logger module about needing to round the shape and resolution of the AreaDefinition grid to integer values, for example:
WARNING:root:shape found from radius and resolution does not contain only integers: (2647.0588235281784, 2426.470588240133)
Rounding shape to (2648, 2427) and resolution from (756.9725373927504, 756.972537394613) meters to (756.8074157762725, 756.7034872654548) meters
I would like to silence this WARNING message, since I don't need to see it. Could you please advise on which module (bolded below) is prompting the message? I tried the following options, but they didn't work.
logging.getLogger('pyresample').setLevel(logging.ERROR)
logging.getLogger('pyresample.create_area_def').setLevel(logging.ERROR)
Thanks for your help!
Amy