Using Raster Calculator in QGIS produces output with strange values - statistics

I am adding a number of raster grids together using the Raster Calculator in QGIS, but my output file displays very large values in the range on the layer Legend e.g. 340,282,346,638,528,859,811,704,183,484,516,925,440 to
-340,282,346,638,528,859,811,704,183,484,516,925,440
(please see the image attached).
raster range
The raster grids that I am using are all Float32. This file also displays no information in the summary statistics.
Any ideas how I can avoid this would be much appreciated. Thanks

Related

Python - How to show missing datasets on my plot?

The legend on my plot shows various entries; however, I can only see one dataset actually plotted in the graph. How can I show the rest?
The code that I am using is the following:
HPI_data = pd.read_pickle('pandas_pickle.pickle')
print(HPI_data.head())
#note: all data points are being printed correctly up to this point so I do not think that there is anything nothing wrong with the pickling.
HPI_data.plot()
plt.legend().remove()
plt.show()
# the plot only shows only dataset for some reason!
The following shows the actual output of print(HPI_data.head()):
House pricing index raw data
The output displayed is exactly how I want to be; however, the issue I am dealing with is with the plotting.

Is there a way to transform rectangle into any shapes in MS Excel?

In MS Excel, I applied conditional formatting to a cell A1 so that it's color changes from blue at value 0 and red at value 100. I copied that cell and pasted it as linked picture(I) specially.(Paste Special). The color of the rectangle picture now changes if value in original cell is changed. The problem is, the shape is only rectangular, it can be converted into square and diamond shape at best.If same rectangle can be transformed into different shapes(maybe by adding extra anchor on rectangle shape), a heat map can be created easily. Please share your insights about this thing if there is a way.
Following pictures may help understand the problem:
[Example][1]
If you want a heat map, please consider using a CHART not gazillions of picture objects, colored/placed/rotated/etc to ... mimic a chart.
First, google anything about "surface chart" in Excel, see how it looks in Excel, whatever. Just see it and think about it so you can compare it to your current approach.
You will observe some things, like:
it's 3D
it has just a few layers/colors
etc.
But really, all of them can be solved. Probably easier than your current approach.
you can easily turn off both axes and you can rotate it so the camera is totally straight top-down - then it looks flat as paper and noone can see it as 3D anymore
you can add more layers, you can set each of them to specific colors
etc.
Some resources:
multiple colors in surface chart
how to change rotation of 3d chart
geesh, I just found even a whole article/tutorial dedicated to creating heat map charts.
Please, read that last link and I'm pretty sure you will want to use that approach instead of doing picture puzzles.

Printing from gnuplot

Pls I have drawn a graph using gnuplot.
All the margins are set to zero.
I saved the output with pngcairo and tried printing it from Corel draw x3 on an a3 sheet. I want the size to be 250mm vertical and 350mm horizontal.
However, some of the grid sizes short by some few millimetres reducing the entire vertical and horizontal sizes by some millimetres.![enter image description here][1]
Our project also relies on technical precision. I'll be happy if someone can help me know what I'm doing wrongly.

How to produce the data points for a circle in Excel using ROW INDIRECT

The page linked to here has been a great help to me. The method of using the named function (=(ROW(INDIRECT("1:361"))-1)*PI()/180) to produce the circle data points is very slick compared to my original method that was to calculate them individually, writing them in to rows.
My data set includes some 50k rows of data, each one defining a circle. The set is divided into 50 groups and I need to plot one circle from each group as selected via a scroll bar controlling a LOOKUP routine.
Please can someone suggest how I might modify the function (=(ROW(INDIRECT("1:361"))-1)*PI()/180) to reduce the number of data points it produces? I want to reduce the computing load and also, it's not practical to display & format data markers with such high data density. My existing circles are produced with just 18 coordinate pairs and are satisfactorily rounded.
Thanks in advance. Steve.
This would give you 19 data points, 0 and 360 as the start/end points with another every 20%
=(ROW(INDIRECT("1:19"))-1)*PI()/9

convert an image from sRGB to indexed. Color palette is ~400 colors, final image to use a max of 70 colors

What I want to do:
I would like to change an image to indexed, provide the color map, and set the max number of colors in the image to 70 of the provided 400. I would like this final image to be exported in some kind of text based format.
What I have so far:
I have the color palette as a text list of ~400 HEX values and their RGB equivalents in an excel spreadsheet. I can create a csv or tab-separated file of whatever of the two formats are needed (hex or RGB).Using imagemagik, the -remap argument will do the palette conversion, and the -color argument to limit the number of colors to 70. If the indexed image is saved as bmp, I can easily import a BMP into c++/python/matlab/octave and do some operations on the array and write that to text file.
Where I'm stuck:
I'm struggling to efficiently get my text-based list of ascii values into a nice colormap image that I can feed to the -remap argument. I know I could manually create one by painstakingly creating an image and making one pixel each color in the colormap, but there must be a better way!
Other Stuff:
If you have any other advice about the process I've mentioned above or any suggestions as to how I can do this better/faster/more efficiently, I'm all ears!

Resources