Je souhaite importer des grilles du Candadian Meteorological Centre dans ArcGIS, mais il semble qu'un certain traitement de chaque fichier soit nécessaire. Je me demande si quelqu'un a développé des scripts pour lire ces fichiers et les préparer pour l'importation ASCII vers Raster ? Voici le lien : Page d'accueil du jeu de données<\/A> <\/P><\/P>Merci pour toute aide !<\/P><\/P>Cilla<\/P><\/BODY><\/HTML>
<\/P>
Merci pour toute aide !<\/P>
Cilla<\/P><\/BODY><\/HTML>
Thank you for your suggestion. I would have to tweak the Fortran code, plus I don't have a compiler, plus I'm lazy.
This can all be done, somewhat tediously, in Python using the csv library. Read through each line. If it contains only the date, start a new file. If it contains data, write the line to the new file.
I'm curious, if you have the code and can do this in Fortran, why bother making your own script?
Thank you for your replay, Dan. It's not quite so straight forward. There is no header file, although I did get a suggested header file from their tech support. The problem is that each month of the year is included in one download file, so I think I need to read it in and write out each month to a separate file. They supply the Fortran code to read it, and I can do that, but I was wondering if anyone else has done it yet. Thanks again!
It is pretty straight forward... the format etc is well described in the documentation and there is an ftp site for downloading. The asciii file is tab delimited and they indicated that they can be view in a text editor. Check the first couple of lines to see if it contains typical ascii raster format and you can use asciitoraster in the conversion toolset
Canadian Meteorological Centre (CMC) Daily Snow Depth Analysis Data
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.