1. Learn
  2. Geographic Information Systems (GIS)
  3. GIS Tutorials/How-Tos
  4. Creating a Cloud Raster Format from NetCDF-4

Creating a Cloud Raster Format from NetCDF-4

It is possible to create a Cloud Raster Format from NetCDF-4 by using ArcPy scripting.

Step-by-step guide

  1. Remove groups in NetCDF-4.
  2. Run ArcPy script like the following:
  3. import arcpy
    arcpy.env.workspace = "C:/tmp/crf"
    
    arcpy.CopyRaster_management(
        "Z:/home/arcgis/data/misr2019G.nc", #input
        "misr2019G.crf", #output
        "", # {config_keyword}
        "", # {background_value}
        -9999.0, # {nodata_value}
        "NONE", # {NONE | OneBitTo8Bit}
        "NONE", # {NONE | ColormapToRGB}
        "", # {1_BIT | 2_BIT | 4_BIT | ... | 64_BIT}
        "NONE", # {NONE | ScalePixelValue}
        "NONE", # {NONE | RGBToColormap}
        "CRF", # {TIFF | PNG ... | MRF},
        "NONE",# {NONE | Transform}
        "ALL_SLICES", # {CURRENT_SLICE | ALL_SLICES}
        "TRANSPOSE") # {NO_TRANSPOSE | TRANSPOSE}
    
    # Reference
    # [1] https://pro.arcgis.com/EN/PRO-APP/TOOL-REFERENCE/DATA-MANAGEMENT/copy-raster.htm
Information Icon

Use ncks -G : input.nc output.nc to remove groups.

Page Last Updated: Aug 9, 2021 at 7:19 PM EDT