Hot answers tagged

2

The first warning means that the value of GeoASCIIParams tag is not read as it was written because the original image is having NULL character in the value of the tag. NULL can be used as a delimiter between strings http://freeimage.sourceforge.net/fnet/html/A633E9A9.htm but obviously GDAL takes just the first string. The second error means that the writer ...


2

You can suppress the warnings (as long as you're sure there's no real issue with your data) with gdal.PushErrorHandler('CPLQuietErrorHandler'). If you do this any errors will also not get printed, so make sure you tell GDAL to raise a Python exception when an error occurs with gdal.UseExceptions(). E.g. # Stop GDAL printing both warnings and errors to ...


2

When using PyScripter with arcgis pro you should call the IDE with a batch script, to activate the anaconda environment. There are batch files shipped with arcgis pro which i use to call PyScripter: @echo off set pyhome=%PROGRAMFILES%\ArcGIS\Pro\bin\Python\envs\arcgispro-py3 set pyscrpt=%~pd0\PyScripter\PyScripter.exe if not exist "%pyhome%" ( echo Can'...


2

The data appears to be in "Nexrad Archive" format. I installed PyART for Python 2 from git and its dependencies via pip: https://arm-doe.github.io/pyart/ I could then run radar_info on one and get this: $ radar_info KBBX20190819_012831_V06 ## You are using the Python ARM Radar Toolkit (Py-ART), an open source ## library for working with weather radar ...


1

The older version of OpenJPEG was installed with cmake. I gathered that GDAL's shared objects from OpenJPEG (expecting v2.3.0) were misplaced since the install but it wasn't initially obvious where the v2.1.0 files were, how to remove, or update the links. Luckily, cmake creates a file called install_manifest.txt to keep track of its installed files. I ...


1

You can set limits to the axis without chaining original GDF. import geopandas as gp import matplotlib.pyplot as plt from shapely.geometry import LineString, MultiPoint, Polygon thesmallpoints=gp.GeoDataFrame([[MultiPoint([(0, 0), (1, 1), (1,2), (2,2)])]],columns=['geometry']) thelargeline=gp.GeoDataFrame([[LineString([(0, 0), (1, 1), (1,2), (20,20)])]],...


1

You need to install this Python module in the Python that QGIS uses. I use Windows so I have a .bat that opens a cmd. (change OSGEO4W_ROOT using your path) @ECHO OFF set OSGEO4W_ROOT=D:\OSGeo4W64 set PATH=%OSGEO4W_ROOT%\bin;%PATH% set PATH=%PATH%;%OSGEO4W_ROOT%\apps\qgis\bin @echo off call "%OSGEO4W_ROOT%\bin\o4w_env.bat" call "%OSGEO4W_ROOT%\bin\...


1

The error message is not very helpful unfortunately. You are missing the required library LASzip on your system as well as the laszip.exe tool. For Windows you can get the LASzip DLL file from the archive the LAStools project provides at https://lastools.github.io/download/LAStools.zip You can find it in LAStools/LASzip/dll/ in said archive. For quick ...


1

You need to rescale the transform as well as the data, i.e. from rasterio import Affine from rasterio.enums import Resampling scale = 10 # Reduce/upscale resolution scale factor t = src.transform # rescale the metadata transform = Affine(t.a * scale, t.b, t.c, t.d, t.e * scale, t.f) height = int(src.height / scale) width = int(src.width / scale) band = ...


1

I hope I understood your problem correctly (although still don't know why you added timestamps at the end if your csv clearly shows the time being two string columns). First of all, you have to define an origin in space for your tensor. This origin consists of a lon, lat pair of coordinates that represent the upper left corner of your array. Let's assume ...


1

A simple hex dump of an .sde string using a program like HxD shows that most of the connection properties are available. It would be left up to the programmer to reverse engineer the structure. As long as the connection string does not store a password it should be possible. e.g.


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