1 Jan 21:38
Re: Plotting NOAA data...
So my beginner saga continues with another question: I am trying to create a custom colormap using ListedColormap. The custom color map is for a range of values between 0 and 20 while the data in my file is between 0 and 8. Now my issue is that when plotting the graph the colormap is using the 0 to 8 values from the file. How can I force it to use all the 21 values in the colormap? Thanks, Anton Jeff Whitaker wrote: > > antonv wrote: >> Hey Jeff, >> >> I've got it sorted out a bit now. You're right the data was an output >> from >> Degrib and I had the option to output the csv's with or without data in >> the >> land areas. As before I was using a program that was placing the pixels >> in >> an image based on the X and Y columns it didn't create an issue. That was >> an >> easy fix by switching the option in the Degrib export. >> >> Also by looking at your example I realized the way the contourf function >> requests the Z data and by just reshaping the array I was able to make >> all >> the stuff work properly. Numpy is amazing by the way! I had no idea how(Continue reading)
RSS Feed