[SciPy-User] help! strange netCDF output

Ryan May rmay31@gmail....
Thu Nov 11 21:09:05 CST 2010

On Thu, Nov 11, 2010 at 5:22 PM, Neil Berg <nberg@atmos.ucla.edu> wrote:
> Hi Scipy'ers,
> I have written a function to read in netCDF files, interpolate hourly grid point 80-meter wind speeds, and then output those interpolated hourly wind speeds as a new netCDF file.  The time variables should all be the same from the read in and written netCDF file, but I keep getting a strange pattern for the year, month, and day variables.  As you can see below, the hour output is fine, and hence so is my hourly wind speed output, but the year, month, and day keep vacillating between the correct value and zero!  Any suggestions on how to get rid of the oscillating year, month, and day variables?  Below is sample output for the first 9 hours of June 1999.  I've attached the script.

Check that the arrays you're writing out have the same size *data
type* as the ones you're creating.  It looks like an int64 vs. int32


Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma

More information about the SciPy-User mailing list