Closed drsk0 closed 8 months ago
You would have to share the file for me to know.
GDAL is actually writing it underneath but we may do something strange with the metadata? Im not sure. I would have to actually check.
I'm testing with the rasters from the CHIRPS dataset. You can try with any raster found here: https://data.chc.ucsb.edu/products/CHIRPS-2.0/global_daily/tifs/p05/2022/.
I cannot reproduce this. I tried it with the first Raster in your link. This is on Rasters 0.10.1 and GDAL_jll v301.800.300+0 And on QGIS 3.22 This is on Ubuntut 22.04
This is my full manifest status:
(@rastertest) pkg> st -m Status `~/.julia/environments/rastertest/Manifest.toml` [621f4979] AbstractFFTs v1.5.0 [79e6a3ab] Adapt v4.0.0 [c9ce4bd3] ArchGDAL v0.10.2 [4fba245c] ArrayInterface v7.7.0 ⌅ [fa961155] CEnum v0.4.2 [3da002f7] ColorTypes v0.11.4 [c3611d14] ColorVectorSpace v0.10.0 [5ae59095] Colors v0.12.10 [187b0558] ConstructionBase v1.5.4 [9a962f9c] DataAPI v1.15.0 [e2d170a0] DataValueInterfaces v1.0.0 [0703355e] DimensionalData v0.25.8 [3c3547ce] DiskArrays v0.3.22 [411431e0] Extents v0.1.2 [bf96fef3] FieldMetadata v0.3.1 [1a297f60] FillArrays v1.9.3 [53c48c17] FixedPointNumbers v0.8.4 [4c728ea3] Flatten v0.4.3 [add2ef01] GDAL v1.7.0 [68eda718] GeoFormatTypes v0.4.2 [cf35fbd7] GeoInterface v1.3.3 [0329782f] GeoInterfaceRecipes v1.0.2 [a09fc81d] ImageCore v0.10.1 [8197267c] IntervalSets v0.7.8 [41ab1584] InvertedIndices v1.3.0 [82899510] IteratorInterfaceExtensions v1.0.0 [692b3bcd] JLLWrappers v1.5.0 [3da0fdf6] MPIPreferences v0.1.10 [1914dd2f] MacroTools v0.5.13 [dbb5928d] MappedArrays v0.4.2 [e1d29d7a] Missings v1.1.0 [e94cdb99] MosaicViews v0.3.4 [6fe1bfb0] OffsetArrays v1.13.0 [bac558e1] OrderedCollections v1.6.3 [5432bcbf] PaddedViews v0.5.12 [aea7be01] PrecompileTools v1.2.0 [21216c6a] Preferences v1.4.1 [92933f4c] ProgressMeter v1.9.0 [a3a2b9e3] Rasters v0.10.1 [3cdcf5f2] RecipesBase v1.3.4 [189a3867] Reexport v1.2.2 [ae029012] Requires v1.3.0 [efcf1570] Setfield v1.1.1 [cae243ae] StackViews v0.1.1 [1e83bf80] StaticArraysCore v1.4.2 [3783bdb8] TableTraits v1.0.1 [bd369af6] Tables v1.11.1 [62fd8b95] TensorCore v0.1.1 [8ce61222] Arrow_jll v10.0.0+1 [6e34b625] Bzip2_jll v1.0.8+1 [2e619515] Expat_jll v2.5.0+0 [a7073274] GDAL_jll v301.800.300+0 [d604d12d] GEOS_jll v3.12.0+0 ⌃ [0234f1f7] HDF5_jll v1.14.2+1 [e33a78d0] Hwloc_jll v2.10.0+0 ⌅ [a51ab1cf] ICU_jll v69.1.0+0 [aacddb02] JpegTurbo_jll v3.0.1+0 [b39eb1a6] Kerberos_krb5_jll v1.19.3+0 [88015f11] LERC_jll v3.0.0+1 [1d63c593] LLVMOpenMP_jll v15.0.7+0 [dd4b983a] LZO_jll v2.10.1+0 [08be9ffa] LibPQ_jll v16.0.0+0 [94ce4f54] Libiconv_jll v1.17.0+0 ⌅ [89763e89] Libtiff_jll v4.5.1+1 [d3a379c0] LittleCMS_jll v2.15.0+0 [5ced341a] Lz4_jll v1.9.4+0 [7cb0a576] MPICH_jll v4.1.2+1 [f1f71cc9] MPItrampoline_jll v5.3.1+1 [9237b28f] MicrosoftMPI_jll v10.1.4+1 [7243133f] NetCDF_jll v400.902.208+0 [643b3616] OpenJpeg_jll v2.5.0+0 [fe0851c0] OpenMPI_jll v5.0.1+0 [458c3c95] OpenSSL_jll v3.0.12+0 [32165bc3] PMIx_jll v4.2.7+0 [58948b4f] PROJ_jll v901.300.0+0 [76ed43ae] SQLite_jll v3.43.0+0 ⌅ [e0b8ae26] Thrift_jll v0.16.0+0 [02c8fc9c] XML2_jll v2.12.2+0 [ffd25f8a] XZ_jll v5.4.5+0 [3161d3a3] Zstd_jll v1.5.5+0 ⌅ [28df3c45] boost_jll v1.76.0+1 [477f73a3] libaec_jll v1.0.6+1 [1080aeaf] libevent_jll v2.1.13+1 [06c338fa] libgeotiff_jll v100.701.100+0 [b53b4c65] libpng_jll v1.6.40+0 [eb928a42] prrte_jll v3.0.2+0 [fe1e1685] snappy_jll v1.1.9+1 [0dad84c5] ArgTools v1.1.1 [56f22d72] Artifacts [2a0f44e3] Base64 [ade2ca70] Dates [8ba89e20] Distributed [f43a241f] Downloads v1.6.0 [7b1f6079] FileWatching [9fa8497b] Future [b77e0a4c] InteractiveUtils [4af54fe1] LazyArtifacts [b27032c2] LibCURL v0.6.4 [76f85450] LibGit2 [8f399da3] Libdl [37e2e46d] LinearAlgebra [56ddb016] Logging [d6f4376e] Markdown [a63ad114] Mmap [ca575930] NetworkOptions v1.2.0 [44cfe95a] Pkg v1.9.2 [de0858da] Printf [3fa0cd96] REPL [9a3f8284] Random [ea8e919c] SHA v0.7.0 [9e88b42a] Serialization [6462fe0b] Sockets [2f01184e] SparseArrays [10745b16] Statistics v1.9.0 [4607b0f0] SuiteSparse [fa267f1f] TOML v1.0.3 [a4e569a6] Tar v1.10.0 [cf7118a7] UUIDs [4ec0a83e] Unicode [e66e0078] CompilerSupportLibraries_jll v1.0.5+0 [deac9b47] LibCURL_jll v8.4.0+0 [29816b5a] LibSSH2_jll v1.11.0+1 [c8ffd9c3] MbedTLS_jll v2.28.2+0 [14a3606d] MozillaCACerts_jll v2022.10.11 [4536629a] OpenBLAS_jll v0.3.21+4 [bea87d4a] SuiteSparse_jll v5.10.1+6 [83775a58] Zlib_jll v1.2.13+0 [8e850b90] libblastrampoline_jll v5.8.0+0 [8e850ede] nghttp2_jll v1.52.0+1 [3f19e933] p7zip_jll v17.4.0+0 Info Packages marked with ⌃ and ⌅ have new versions available. Those with ⌃ may be upgradable, but those with ⌅ are restricted by compatibility constraints from upgrading. To see why use `status --outdated -m`
What is the version of GDAL_jll for you?
I tested it on a different computer and there it works as well, so it is a local problem. Here is my full manifest status:
We cant actually see GDAL_jll in that list, maybe check you manifest file.
But it looks like its the same GDAL.jl and Rasters.jl.
Whats your qgis version?
The GDAL_jll version is the same for both of us.
What is the output of Raster("chirps-v2.0.2003.01.12.tif")
?
I am wondering whether Rasters is permuting the dimensions somehow and QGIS is not able to open it then because I had that case once with NetCDF files.
Can you open the test.tif file with Rasters again?
Can you open the test.tif file on the QGIS on your other computer?
The output of Raster("chirps-v2.0.2003.01.12.tif")
The GDAL_jll version: [a7073274] GDAL_jll v301.800.300+0
The QGIS version: QGIS 3.34.2-Prizren 'Prizren'
On the other computer the QGIS version is the same, there I can open it without a problem. Reading, then writing and re-reading with Rasters.jl on my computer also works and gives the expected result.
Closing, seems like a qgis version issue to me
I think this is probably an issue on my side, but any help would be appreciated. When I open, and write a raster to disk, I can't open it any longer with QGIS.
Opening
test.tif
with QGIS fails with the messagetest.tif is not a valid or recognized data source
.QGIS: 3.34.2-Prizren Rasters.jl: [a3a2b9e3] v0.10.1