Index: /issm/trunk/src/m/contrib/musselman/read_netCDF.m
===================================================================
--- /issm/trunk/src/m/contrib/musselman/read_netCDF.m	(revision 27863)
+++ /issm/trunk/src/m/contrib/musselman/read_netCDF.m	(revision 27864)
@@ -4,4 +4,13 @@
     2. For each variable in each group, update an empty model with the variable's data
     3. Enter nested groups and repeat
+
+
+If the model you saved has subclass instances that are not in the standard model() class
+you can:
+    1. Copy lines 30-35, set the "results" string to the name of the subclass instance,
+    2. Copy and modify the make_results_subclasses() function to create the new subclass 
+        instances you need. 
+From there, the rest of this script will automatically create the new subclass 
+instance in the model you're writing to and store the data from the netcdf file there.
 %}
 
@@ -89,24 +98,4 @@
 
 
-%{
-function make_results_subclasses()
-    global model_copy;
-    global NCData;
-    resultsGroup = netcdf.inqNcid(NCData, "results");
-    subgroups = netcdf.inqGrps(resultsGroup);
-    for subgroup = subgroups
-        groupName = netcdf.inqGrpName(subgroup)
-        
-
-        
-        class_instance = netcdf.inqVar(resultsGroup, name);
-        class_instance_name = convertCharsToStrings(netcdf.getVar(resultsGroup, name, 'char'));
-        model_copy.results = setfield(model_copy.results, class_instance, class_instance_name);
-    end
-    disp('Successfully recreated results struct')
-end
-%}
-
-
 function walk_nested_groups(group_location_in_file)
     global model_copy;
@@ -132,7 +121,7 @@
         if not(isempty(groups))
             for group = groups
-                disp('found nested group!!')
+                %disp('found nested group!!')
                 group_id = netcdf.inqNcid(group_location_in_file, netcdf.inqGrpName(group));
-                disp(netcdf.inqGrpNameFull(group_id))
+                %disp(netcdf.inqGrpNameFull(group_id))
                 walk_nested_groups(group);
             end
