Let's say I have 1 band raster images with Gray Color Interpretation and I want to change their color based on their data values. Data values -1, will be Blue, -0.5 will be Light Blue, 0 will be Yellow, 0.5 will be Orange and 1 will be Red. If the data values are &lt;-3000, I want to have that colored Black and if the data values are >3.402, that should be colored White . Will that be possible in gdal? And process that in batch?
I have 1-band GeoTIFF file. The color interpretation for band is gray. I want a color table in order to transform my Col.tiff to Col.jpeg or Col.png.  I tried putting a color table in this tiff via a .vrt:  gdal_translate -of VRT  Col.tiff Col.vrt   then adding in the .vrt:  &lt;ColorInterp&gt;Palette&lt;/ColorInterp&gt; &lt;ColorTable&gt;    &lt;Entry c1="0" c2="0" c3="255" c4="240"/&gt;    &lt;Entry c1="0" c2="0" c3="254" c4="240"/&gt;    &lt;Entry c1="0" c2="0" c3="253" c4="240"/&gt;    &lt;Entry c1="0" c2="0" c3="252" c4="240"/&gt; &lt;/ColorTable&gt;   And translate again :  gdal_translate Col.vrt Col.tiff   But it answered:  Warning 1: Unable to export color table to GeoTIFF file.  Color tables can only be written to 1 band or 2 bands Byte or UInt16 GeoTIFF files.   How can I do it?  For information, there is gdalinfo for the Band:  Band 1 Block=55x18 Type=Float64, ColorInterp=Gray   Description = Something   Metadata:     GRIB_COMMENT=Something[p]     GRIB_ELEMENT=TMP     GRIB_FORECAST_SECONDS=0 sec     GRIB_REF_TIME=1401926400 sec UTC     GRIB_SHORT_NAME=SMTHG     GRIB_UNIT=[p]     GRIB_VALID_TIME=1401926400 sec UTC
When i put the code $(f_{\mathcal{X}},f_{\mathcal{X}}^{\partial})$ I get the following:  But I want the subscripts to be aligned. How can I do this? I am running an application through gdb and I want to set a breakpoint for any time a specific variable is accessed / changed. Is there a good method for doing this? I would also be interested in other ways to monitor a variable in C/C++ to see if/when it changes. What is the difference between the bind and live methods in jQuery? What's the recommended max width for the main container and for the main column, for large screens? Based on this question,  and its comments and answers, I did some research, but I didn't find a complete answer.   For me it is obvious that it is a good decision to limit the width of the main container, but what is the recommended max-width for the main container for large screens, in 2017, when the screens become larger and larger? What variables should be considered in this decision?  Also, let's say a website has multiple columns in the main container, what is the max-width for the main column?  Update: I have now a related question. I recommended to one client to reduce the width of the main container on the homepage, but I can't convince him. It is a website with photos, like pexels.com. It is in this case important to limit the width if the elements are not one more important than other? Here is a sentence excerpted from ,     Teen suicide is a growing health concern. It is the third-leading cause of death for young people ages 15 to 24, surpassed only by homicide and accidents, according to the U.S. Center for Disease Control and Prevention.   I've heard people use both "people aged from X to Y" and "people ages from X to Y" quite often, but I've always been believing that only the former is grammatically correct, whereas in the latter the "ages" doesn't seem to serve as any grammatical component of this sentence. So when I see an APA paper use "ages" in that way, I am just quite surprised: I just can't believe such an authoritative and rigourous academic institution will let such an explicit (and indeed naive, even to a non-native speaker's eyes) grammatical mistake survive in their publications. I'm aware that in daily language usage one ought not to become so fussy over insignificant matters like this, but I do wonder whether it should be paid attention to in academic writings.  OR, using "ages" in that way is no longer considered a grammatical mistake? Honestly I don't think this'd be true, but if it really is, I'd be grateful to be informed. Thanks! Why did Harry's father emerge before his mother in HP and the Goblet of Fire? In Harry Potter book 4 (Goblet of Fire) Harry's wand 'links' with Voldemort's during their duel, and Voldemort's wand begins 'spitting out' each spell it had cast, in reverse order.  This produces false 'ghosts' of people he had killed with .  In the US printing, James Potter appears, followed by Lily.  If the spell order was supposed to be reversed, why did Harry's father's "ghost" emerge before his mother's, since it's repeatedly stated (before and after) that he died first? The question is to show that for any $x,y \in\Re^n$  $||x+y||\cdot||x-y||\le||x||^2+||y||^2$  with equality if and only if $\langle x,y \rangle= 0.$  I have that $||x+y||^2=||x||^2+2 \langle x,y \rangle+||y||^2$ , which helps me prove equality but I'm lost on how to show this and show that the inequality part. As you can see, objects are falling down when I run the game. Ground is unable to stop those obstacles. Obstacles are rapidly traveling through y axis. I tried by freezing y axis. And, unchecked Use Gravity. I tried by checking Is Kinematic also. But, if I freeze y axis. Than, obstacles completely freeze through y. If there was no ground than the objects don't fall. Same thing happen when I unchecked Use Gravity. I want those obstacles to move if Player hit them. How to stop those obstacles from falling down?   Info : \includegraphics: Dots in filename \includegraphics cannot handle filenames that contain more than the one dot, separating the filename from the extension. Apparently it uses everything after the first dot as extension and then, of course, complains about an unknown graphics extension.  This is annoying as I very often have filenames that contain parameter values, e.g. plot_a0.4_b0.6.pdf.  Is there a way to teach LaTeX to interpret only the string behind the last dot as extension? What is the origin of non-conservative force? My understanding about  is a force that its work is independent of path such that we can construct another form of the work called potential to make our life easier.  For friction, if I start from microscopic point of view, it should be the macroscopic effect of the electric force or gravity which are both conservative force.  Why do we initially have description by conservative forces (electric/gravity force) but end up with a macroscopic description of nonconservative force(friction)? Add links to official status pages in the read-only mode status message When the site is in read-only mode, I get a message like this:     This site is currently in read-only mode.   Would it be possible to update that message to provide links to these resources on SE's status:   : Official SE tweets on SE's status. : Official blog posts on SE's status. How to take mysqldump with Generated column? I am getting below error while importing the dump,     ERROR 3105 (HY000) at line 82: The value specified for generated   column 'column_name' in table 'table_name' is not allowed.   When I describe the table with error, there are some generated columns in it.     option_type         | varchar(45)  | YES  | MUL | NULL    | VIRTUAL   GENERATED   What is the correct command to use when taking mysql dump for the database contains generated column?  MySQL server source and destination version:     mysqld Ver 5.7.26 for Linux on x86_64 (MySQL Community Server (GPL))   MariaDB mysqldump CLI version:     mysqldump Ver 10.17 Distrib 10.3.12-MariaDB, for Linux (x86_64) Obviously, you can use the | (pipe?) to represent OR, but is there a way to represent AND as well?  Specifically, I'd like to match paragraphs of text that contain ALL of a certain phrase, but in no particular order. How can I read input from the console using the Scanner class in Java? Equal and opposite reaction - forces coming in pairs - or just common sense? Adding HTML5 placeholder to all drupal forms I'm trying to add the placeholder attribute to all textfields across my website, but I'm having no luck.  I've created a module that overrides hook_form_alter  function mymodule_form_alter(&amp;$form, &amp;$form_state, $form_id) {     foreach ($form as $key =&gt; $value) {         if ("textfield" == $value["#type"]){             $value['#attributes']["placeholder"] = t($value["#title"]);         }     } }   I should tell you that I'm also using the webform module. Resize multiple layers around their respective anchor points How to search for list of papers citing both papers A and B? For given papers A and B, I would like to search for all papers that cite both A and B. I guess one can generalize to papers {A,B,C,...} and find all papers that cite all of them.   A quick Google Scholar and Web of Science search revealed nothing. Google Scholar has a "cite=..." thing in the URL, which I messed with a bit to no avail. How do I turn on SharePoint App store in SharePoint 2013 I am getting this message when I want to add a app:     Sorry, apps are turned off. If you know who runs the server, tell them   to enable apps. $f^2$ and $f^3$ are holomorphic implies $f$ is holomorphic.