Ik wil rasters importeren van het Candadian Meteorological Centre naar ArcGIS, maar het lijkt erop dat er enige verwerking van elk bestand nodig zal zijn. Ik vraag me af of iemand scripts heeft ontwikkeld om deze bestanden te lezen en voor te bereiden voor ASCII naar Raster import? Hier is de link: Data Set Landing Page<\/A> <\/P><\/P>Bedankt voor alle hulp!<\/P><\/P>Cilla<\/P><\/BODY><\/HTML>
<\/P>
Bedankt voor alle hulp!<\/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
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.