Hot answers tagged

3

With the GDAL/OGR Virtual Format you have another option to import your Excel table into QGIS. Create the VRT file (see below) in the same directory as your Excel and set the filename, tablename and layer srs accordingly: <OGRVRTDataSource> <OGRVRTLayer name="test"> <SrcDataSource relativeToVRT="1">test.xlsx&...


2

If your users are able to update the data within excel, they can edit csv files within excel, just make sure that they don't work within a .xlsx . Then within Qgis you can import those CSV files using the "add delimited text layer". Down at the bottom, you can tick the "Watch file" option. This will allow the changes in the csv file to be ...


1

This line already makes a binary map of values 1 (values greater than -0.2) and 0 (values lower than -0.2). No need to divide. //get pixels above the threshold var water1 = ndwi.gt(-0.2);


1

you could in the still working project right click your csv-layer -> export -> Save as QGIS Layer Style File and save all the styling/forms etc to one single file. Then move your project, load the csv again, right click it -> Properties. Here in the very left bottom you will find the button "Style". Click on it, "load style", ...


1

I'm not sure what your problem is running Jose's code it: seems to work fine for me (except that I had to change ds.varaibles to simply ds when getting lat/lon/precip, but that may be because I'm using slightly different GPM files). I'm guessing something is wrong with the values you are passing for min_lon, max_lon etc ... but hard to say Here is something ...


1

Your question is quite convoluted and conflates two different problems. Let's see... You want to create a CSV file with lat, lon and precip_rate as columns from a bunch of files, and only covering a particular spatial region. Let's just do this for one of your files, then extend to all of them. From your question, you need the Latitude, Longitude and PRE (?) ...


Only top voted, non community-wiki answers of a minimum length are eligible