OpenWaterFoundation / cdss-app-snodas-tools

Colorado's Decision Support Systems (CDSS) Snow Data Assimilation System (SNODAS) Tools
8 stars 4 forks source link

Need to understand the" ERROR 1: Cannot create backup" error #7

Open smalers opened 7 years ago

smalers commented 7 years ago

The error is displayed during GIS processing. It does not seem to cause an issue with the results. However, it would be nice to narrow down to figure out where in the code this is occurring so it can be resolved in the future.

egiles16 commented 7 years ago

This error message is produced from QGIS software. The error occurs in the zStat_and_export() function of the SNODAS_utilities.py script when the GeoJSON file is exported with the updated field names. It occurs after the field names are changed and either before or at the QgsVectorFileWriter.writeAsVectorFormat(vectorFile_GeoJson ...) command.

It is important to note that the error does not occur with exporting the vectorFile (compared to the vectorFile_GeoJson) with QGSVectorFileWriter.writeAsVectorFormat. I think the error occurs because of the field name changes. We know that the error is not caused by exporting a GeoJSON because the vectorFile is exported without the error as a GeoJSON file a couple block of code up.