# Data accessed using command: wget http://wdmam.org/file/wdmam.asc -O {output_dir}/full_wdmam.xyz # Data processed using the following steps: sed -e "s/^\s\+//g" -e "s/\s\+/,/g" -e 1i"longitude,latitude,magnetic_anomaly,index,long_wavelength" {input_dir}/full_wdmam.xyz > {output_dir}/full_wdmam.csv ogr2ogr -lco ENCODING=UTF-8 -t_srs EPSG:3413 -clipdst {assets_dir}/greenland_rectangle.geojson -makevalid -oo X_POSSIBLE_NAMES=longitude -oo Y_POSSIBLE_NAMES=latitude -oo AUTODETECT_TYPE=True -s_srs EPSG:4326 {output_dir}/wdmam_greenland.gpkg {input_dir}/full_wdmam.csv