Commits

Matthew Turk committed 58a0867

Supporting enumerating the fields for RAMSES files.

  • Participants
  • Parent commits 1901071

Comments (0)

Files changed (1)

         if pf.field_info[field].particle_type:
             pfield = field
         else:
-            ffield = ffield
+            ffield = field
     for dobj in _get_dobjs(c):
         obj = getattr(pf.h, dobj[0])(*dobj[1])
         print "%s: %s" % (dobj[0], dobj[1:])
         obj["Ones"]
         if ffield is not None:
-            print "    Selecting ", ffield,
+            print "    Selecting FLUID", ffield,
             obj[ffield]
             print "(%s)" % (obj[ffield].size)
         if pfield is not None:
-            print "    Selecting ", pfield,
+            print "    Selecting PARTICLE", pfield,
             obj[pfield]
             print "(%s)" % (obj[pfield].size)
 
 #chunking(pf1)
 selecting(pf2)
 
-pf3 = load("output_00700/info_00700.txt")
+ramses_fields = ["Density", "x-velocity", "y-velocity",
+                 "z-velocity", "Pressure", "Metallicity"]
+
+pf3 = load("output_00700/info_00700.txt", fields=ramses_fields[:5])
 make_plots(pf3)
 #chunking(pf3)
 selecting(pf3)