
# Note: Custom color map designed by Terry Haran, NSIDC. # NSIDC-0478, MEaSUREs Greenland Ice Sheet Velocity Map InSAR Data, Version 2 # NSIDC-0725, MEaSUREs Greenland Ice Sheet Velocity Mosaics SAR and Landsat, Version 1
#Imagesc matlab 2017 vs 2018 code
# The code has been tested with data from: # Sample program to read in a GeoTIFF file, extract the metadata, Set(get(h,'label'), 'string', 'Velocity Magnitude (m/year)') Title(file_in, 'Interpreter', 'none', 'FontSize', 14) % Be sure the first color (the background) is white Scale the velocities by the log of the data.ĭata_scale = BYTSCL(alog(data_in > 1 0 3000) = 3000 Ĭtable = hsv2rgb(cat(2, hue', sat', value')) Print, 'Data minimum, maximum = ', minn, maxxįoreach value, Hash(GeoKeys), key do begin Print, 'Dimensions = ', array_info.DIMENSIONS Print, 'Number of dimensions = ', array_info.N_DIMENSIONS Print, 'Number of elements = ', array_info.N_ELEMENTS Print, 'IDL datatype = ', array_info.TYPE_NAME read in file with geotiff geographic informationĭata_in = READ_TIFF(path + file_in, GEOTIFF=GeoKeys, ORIENTATION=orient)ĭata_in = REVERSE(data_in, 2, /OVERWRITE) Edit the file to change the GeoTIFF file name. Note: Custom color map designed by Terry Haran, NSIDC. NSIDC-0478, MEaSUREs Greenland Ice Sheet Velocity Map InSAR Data, Version 2 NSIDC-0725, MEaSUREs Greenland Ice Sheet Velocity Mosaics SAR and Landsat, Version 1 The code has been tested with data from: Sample program to read in a GeoTIFF file, extract the metadata, MEaSUREs Greenland Ice Sheet Velocity Map InSAR Data, Version 2 (NSIDC-0478).MEaSUREs Greenland Ice Sheet Velocity Mosaics SAR and Landsat, Version 1 (NSIDC-0725) and.Below the image in this article, you will find sample code in IDL, MATLAB, and Python to read in a GeoTIFF file, extract the metadata, and create an image.
